Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2011, 09:13 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Forums Read" - security token screw up

Users are getting this message when they try to mark forums read from Quick Links:

"Your 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."

Has anyone been here?

Cheers!
Reply With Quote
  #2  
Old 12-16-2011, 10:46 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's some bits of code missing from that style. What version of vBulletin are you running? Does this happen in the default style as well?

I had this quite a bit when I tried to use a style that was from a much older version of vB than I had, took me a lunation to get all the spots where this security token issue comes up, but I did get it figured out.

But to help you, I do need further information.
Reply With Quote
  #3  
Old 12-16-2011, 10:57 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Max,

I'm using 3.8, and it doesn't happen with the default style.

Thanks for getting involved!

--------------- Added [DATE]1324079886[/DATE] at [TIME]1324079886[/TIME] ---------------

3.8.7 to be precise.
Reply With Quote
  #4  
Old 12-16-2011, 11:40 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... The style you're having this happen with is missing some needed code, and vBulletin is actually nice enough to fix it for you.

On main page of adminCP there should be alerts about this, out of date style templates. You'll see links there for you to click to update these templates. This should fix the "security token" problem for you.

Can we have a link to your board, to the style that is giving you the problems so we can look at the sourcecode?
Reply With Quote
  #5  
Old 12-16-2011, 11:46 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I think I reverted all templates as instructed on that admin page. Problem still seems to exist. The board is http:/www.screenwritinggoldmine.com/forum
Reply With Quote
  #6  
Old 12-17-2011, 12:02 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"Not Found" error on the link you gave.
Reply With Quote
  #7  
Old 12-17-2011, 12:05 AM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops. Missing an opening slash:

http://www.screenwritinggoldmine.com/forum
Reply With Quote
  #8  
Old 12-17-2011, 12:06 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was able to Mark Forums Read without any trouble as a visitor, I could see that part of the code was correct as well, when I checked source code. Do you have a test account I can log in to so I can try it from quick links? If so PM me the details.

Here's the code you need to have for the "Mark Forums Read" in Quick Links:

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>
This should be in your Navbar Template.
Reply With Quote
  #9  
Old 12-17-2011, 12:16 AM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you see the "Quick Links" menu item as a visitor? It doesn't show for me. Are you using the black and gold template? It's the "Default Style" in the footer.

I'll set you up a test AC and pm you the pw.
Reply With Quote
  #10  
Old 12-17-2011, 12:20 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See my edit in post #8 above for what I believe is missing code for you.


Find and replace, in NAVBAR template:

Find:
Code:
<div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">Quick Links</td></tr>
		<tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr>
		<tr><td class="vbmenu_option"><a href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr>
Replace with:
Code:
<div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">Quick Links</td></tr>
		<tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr>
                <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></td></tr>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:09 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.04400 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete