vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Mark Forums Read Error (https://vborg.vbsupport.ru/showthread.php?t=298320)

bada_bing 05-20-2013 01:55 PM

Mark Forums Read Error
 
We are getting this message when a user click the "Mark Forums Read" option. We are running VB 3.87

HTML Code:

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

Quote:

Originally Posted by Lynne (Post 2423171)
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

Quote:

Originally Posted by snakes1100 (Post 2423226)
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/forumdi...hp?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

Quote:

Originally Posted by Lynne (Post 2423345)
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
HTML Code:

<!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

Quote:

Originally Posted by snakes1100 (Post 2423395)
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:

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>
Verify the code above in your navbar template.

bada_bing 05-21-2013 07:17 PM

Quote:

Originally Posted by snakes1100 (Post 2423401)
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/forumd...hp?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/forumd...8c9dc38c7e225f

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

Quote:

Originally Posted by snakes1100 (Post 2423408)
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 [DATE]1369230549[/DATE] at [TIME]1369230549[/TIME] ---------------

Quote:

Originally Posted by snakes1100 (Post 2423408)
The proper code is in my previous post or simply view the default template in the style.

That fixed it.. Thank You!!;)


All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01208 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete