Log in

View Full Version : Mark Forums Read Error


bada_bing
05-20-2013, 01:55 PM
We are getting this message when a user click the "Mark Forums Read" option. We are running VB 3.87

our submission could not be processed because a security token was invalid.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Anyone know how to correct this ?

Lynne
05-20-2013, 03:42 PM
Create a new style with no parent:

Styles & Templates > Style Manager > Add New Style
Parent Style: No Parent Style
Title: Default vBulletin
Allow User Selection: Yes
Save

Then browse the site using that totally default vbulletin style - do you still have the same problem?

bada_bing
05-20-2013, 06:12 PM
Create a new style with no parent:

Styles & Templates > Style Manager > Add New Style
Parent Style: No Parent Style
Title: Default vBulletin
Allow User Selection: Yes
Save

Then browse the site using that totally default vbulletin style - do you still have the same problem?

No errror when I create a new style which I aleady asumbed its an issue with the stlye, where and what is missing to cause this though?

snakes1100
05-20-2013, 06:38 PM
Which "mark forum read" link are you using?

You will need to chk the template the link is on via the page, its missing the security token info in the newer template.

bada_bing
05-21-2013, 01:06 PM
Which "mark forum read" link are you using?

You will need to chk the template the link is on via the page, its missing the security token info in the newer template.

I am using this link
http://www.mysite.com/forums/forumdisplay.php?do=markread
which templetes do I need to look at ?

Lynne
05-21-2013, 02:19 PM
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

bada_bing
05-21-2013, 06:18 PM
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

Lynne

I enabled that and I cant seem to find where it calls any templates? I looked throughout and no luck . VB Settings says it should show up at the top or bottom but all I see its this at the top
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <meta name="robots" content="noindex,follow" /> <script type="text/javascript">

snakes1100
05-21-2013, 06:33 PM
When you enable template names in html via vb, it shows them in multiple locations in the page source, you have to view the page source

When your on the forumdisplay page, your using the mark forums read from the quick links i would assume, is your forumdisplay template default or modified?

bada_bing
05-21-2013, 07:00 PM
When you enable template names in html via vb, it shows them in multiple locations in the page source, you have to view the page source
Yes I did look at the page source and did not see it? Can you tell me what I I should be looking for ? Maybe an oversight on my part

When your on the forumdisplay page, your using the mark forums read from the quick links i would assume, is your forumdisplay template default or modified?
Yes I am using the mark forums read from the quick linksm forumhome is modified.

snakes1100
05-21-2013, 07:07 PM
I was asking about the forumdisplay template, not forumhome.

I assume also that your navbar template is also modified & missing the security token info:


td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></td>

Verify the code above in your navbar template.

bada_bing
05-21-2013, 07:17 PM
I was asking about the forumdisplay template, not forumhome.

I assume also that your navbar template is also modified & missing the security token info

OK I think the issue is that when we replaced our default nav menu we have the incorrect url to the Mark Forum Read" feature currently the link points to http://www.oursite.com/forums/forumdisplay.php?do=markread

I think that is incorrect.. Do you know what the URL link should really point to ? I have looked at one of our default templates that contains the original nav memu and the link points to
http://www.oursite.com/forums/forumdisplay.php?do=markread&markreadhash=1369167240-e47feba18e888a10c4e34c44ca8c9dc38c7e225f

I know the hash is randomly generated so I cant add that

snakes1100
05-21-2013, 07:20 PM
The proper code is in my previous post or simply view the default template in the style.

bada_bing
05-21-2013, 08:18 PM
The proper code is in my previous post or simply view the default template in the style.

Thank you I will try that and see if it fixes
The issue.

Thank you

--------------- Added 1369230549 at 1369230549 ---------------

The proper code is in my previous post or simply view the default template in the style.

That fixed it.. Thank You!!;)