vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   ibProArcade Fixes (https://vborg.vbsupport.ru/showthread.php?t=249120)

LLent 12-08-2010 02:42 AM

when i play game and it ends it takes me back to forum home what can i do to remedy this what did i do wrong....

Hippy 12-08-2010 08:00 PM

never head of this...
so redirect you may have set ?

how long was the arcade installed ?

when did this start happening ?

what version are you running ?

forum or suite ?

LLent 12-08-2010 08:50 PM

i am using vb version 4.0.7 along with 2.7.0 for arcade i followed all directions but must went wrong somewhere i installed it 4 days ago and has done it since then takes me back to main forum after game finishes when i click submit score ...where would i change redirect if thats the case ...

thanks for fast response

HeLLCiTo 12-09-2010 05:59 AM

i think this is for the changes in de index.php, i hace this problem too.

--------------- Added [DATE]1291881997[/DATE] at [TIME]1291881997[/TIME] ---------------

i have those problem, i think it is for the changes in the index.php

Hippy 12-09-2010 08:06 PM

yep do the portal / index edit .. found in the zip archive..

LLent 12-11-2010 04:38 AM

i see the index php but what am i changing to stop the redirect and what do i put in as new code ...thanks in advance

Hippy 12-12-2010 07:05 PM

INFO - vbadvanced or another Portal.txt
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 :)


LLent 12-15-2010 12:40 AM

many thanks hippy that did it funny thing it was recording my scores too but we are good now thanks....

Rich_Princess 12-15-2010 03:49 AM

Hey guys, Im having a problem with score submission/log out on submission of scores with this mod. I am running 4.1 as well. I have noticed that the arcade works fine for some of my members, but not for others. I did also notice all scores were erased when I made upgrade from 4.0.8 to 4.1.... There seems to be no usergroup discrimination either with this no permission/ not saving score issue. One of my admins are having trouble, while I am fine(admin).... I have looked through most of the files, but I am still fairly new here, lol. My members are getting a bit restless for the arcade and Im hoping someone can help :) Thanks for any help in advance guys!

Hippy 12-15-2010 08:17 PM

Hi Rich_Princess .. as far as the scores being erased, the upgrade had nothing to do with it to my knowledge.. the only thing that would od that would be a un-install.. or manualy editing the database via phpmyadmin etc..

the user groups can be edited admincp usergroups..

as far as score saving ..
Do you run the suite or the forum?

Do you use the index.php for the forum or forum.php?
Do you use vbadvanced ?

Did you add the code to your index file ? if your forum address is ending in forum.php?


All times are GMT. The time now is 12:51 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.02008 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete