Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

mark all forums read not working

Legendary Battlemage
Loyal Member
Joined
Jul 26, 2008
Messages
694
Reaction score
31
IT always says security token invalid and I'm like how do we fix this?
 
Joined
Jul 11, 2007
Messages
2,695
Reaction score
2,177
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&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&markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>

GG.
 
Back
Top