Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to fix "Security Token" Error for vBulletin 4.x.x Details »»
How to fix "Security Token" Error for vBulletin 4.x.x
Version: , by MikalMirkas MikalMirkas is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-24-2009 Last Update: Never Installs: 0
 
No support by the author.

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 View Post
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-24-2009, 08:15 PM
CrosseyedGamer's Avatar
CrosseyedGamer CrosseyedGamer is offline
 
Join Date: Aug 2009
Location: MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 12-27-2009, 08:57 PM
CrosseyedGamer's Avatar
CrosseyedGamer CrosseyedGamer is offline
 
Join Date: Aug 2009
Location: MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still no response on this. Would love to get my homepage cleaned up of this extra text. Anyone?
Reply With Quote
  #4  
Old 12-27-2009, 09:05 PM
Magz's Avatar
Magz Magz is offline
 
Join Date: Nov 2006
Location: UK
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-27-2009, 09:38 PM
CrosseyedGamer's Avatar
CrosseyedGamer CrosseyedGamer is offline
 
Join Date: Aug 2009
Location: MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magz View Post
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?
Reply With Quote
  #6  
Old 12-27-2009, 09:47 PM
Magz's Avatar
Magz Magz is offline
 
Join Date: Nov 2006
Location: UK
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-28-2010, 10:54 AM
sKippah sKippah is offline
 
Join Date: Oct 2008
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 03-05-2010, 07:14 AM
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Sep 2006
Location: MI, USA
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sKippah View Post
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
Reply With Quote
  #9  
Old 03-07-2010, 04:18 AM
ahmedipa ahmedipa is offline
 
Join Date: Feb 2009
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try to solve this problem by following these steps
Reply With Quote
  #10  
Old 03-08-2010, 06:15 PM
Gn_Snake Gn_Snake is offline
 
Join Date: Feb 2006
Location: Italy
Posts: 358
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The same error...please!!!

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

Nothing?
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 06:25 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.04435 seconds
  • Memory Usage 2,316KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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