Version: , by rowlandc
Developer Last Online: Mar 2009
Version: Unknown
Rating:
Released: 07-01-2007
Last Update: Never
Installs: 0
No support by the author.
My forum isn't recording the scores of people games. I saw that because its not the /index.php file you had to change the /forums.php (where the form is located).
I edited the forums.php file as shown below:
I then uploaded that onto my website and the forum page was blank. The vbadvanced was work as my portal but when I went onto the forum it was a blank page.
case "saveGame":
$_GET[do] = "pnFSaveGame";
break;
case "loadGame":
$_GET[do] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc("p", "gid", TYPE_NOHTML);
$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
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.7 PL1 - Licence Number VBFEECEC05
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2007 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday');
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
I worked it out on my own
Sorry for the waste of time
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.