We are using ibproarcade v2.5.4 on vBulletin 3.5.4. We just installed a vBAdvanced CMPS v2.l.0 Portal. We renamed the CMPS file to Index.php.
We had the problem of when we submitted a score it popped up the CMPS Portal.
We placed this code we found in the Arcade Zip file for vBAdvanced portals
and it didn't work. It said parse error on line 2. The forums also disappeared.
This is the code we used. Is there an error in it or is there something new for VB 3.5.4?
Quote:
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 modification
if($_POST['module'] == "pnFlashGames"){
$_GET[act] = "Arcade";
$_GET['module'] = "arcade";
}
if($_POST['func'] == "storeScore"){
$_GET['do'] = "pnFStoreScore";
}
if($_POST['func'] == "saveGame"){
$_GET['do'] = "pnFSaveGame";
}
if($_POST['func'] == "loadGame"){
$_GET['do'] = "pnFLoadGame";
}
$act = $_GET[act];
$showuser= $_GET[showuser];
if($act == "Arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}
// end of ibProArcade modification
----------------------------------------------------------------------------------
Can anyone help us with this?
|