vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   How to fix "Security Token" Error for vBulletin 4.x.x (https://vborg.vbsupport.ru/showthread.php?t=231091)

MikalMirkas 12-24-2009 05:38 PM

How to fix "Security Token" Error for vBulletin 4.x.x
 
Now PLEASE, stop making threads about it. :)
This is how to fix it:
Go to your forum's directory, and find the
Code:

index.php
file. Right after the
Code:

<?php
, add this:
PHP Code:

// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
    require_once(
'./global.php');

    switch(
$_POST['func'])
    {
        case 
"storeScore":
        
$_GET['act'] = "Arcade";
        
$_GET['module'] = "arcade";
        
$_GET['do'] = "pnFStoreScore";
        break;

        case 
"saveGame":
        
$_GET['do'] = "pnFSaveGame";
        break;

        case 
"loadGame":
        
$_GET['do'] = "pnFLoadGame";
        break;

        case 
"loadGameScores":
        
$gid $vbulletin->input->clean_gpc('p''gid'TYPE_INT);
        
$uid$vbulletin->userinfo['userid'];
        
$game $db->query_first("SELECT * FROM " TABLE_PREFIX "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
        
$scores $game[score];

        if(
$scores != false)
        {
            
//Return true
            
print "&opSuccess=true&gameScores=$scores&endvar=1"//send endvar to keep opSuccess separate from all other output from PostNuke
        
}
        else
        {
            print 
"&opSuccess=false&error=Error&endvar=1";
        }
        break;
    }
}

$act $_GET[act];
$autocom $_GET[autocom];
$showuser$_GET[showuser];
if(
$act == "Arcade" || $autocom=="arcade") {
include 
"arcade.php";
exit();
}
if(!empty(
$showuser) && $showuser >= 1) {
$u $showuser;
$_GET[u] = $showuser;
include 
"member.php";
exit();
}

// end of ibProArcade 

Credit to Stangger5, and MrZeroPage.

Edit (LOL, this thread got replies? >_>):
Quote:

Originally Posted by Moey (Post 2168708)
Thanks

By the way.. you cant really blame a ton of people asking how to fix this..its not like its our responsibility..its the developers..not ours ..

README.txt is there for a reason. I have saw a LOT of these threads pushing out the actual issues on hand. kthx

CrosseyedGamer 12-24-2009 08:15 PM

I had this before the upgrade to the gold release. It worked well. Did the upgrade which included moving my forums to the root folder. I do not have a /forum directory anymore.

When I input the above into my index file I get nothing but errors in my header.

I have posted them elsewhere a few times.
Is there something that needs to change due to moving the forums to the route?

I appreciate anyone's help as our arcade has over 1100 games and our users love it.

Thanks.

Notice: Undefined index: module in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 3

Notice: Use of undefined constant act - assumed 'act' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 42

Notice: Undefined index: act in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 42

Notice: Use of undefined constant autocom - assumed 'autocom' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 43

Notice: Undefined index: autocom in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 43

Notice: Use of undefined constant showuser - assumed 'showuser' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 44

Notice: Undefined index: showuser in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 44

CrosseyedGamer 12-27-2009 08:57 PM

Still no response on this. Would love to get my homepage cleaned up of this extra text. Anyone?

Magz 12-27-2009 09:05 PM

In the arcade cp, under information, what does it say there?

( I too recently moved my site to root )

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

i see you have it fixed :)

CrosseyedGamer 12-27-2009 09:38 PM

Quote:

Originally Posted by Magz (Post 1939740)
In the arcade cp, under information, what does it say there?

( I too recently moved my site to root )

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

i see you have it fixed :)


This is not fixed.

If you go to my domain - crosseyedgamer.com you will see the notice text at the top of the page. that is not there if you proceed to the arcade page or other pages of the site.

So far , no answers on this.

Do you have this issue with it being in the root?

Magz 12-27-2009 09:47 PM

No problems at all here.

I use vbseo, and had a few problems with that, but no issues once i put in the "exclude" section, and ammended my index file.

sKippah 02-28-2010 10:54 AM

Works with this changes, but there is still one thing. I played Asteroids for the 1. time and after klicking "OK" it says, ingame "Could not access Game Table" but it saves the Score

CoZmicShReddeR 03-05-2010 07:14 AM

Quote:

Originally Posted by sKippah (Post 1993589)
Works with this changes, but there is still one thing. I played Asteroids for the 1. time and after klicking "OK" it says, ingame "Could not access Game Table" but it saves the Score

Same issue here with 4.02 CMS version

I see it goes to http://127.0.0.1/?act=Arcade&do=newscore

ahmedipa 03-07-2010 04:18 AM

I will try to solve this problem by following these steps

Gn_Snake 03-08-2010 06:15 PM

The same error...please!!!

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

Nothing?


All times are GMT. The time now is 06:08 PM.

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.01344 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete