Facebook Twitter Pinterest Share

Arcade Games All vBulletin Arcade Games.

New Thread  Post Reply
iRiot's Avatar
iRiot : Member
iRiot is on a distinguished road
offline Joined: Nov 2007 Posts: 21 Thanked: 0
Thread Starter Unread 01-19-08
CMPS Users, Read for Score saving

Just so you all know,
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:
you have to insert:
// ibProArcade
if($_POST['module'] == "pnFlashGames")

		case "storeScore":
		$_GET['act'] = "Arcade";
		$_GET['module'] = "arcade";
		$_GET['do'] = "pnFStoreScore";

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

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

		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
			print "&opSuccess=false&error=Error&endvar=1";

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

// end of ibProArcade

Otherwise your scores won't be recorded

Unsure if this goes here, I was wondering if it should have been here or Compatible Scripts.

Nonetheless, move where it needs to be.
New Thread  Post Reply

Thread Tools

  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
score, saving, read, users, cmps
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
Powered by GYSN Underground 2021