vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Upgraded from 3.6 to 3.8.8 to get "mark forums read security token was invalid" (https://vborg.vbsupport.ru/showthread.php?t=318176)

NumNum 04-09-2015 10:30 AM

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


kh99 04-09-2015 11:24 AM

I don't see anything wrong with the 'mark forums read' part. Do you have any sort of page caching going on?

NumNum 04-09-2015 12:03 PM

No, the memory is flushed when browser is closed. I even performed this manually. This problem is experienced by all users from different workstations.

kh99 04-09-2015 12:16 PM

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.

NumNum 04-13-2015 11:13 AM

Quote:

Originally Posted by kh99 (Post 2542688)
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:

Lynne 04-13-2015 04:29 PM

You realize that none of your styles or modifications will work in vB5, right?

NumNum 04-15-2015 09:51 AM

Quote:

Originally Posted by Lynne (Post 2542998)
You realize that none of your styles or modifications will work in vB5, right?

But they can be reconfigured, correct?

Max Taxable 04-15-2015 10:47 AM

Quote:

Originally Posted by NumNum (Post 2543102)
But they can be reconfigured, correct?

No.

NumNum 04-17-2015 09:41 AM

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!

Lynne 04-18-2015 08:45 PM

Quote:

Originally Posted by NumNum (Post 2543102)
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.


All times are GMT. The time now is 09:23 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.01177 seconds
  • Memory Usage 1,791KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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