mark all forums read not working

Results 1 to 2 of 2
  1. #1
    Alpha Member 917893678251 is offline
    Alpha MaleRank
    Jul 2008 Join Date
    In a boxLocation
    1,547Posts

    mark all forums read not working


    RaGEZONE Recommends

    RaGEZONE Recommends

    IT always says security token invalid and I'm like how do we fix this?


  2. #2
    Gamma 404 is offline
    GammaRank
    Jul 2007 Join Date
    3,317Posts

    Re: mark all forums read not working

    Reason:
    Upgrading a forum isn't easy and usually some edits in a new version don't get added as planned. When you've upgraded to vBulletin Version 3.8.5 and you get Invalid Security Token errors regarding the Mark Forums Read script, then please read this thread first! It contains a permanent fix to this issue.

    The issue is relating to modified templates. The vBulletin upgrade script does NOT modify templates it wants to modify if the administrator has already modified a template. In this case, modifying the navbar or forumhome templates will result in an invalid security token error when trying to use the Mark Forums Read script.

    Solution:
    In your forumhome template, find the following code:
    Code:
    <a href="forumdisplay.php?$session[sessionurl]do=markread rel="nofollow">$vbphrase[mark_forums_read]</a>
    Replace it with this:
    Code:
    <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>
    In your navbar template (twice), find this code:
    Code:
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    And replace with this:
    Code:
    <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>
    GG.




Advertisement