Results 1 to 2 of 2

Thread: Problems since upgrade to 4.1.11 with vbcmps and ibproarcade

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    14

    Default Problems since upgrade to 4.1.11 with vbcmps and ibproarcade

    Hope some one can help with this one.

    Ever since I upgrading to 4.1.11, I keep getting this errors below when using arcade code in the cmps_index.php. Anyone any ideas?

    Thanks in advance.

    Notice: Undefined index: module in /home/worldsat/public_html/index.php on line 3

    Notice: Use of undefined constant act - assumed 'act' in /home/worldsat/public_html/index.php on line 42

    Notice: Undefined index: act in /home/worldsat/public_html/index.php on line 42

    Notice: Use of undefined constant autocom - assumed 'autocom' in /home/worldsat/public_html/index.php on line 43

    Notice: Undefined index: autocom in /home/worldsat/public_html/index.php on line 43

    Notice: Use of undefined constant showuser - assumed 'showuser' in /home/worldsat/public_html/index.php on line 44

    Notice: Undefined index: showuser in /home/worldsat/public_html/index.php on line 44

    Fatal error: Call to undefined function print_portal_output() in /home/worldsat/public_html/index.php on line 101

  2. #2
    Junior Member
    Join Date
    May 2010
    Posts
    14

    Default

    This is the code I add to the index.php, worked perfect in earlier versions: -

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ibproarcade and CMPS problems
    By jimjam in forum Troubleshooting & Problems
    Replies: 0
    Last Post: 05-19-2009, 09:41 AM
  2. after forum upgrade vbcmps is gone..
    By an087535 in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 03-07-2009, 11:29 AM
  3. Upgrade problems.
    By [RDH]Razor[OT] in forum Troubleshooting & Problems
    Replies: 12
    Last Post: 06-10-2007, 06:32 PM
  4. CMPS & IbProArcade problems
    By Skaterscafe.com in forum Troubleshooting / "How do I..." Questions
    Replies: 10
    Last Post: 05-11-2006, 06:35 AM
  5. Upgrade Problems
    By zigsterfrag in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 06-09-2005, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •