vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   ibProArcade v2.7.2+ installed and when finished play, it redirects me to forum home ? (https://vborg.vbsupport.ru/showthread.php?t=279298)

Apfelfrucht 02-28-2012 08:26 PM

ibProArcade v2.7.2+ installed and when finished play, it redirects me to forum home ?
 
Hello,

I've installed "ibProArcade v2.7.2+" on vBulletin 4 correctly, then i go test to play Tetris and when i finish to play, i click 'OK', the "Sending score" message appear, it then redirects me to my forum home page :confused:

When i check if my score is saved or not, there is nothing..

Any ideas will be appreciated, thanks !

ellinofatsa 02-29-2012 02:54 PM

same problem here

stangger5 02-29-2012 08:38 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2304555&postcount=2" target="_blank">Read this..</a>

ellinofatsa 02-29-2012 09:01 PM

Quote:

Originally Posted by stangger5 (Post 2304825)

i have do that not work...

stangger5 02-29-2012 10:48 PM

Quote:

Originally Posted by ellinofatsa (Post 2304837)
i have do that not work...

Would you like for me to have a look for you ??

Apfelfrucht 03-01-2012 01:43 PM

Hello ellinofatsa, stangger5,

Like i said above, i think the bug is only on some games, for example the Tetris game ;)

I've tried on Frogger game is fine, but i don't try yet the others games.

ellinofatsa 03-03-2012 02:37 AM

its ok i have fix the problem its the index file in forum folder it was wrong now safe all the game

Apfelfrucht 03-03-2012 01:56 PM

ellinofatsa, hmmm you mean "index.php" in the forum folder ? :s What's wrong with it, please let me know ;)

Thanks!

Apfelfrucht 03-07-2012 05:05 PM

Thanks stangger5 ;)

The solution is :

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



All times are GMT. The time now is 04:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01456 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete