Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-09-2015, 10:30 AM
NumNum's Avatar
NumNum NumNum is offline
 
Join Date: Apr 2015
Location: New York
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upgraded from 3.6 to 3.8.8 to get "mark forums read security token was invalid"

Upgraded from 3.6 to 3.8.8 to pave the way for vb5.1 and get the above error. I hope to resolve this prior to rolling out vb5.1 I have tried the recommended changes listed throughout this forum to no avail. Below is a shot of my edited template. I am obviously missing something. I know this is old school, but I hope someone can help.

PHP 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>
            <if 
condition="$show['member']">            
            <
td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>            
        </if>            
    </if>
    
$template_hook[navbar_buttons_right]
    <if 
condition="$show['member']">
        <
td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
    </if>
</
tr>
</
table>
<!-- / 
nav buttons bar -->

<
br />
<if 
condition="$show['forumdesc']">
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
tr>
        <
td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
    </
tr>
    </
table>
    <
br />
</if>

<if 
condition="$show['popups']">
<!-- 
NAVBAR POPUP MENUS -->
    
    <if 
condition="$show['searchbuttons']">
    <!-- 
header quick search form -->
    <
div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead">$vbphrase[search_forums]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
form action="search.php?do=process" method="post">
                    <
input type="hidden" name="do" value="process" />
                    <
input type="hidden" name="quicksearch" value="1" />
                    <
input type="hidden" name="childforums" value="1" />
                    <
input type="hidden" name="exactname" value="1" />
                    <
input type="hidden" name="s" value="$session[sessionhash]/>
    <
input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/>
                    <
div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]tabindex="1004" /></div>
                    <
div style="margin-top:$stylevar[cellpadding]px">
                        <
label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
                        &
nbsp;
                        <
label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
                    </
div>                    
                </
form>
            </
td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
        </
tr>
        
$template_hook[navbar_search_menu]
        </
table>
    </
div>
    <!-- / 
header quick search form -->
    </if>

    <if 
condition="$show['member']">
    <!-- 
user cp tools menu -->
    <
div class="vbmenu_popup" id="usercptools_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        
        <
tr><td class="thead">$vbphrase[quick_links]</td></tr>        
        <if 
condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
        <
tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr
Reply With Quote
  #2  
Old 04-09-2015, 11:24 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see anything wrong with the 'mark forums read' part. Do you have any sort of page caching going on?
Reply With Quote
  #3  
Old 04-09-2015, 12:03 PM
NumNum's Avatar
NumNum NumNum is offline
 
Join Date: Apr 2015
Location: New York
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the memory is flushed when browser is closed. I even performed this manually. This problem is experienced by all users from different workstations.
Reply With Quote
  #4  
Old 04-09-2015, 12:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, now I see, 'mark forums read' is there twice. The first one has &amp;markreadhash=$bbuserinfo[securitytoken] as part of the url, and the second one doesn't. So you need to make sure both urls have that part.
Reply With Quote
Благодарность от:
NumNum
  #5  
Old 04-13-2015, 11:13 AM
NumNum's Avatar
NumNum NumNum is offline
 
Join Date: Apr 2015
Location: New York
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, now I see, 'mark forums read' is there twice. The first one has &amp;markreadhash=$bbuserinfo[securitytoken] as part of the url, and the second one doesn't. So you need to make sure both urls have that part.
You, my friend, are awesome! That was the culprit.

I appreciate your time and input.
:up:
Reply With Quote
  #6  
Old 04-13-2015, 04:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You realize that none of your styles or modifications will work in vB5, right?
Reply With Quote
  #7  
Old 04-15-2015, 09:51 AM
NumNum's Avatar
NumNum NumNum is offline
 
Join Date: Apr 2015
Location: New York
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You realize that none of your styles or modifications will work in vB5, right?
But they can be reconfigured, correct?
Reply With Quote
  #8  
Old 04-15-2015, 10:47 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NumNum View Post
But they can be reconfigured, correct?
No.
Reply With Quote
Благодарность от:
NumNum
  #9  
Old 04-17-2015, 09:41 AM
NumNum's Avatar
NumNum NumNum is offline
 
Join Date: Apr 2015
Location: New York
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I wasn't clear on my question, which caused me confusion as well. So I played around with the trial software and it does meet my needs (adding links, scaling down links, etc).

The only thing I couldn't find is setting the default font size for the forum to something different. I will just have to play.

Thanks for the input!
Reply With Quote
  #10  
Old 04-18-2015, 08:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NumNum View Post
But they can be reconfigured, correct?
If you are a competent PHP coder, then you could probably recode them. But, it isn't an easy upgrading to the modifications like it was with vB3 mods to work on vB4. It is totally different. And the database structure is totally different.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04568 seconds
  • Memory Usage 2,302KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete