Welcome, Guest. Please Login or Register.
July 04, 2025, 05:53:16 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  urls for various yabbse pages... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: urls for various yabbse pages...  (Read 473 times)
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
urls for various yabbse pages...
« on: June 19, 2003, 08:48:39 PM »
Reply with quote

YaBB SE Version: 1.5.3
PHP Version: 4.3.1
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: n/a

Problem Description:
I'm creating a dropdown menu in a new layout I'm doing instead of using the <yabbmenu> tag.

I've run into some roadblocks.

How can I implement the "logout" and "profile" options into this dropdown?

The other options are simply extensions of the index.php (i.e. index.php?action=register) but "logout" and "profile" have specific user extensions.

Any suggestions?  Thanks!

Jason
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:urls for various yabbse pages...
« Reply #1 on: June 19, 2003, 09:02:06 PM »
Reply with quote

If you're making a dropdown with PHP, just do session_start and say sesc=' . session_id() . '.

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:urls for various yabbse pages...
« Reply #2 on: June 19, 2003, 09:21:16 PM »
Reply with quote

Maybe I'm misunderstanding you, or vice versa :)
but, I already have the menu created and the "profile" and "logout" urls are the only ones I can't seem to get working...I'm looking for the url for each of those items.

Does that make sense?
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:urls for various yabbse pages...
« Reply #3 on: June 19, 2003, 09:46:01 PM »
Reply with quote

Profile link: index.php?action=profile;user=USERNAME
Logout link: index.php?action=logout;sesc=SESSIONID

You have to get the session ID from PHP - this is done on purpose so you can't be automatically logged out.

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:urls for various yabbse pages...
« Reply #4 on: June 19, 2003, 09:51:15 PM »
Reply with quote

Quote from: [Unknown] on June 19, 2003, 09:46:01 PM
Profile link: index.php?action=profile;user=USERNAME
Logout link: index.php?action=logout;sesc=SESSIONID

You have to get the session ID from PHP - this is done on purpose so you can't be automatically logged out.

Okay, making some progress :)

So how do I get it to automatically populate the USERNAME and SESSIONID's?  I plugged in what you had quoted above for the links, so do I need some sort of qualifying code above that so it knows what those variables mean? or how to retrieve them?

I think that's what you had in your first post, but I'm not experienced enough with php to know what to do with that.

Sorry, for my ignorance in this area ;(  hehe

Jason
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:urls for various yabbse pages...
« Reply #5 on: June 19, 2003, 10:26:56 PM »
Reply with quote

Well, let me make it easier on you: Use PHP and include SSI.php.  (unless this is in template.php)

Now, use the following HTML:

index.php?action=logout;sesc=<?php echo $sc;?>
Profile link: index.php?action=profile;user=<?php echo $username;?>

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:urls for various yabbse pages...
« Reply #6 on: June 19, 2003, 10:53:10 PM »
Reply with quote

Quote from: [Unknown] on June 19, 2003, 10:26:56 PM
Well, let me make it easier on you: Use PHP and include SSI.php.  (unless this is in template.php)

Now, use the following HTML:

index.php?action=logout;sesc=<?php echo $sc;?>
Profile link: index.php?action=profile;user=<?php echo $username;?>

thanks, that did the trick for the profile link, but not for the logout.  I'm still getting session check errors...it doesn't seem to be populating with $sc

I am using template.php in this case if that matters, without the call for SSI.php
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:urls for various yabbse pages...
« Reply #7 on: June 19, 2003, 11:42:37 PM »
Reply with quote

Okay, try replacing $sc with $GLOBALS['sc'].

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:urls for various yabbse pages...
« Reply #8 on: June 19, 2003, 11:57:25 PM »
Reply with quote

Quote from: [Unknown] on June 19, 2003, 11:42:37 PM
Okay, try replacing $sc with $GLOBALS['sc'].

-[Unknown]

Bingo!!  That did it -- Thanks, once again, for your help!

(now back to the SSI problem - haha)

Jason
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  urls for various yabbse pages... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.109 seconds with 21 queries.