Quote:
Originally Posted by jaykilgore
Thank you,
I was able to add a few games from the ibproarcade site. I like it better than the spam on the other site.
But now I've run into a problem, when I make a new record from a newly uploaded game, I get a
PHP Code:
Your submission could not be processed because a security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
I've put the fix
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
Both after the <?php and after the
http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/
And when that happens, it gives me a white page.
|
Don't use that code, that is for one of the other arcade systems.
If you run either vBAdvanced CMPS or vBulletin Suite CMS then you will need to make a small edit to your index.php file, details in this post -
https://vborg.vbsupport.ru/showpost....&postcount=469
If you don't have a portal or you do the edit and scores still don't submit, send me a link to your site and I'll check it out. Also it could be that I need to update one of your files.