v3 Arcade - Professional vBulletin Gaming
Home v3 Arcade Forums v3 Arcade Products & Services

Go Back   v3 Arcade Forums > v3 Arcade > v3 Arcade Support > v3 Arcade 2.x.x for vBulletin 3.8.x Support > Troubleshooting, Problems, Questions

Notices

Troubleshooting, Problems, Questions If you are having problems with v3 Arcade, please post them here. Need help figuring out how to do something with v3 Arcade? Post here to get help.

Reply
 
Thread Tools
  #1  
Old 3rd February 2010, 03:07 PM
abdalwahid's Avatar
abdalwahid abdalwahid is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Rep Power: 0
abdalwahid is on a distinguished road
Default Another Portal

Hello my index.php is not from orginal vbulletin index.php.


this is from ibproarcade

Code:
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
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
----------------------------------------------------------


Otherwise your scores won't be recorded :)

i will a code for my index.php with v3 Arcade

regard
Reply With Quote
  #2  
Old 4th February 2010, 05:07 AM
abdalwahid's Avatar
abdalwahid abdalwahid is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Rep Power: 0
abdalwahid is on a distinguished road
Default Re: Another Portal

is that possible?
Reply With Quote
  #3  
Old 9th February 2010, 12:54 AM
Kevin's Avatar
Kevin Kevin is offline
Administrator
v3A Administrator
 
Join Date: Aug 2004
Age: 40
Posts: 1,191
Rep Power: 10
Kevin is on a distinguished road
Default Re: Another Portal

abdalwahid,

Are you using something like vBa CMPS or a totally custom script? Does the portal use any of the includes to the vB files so that the various hooks are present?
__________________
v3 Arcade Support -- For v3A assistance, please use the support forums... unsolicted PMs, IMs, and email can not be responded to.


Sci-Fi Forums
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



All times are GMT -5. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


v3 Arcade™ design & content (excluding games)
Copyright ©2010, CinVin

Top   vBulletin by Jelsoft