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)

Wanagi 05-16-2019 12:24 PM

if score is saved, this error will appear at the top:

Notice: Undefined index: module in /home/.sites/332/site6380816/web/index.php on line 4 Notice: Undefined index: act in /home/.sites/332/site6380816/web/index.php on line 43 Notice: Undefined index: showuser in /home/.sites/332/site6380816/web/index.php on line 45

This is line 43: $act = $_GET['act'];
this is line 45: $showuser= $_GET['showuser'];

Please help. Thx.

stangger5 05-16-2019 01:13 PM

Quote:

Originally Posted by Wanagi (Post 2599314)
if score is saved, this error will appear at the top:

This is line 43: $act = $_GET['act'];
this is line 45: $showuser= $_GET['showuser'];

Please help. Thx.

Try this:
In your index.php code

change this:
Code:

$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}

to this:
Code:

$act = isset($_GET['act']);
$autocom = isset($_GET['autocom']);
$showuser= isset($_GET['showuser']);
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}


Wanagi 05-16-2019 01:22 PM

thank you, stangger, but now is this error:

Notice: Undefined index: module in /home/.sites/332/site6380816/web/index.php on line 4

line 4: if($_POST['module'] == "pnFlashGames")

stangger5 05-16-2019 01:30 PM

Quote:

Originally Posted by Wanagi (Post 2599316)
thank you, stangger, but now is this error:

Notice: Undefined index: module in /home/.sites/332/site6380816/web/index.php on line 4

line 4: if($_POST['module'] == "pnFlashGames")

You can delete this code from you index.php
Code:

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;
        }
}


Wanagi 05-16-2019 01:43 PM

thank you, very much, stangger, now it works without Errors :)

Wanagi 05-17-2019 08:09 AM

is there somewhere a zoom-addon to enlarge the games while playing?

alfuzzy 05-23-2019 06:54 PM

I just successfully installed IB Pro Arcade on my site...and noticed that all the included games are flash-based. I know some of my site members prefer not to use flash...and it seems that flash games are not supported on mobile devices that don't suport flash.

Are there any non-flash games available for IB Pro Arcade...if so...can you point me in the right direction?:)

Thanks,

p.s. Hey Stangger5. I visited your site (very nice site by the way)...but couldn't find a download area. Is your site for playing games only...or downloading too? Thanks

stangger5 05-24-2019 03:26 PM

HTML5 games will work on mobile devices.

They`ll work with ibProarcade but it needs to be highly modified for you
to be able to install, play and save scores.

chudvs 07-31-2019 11:33 AM

using v4.2.5 & PHP 7

getting this error when I click games list

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

stangger5 08-12-2019 02:15 PM

Quote:

Originally Posted by chudvs (Post 2600076)
using v4.2.5 & PHP 7

getting this error when I click games list

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

Have you tired this edit?
https://vborg.vbsupport.ru/showpost....42&postcount=9


All times are GMT. The time now is 12:54 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.12383 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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