MyBB Community Forums

Full Version: can't logout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hy..i have a problem.i can't logout from my forum...it says ''Your user ID could not be verified to log you out. This may have been because a malicious Javascript was attempting to log you out automatically. If you intended to logout, please click the Logout button at the top menu.''
i am using blue buletin 1.2.8 theme..
i used the topic ''CANNOT LOGOUT? READ THIS!'' ...that worked with the original theme..with the blue buletin is not working..i can find ''<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->index_logout}</a> '' in index_logoutlink ..pls help!
Open the template "index_logoutlink" and replace it with:
<a href="member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->index_logout}</a> | 

Open header_welcomeblock_member and find:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->welcome_logout}</a>

Replace with:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>
i am sorry..i can't find that ''<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->index_logout}</a>''
Can you post what is in your template? It should be in there...near the top and should follow these lines of code:

	<span style="float:right;">{$lang->welcome_current_time}</span>
		{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$admincplink} — 
i am sorry..the problem is in header_welcomeblock_member

here is what contains header_welcomeblock_member

<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a>

<!-- user cp tools menu -->
<div class="menupop" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead"><b>Quick Links</b></td></tr>
<tr><td class="menu_row" ><a href="search.php?action=getnew"><font color="#026CB1">View New Posts</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=markread"><font color="#026CB1">Mark All Forums Read</a></td></tr></font>
<tr><td class="menu_row"><a href="#" onclick="MyBB.popupWindow('misc.php?action=buddypopup', 'buddyList', 170, 300);"><font color="#026CB1">Buddy/Ignore List</a></td></tr></font>

<tr><td class="thead"><font color="#ffffff"><a href="usercp.php"><b>User CP</b></a></font></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig"><font color="#026CB1">Change Signature</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=avatar"><font color="#026CB1">Change Avatar</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=profile"><font color="#026CB1">Edit Profile</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=options"><font color="#026CB1">Edit Options</a></td></tr></font>

<tr><td class="thead"><b>Miscellaneous</b></td></tr>
<tr><td class="menu_row"> <a href="private.php"><font color="#026CB1">Private Messages</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions"><font color="#026CB1">Subscribed

Threads</a></td></tr></font>
<tr><td class="menu_row"><a href="member.php?action=profile&uid={$mybb->user['uid']}"><font color="#026CB1">View Profile</a></td></tr></font>
</table>
</div>

<!-- / user cp tools menu -->
<br />
He's using a vB style theme, which is why it isn't in the header_welcomeblock_member.

It is in your header template. Wink
what? pls explain..were i must edit ? thank you.
The code you're supposed to edit is apparently in your Header template. So follow Paretje's advice but look in your Header template instead of the other one mentioned.
judel,paretje or FirefoxWiz,thank you for suggestions but i still don't get it..who wants to help me in ''private'' ? i will give you the power to edit the templates,theme and what other things you need..but please help me.who wants post here and i'll pm the details of the account..
thank you!
i tried to edit the ''header'' template but i was lost ..