| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  ibProArcade -  Security token was missing 
			
			Hey Whenever I try and submit my score on a game in the arcade system I get this msg; " Security token was missing". I tried following a help tutorial but it still is the same. | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			In the ibPro Arcade section there is a fix for this. Ideally it is recommended that if you have an issue with a modification you post in their thread and/or section to get help.
		 | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Yeh I haven't received any help from their so now can someone help me address this issue please. I haven't been back to resolve it.
		 | 
| 
			 
			#4  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   Code: If you are using vbAdvanced Portal and your /index.php is not the original one from vBulletin,
you have to edit your alternate index.php:
open index.php
At the very beginning of the File, right after:
----------------------------------------------------------
<?php
----------------------------------------------------------
you have to insert:
----------------------------------------------------------
// 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
----------------------------------------------------------
Otherwise your scores won't be recorded :) | 
| 
			 
			#5  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Thanks so much Hippy, it's working now    | 
| 
			 
			#6  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			sweet worked for me to    | 
| 
			 
			#7  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			What if we're not using vbAdvanced.?
		 | 
| 
			 
			#8  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			vb still uses forum.php.. and there is a redirect index.php so it doesn't matter if you use vbadvance or not
		 | 
| 
			 
			#9  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Add this to index.php in the "/Forum" folder or is there one in the "Forum/arcade" folder.?
		 | 
| 
			 
			#10  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			forum folder.. should be there already just edited it and save / reupload | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |