MyBB Community Forums

Full Version: Logging out Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
The template fix in the link that LeX- posted will fix the problem! I'll even copy the instructions into this thread for you!

Admin CP --> Templates --> Modify / Delete --> *expand your template set*

The logout code should be:

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

In index_logoutlink:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->index_logout}</a> | 

In changeuserbox:

<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->change_user}</a>

For all the codes above, in your existing template you will find something very similar, except without &sid={$session->sid} so that's basically you're just adding that bit into the logout links.
Okay but I do not see this
Admin CP --> Templates --> Modify/Delete --> *expand your template set* --> changeuserbox

<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}">{$lang->change_user}</a>
Replace with:
<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->change_user}</a>

Admin CP --> Templates --> Modify/Delete --> *expand your template set* --> header_welcomeblock_member
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}">{$lang->welcome_logout}</a>
Replace with:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->welcome_logout}</a>

Admin CP --> Templates --> Modify/Delete --> *expand your template set* --> Index Page Templates --> index_logoutlink

<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}">{$lang->index_logout}</a>
<a href="member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;sid={$session->sid}">{$lang->index_logout}</a>

If you can't find what you're supposed to replace, then just post the contents of the template here.
Did it to the template im using, still getting

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.
Link to your forum?
Make sure you've applied the template modifications to both of your themes.
I did and still nothing. Can I make you admin on my forums and you can try this?
I'll take a look.
Okay I made you administrator, please fix this if you can.
Pages: 1 2 3 4 5