Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Apr 2009, 09:41
Exstedt Exstedt is offline
 
Join Date: Apr 2009
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But when I press the button, I keep getting an error message (vbulletin message).

"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 11 Apr 2009 at 09:57 ---------------

I managed to make it with the use of the "similar threads" below

/close

--------------- Added 11 Apr 2009 at 10:59 ---------------

/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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the FORUMHOME
-REMOVED

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Mainly because I thought the addition of the initial code could be in conflict with the latter.

I found these codes in the 'similar threads' below.

Many thanks for advice and help to fix my Login.

Regards,
Yngve

--------------- Added 11 Apr 2009 at 15:51 ---------------

Is anyone able to help? Perhaps I'm not good enough at explaining what is happening.

Last edited by Exstedt; 11 Apr 2009 at 15:51. Reason: Auto-Merged DoublePost
Reply With Quote
  #2  
Old 11 Apr 2009, 17:05
Mr-Moo Mr-Moo is offline
 
Join Date: Sep 2007
Real name: Alex
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).


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Please let me know if this works,
Thank you
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logout Button replacing Logout text TheMusicMan vBulletin 3.5 Template Modifications 14 25 Dec 2007 19:33
Logout Button Burning_Ice vBulletin 2.x Template Modifications 10 19 Aug 2002 19:13



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:54.

Layout Options | Width: Wide Color: