vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - ibProArcade - professional Arcade System (https://vborg.vbsupport.ru/showthread.php?t=101554)

jaffaman 07-31-2009 01:46 PM

I got this from an old version from v2.6.7 m8 i think it should be the same the file was called INFO - vbadvanced or another Portal.


Hope that helps Glen290.

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


glen290 07-31-2009 01:52 PM

That works perfect...cheers for your help jaffaman.. :D :D

jaffaman 07-31-2009 01:53 PM

Np m8

cionfs 08-03-2009 09:50 AM

Hi! I've a problem. When you enter a new score, this is not saved.
I've IbProArcade 2.6.8 and vBulletin 3.8.3.

How can I solve?

PS: I changed the index.php file by adding the code but does not solve

Eruantien 08-03-2009 07:18 PM

I have the same issue. New scores are not being saved.

inciarco 08-04-2009 01:15 AM

Sometimes on FireFox the Scores are Not Saved but on Internet Explorer and on Google Chrome All the Times the Scores are Saved Fine.

Try with those 2 Browsers, perhaps is something (Bug) on the Code that needs to be Reviewed for the Next Update of the Mod.

Of course Post the Results of your Tests with the other 2 Web Browsers.

My Best Regards.

:)

Eruantien 08-04-2009 02:35 AM

It is not saving the scores with any browser...

RedTrinity 08-04-2009 08:57 AM

Similar problem here, except every time a game goes to submit a score, a blank page is displayed instead. Refreshing the page displayed a message that the score is not saved.

Some scores are saved, but many are not.

Has never been an issue before, its possibly related to the upgrade to V2.6.8 recently.

Would appreciate some support, or a solution, for this :) Members are getting quite upset that some of their exceptionally good scores are not being recorded.

Cheers :)

multiplex 08-05-2009 07:17 PM

has anyone noticed this...

in the admin cp-->arcade-->Notifications

all options have a notification option except for the last 2

Notification-Messagetext: Reminder
Notification-Messagetext: Disqualification

i'm having people complain they missed their turn in a tournament cause they didnt get a notification. so i go to see if the option is turned on and the yes/no option isnt even there

is anyone else have this issue?

inciarco 08-12-2009 03:58 AM

Quote:

Originally Posted by GamerGirl27 (Post 1861109)
Similar problem here, except every time a game goes to submit a score, a blank page is displayed instead. Refreshing the page displayed a message that the score is not saved.

Some scores are saved, but many are not.

Has never been an issue before, its possibly related to the upgrade to V2.6.8 recently.

Would appreciate some support, or a solution, for this :) Members are getting quite upset that some of their exceptionally good scores are not being recorded.

Cheers :)


I Quote this Post I Just Made that Can be Useful to Perhaps Solve when Scores are not being Saved on Mozilla FireFox and also when Games don't Work as they should. (With Google Chrome and Internet Explorer the Score Problem don't Occur, so it's something with FireFox):


Quote:

Originally Posted by inciarco (Post 1865601)
On the CPanel Application where you can Configure Your Account, there is an Option for "Hotlink Protection", there you can set to Enable/Disable thar Feature and also the URLs that won't be Affected by it and the Files You'd like to Protect; and also the Option to "Allow Direct Requests of URLs of Files with the Web Browser" when the Hotlink Protection is Enabled, which is the one that is needed to be Activated for the Images to be Displayed on FireFox.

I Also Realized that this same Option when Enabled allow the Scores to be Saved on the IBProArcade Arcade Systemm which otherwise would'nt be Saved for many Games, and also things like the Sound in some Games that didn't Worked Before is Now Working Fine after Enabling that Option on the Hotlink Feature.

My Best Regards.

:)



All times are GMT. The time now is 02:32 AM.

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.07587 seconds
  • Memory Usage 1,756KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (7)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