The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating a logout button in the header area
Hi all,
I'm trying to create a logout button in my header navibar, mainly because my current style doesn't have one by the username/password area. I'm new at this, and the only code I've tried to use was Code:
<td><a href="login.php?do=logout&logouthash" accesskey="6"><img src="$stylevar[imgdir_misc]/log_off.gif" width="90" height="25" border="0"></a></td> "An error occurred while attempting to log you out. Click here to log out." When I proceed to click that link, I'm logged out just fine, but I'd rather not have everyone do that. Any help on what code to use to allow people to log out would be appriciated. Thank you, regards Yngve --------------- Added [DATE]1239440235[/DATE] at [TIME]1239440235[/TIME] --------------- I managed to make it with the use of the "similar threads" below /close --------------- Added [DATE]1239443961[/DATE] at [TIME]1239443961[/TIME] --------------- /REOPENED I spoke too soon. I'm now experiencing issues when i try to LOG IN to the forums. I type my information in, and press the Login button. I get the welcome message, and my nickname is visible on the Who's Online listing below, however I'm still just a Guest as if I didn't log in at all. The only way I've been able to log in and get control over my registered account is through the admin control panel. The objective was to get a logout button working. What I did In the header code: - ADDED Code:
<!-- member logout button --> <td align="$stylevar[right]"> <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_misc]/log_off.gif" border="0" width="90" height="25" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase>"></a></td> <!-- end member logout --> -REMOVED Code:
Everything between <!-- member logout --> <!-- end member logout --> I found these codes in the 'similar threads' below. Many thanks for advice and help to fix my Login. Regards, Yngve --------------- Added [DATE]1239461500[/DATE] at [TIME]1239461500[/TIME] --------------- Is anyone able to help? Perhaps I'm not good enough at explaining what is happening. |
#2
|
|||
|
|||
You are missing the IF commands and some other key user information. Please refer to my example below (which you can copy+paste into your template).
PHP Code:
Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|