Announcement

Collapse
No announcement yet.

Invalid Security Token Error on Mark Forums Read

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid Security Token Error on Mark Forums Read

    Issue: Customized templates are not updated when you upgrade the software. In vBulletin 3.8.5 we added an additional layer of security to the logout function. If you have custom placement of the markread link, or have customized templates that contain it you may need to manually add the link back in. You can also consider reverting the template and redoing your changes.

    To fix your code, there at least 3 occurrences of the link naturally. Please check to find these snippets and replace them.

    In the forumhome template find:
    HTML Code:
    <a href="forumdisplay.php?$session[sessionurl]do=markread rel="nofollow">$vbphrase[mark_forums_read]</a>
    Replace with
    HTML Code:
    <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>
    In the navbar template, you will need to find both occurrences of the code:
    HTML Code:
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    And change it to:
    HTML Code:
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    Additionally if you find any placement of the following code:
    HTML Code:
    forumdisplay.php?$session[sessionurl]do=markread
    You need to add:
    HTML Code:
    &amp;markreadhash=$bbuserinfo[securitytoken]
    So your new link becomes:
    Code:
    forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]
    Last edited by Trevor Hannant; Sun 4th Jul '10, 1:06pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X