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)

basilrath 04-24-2010 04:37 PM

The security token issues in relation to scores not being submissible are generally down to the index.php being over-written and hence the hook isnt there to submit................if thats the case then make sure you have the code below in your index.php

after <?php

add.......

PHP Code:

// 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 

this has inadvertantly happened quite a lot when upgrades are being carried out

dankreiner 04-24-2010 04:59 PM

Quote:

Originally Posted by Griffin80 (Post 2025226)
Just installed the arcade, but the additional.css template does not seem be loaded with this plugin?

http://www.bluepearl-design.com/foru...hp?styleid=176

I changed my stylesheets to be stored as files to (no) and the problem is still there.

i also am having this problem! anyone able to lend a hand.... pretty please, my arcade is awesome buy looks weird cuz my ads are at the bottom...

dankreiner 04-24-2010 05:00 PM

Quote:

Originally Posted by dankreiner (Post 2026563)
i am having the same problem on 4.0.3 it worked fine for a few days and then went caput... maybe an incompatible mod? any ideas?

i fixed this by upgrading from 4.0.3 to 4.0.3 PL1 or whatever its called. :D

Markos 04-24-2010 05:13 PM

why do i keep getting this database error every time i try and uninstall this

Code:

Database error in vBulletin 4.0.3:

Invalid SQL:
        SELECT champ_gid AS gid, champ_mid AS userid, champ_name AS name, COUNT(champ_mid) AS total
                                                  FROM games_champs
                                                  GROUP BY userid
                                                  ORDER BY total DESC LIMIT 3;

MySQL Error  : Table 'scottishmark_reptiles.games_champs' doesn't exist
Error Number  : 1146
Request Date  : Saturday, April 24th 2010 @ 06:07:30 PM
Error Date    : Saturday, April 24th 2010 @ 06:07:31 PM
Script        : http://www.scottishexoticreptilesforum.co.uk/
Referrer      :
IP Address    : **.***.***.**


dankreiner 04-24-2010 05:22 PM

nevermind that did not fix me... it registered one score and out.

dankreiner 04-24-2010 05:25 PM

Quote:

Originally Posted by dankreiner (Post 2026582)
i also am having this problem! anyone able to lend a hand.... pretty please, my arcade is awesome buy looks weird cuz my ads are at the bottom...

actually my problem is a little different... my ads, leaderboard and skycrapers all appear at the bottom of the page that i programmed in additional.css.

calvinnguyen 04-24-2010 05:35 PM

don't see any upgrade from the author

rollerman 04-24-2010 07:06 PM

Quote:

Originally Posted by basilrath (Post 2026569)
The security token issues in relation to scores not being submissible are generally down to the index.php being over-written and hence the hook isnt there to submit................if thats the case then make sure you have the code below in your index.php

after <?php

add.......

PHP Code:

// 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 

this has inadvertantly happened quite a lot when upgrades are being carried out

I'm not really sure which part of "this isn't working" is unclear, but someone really needs to try to figure this out.

TimberFloorAu 04-24-2010 10:32 PM

Isnt it about time, this got a style overhaul.

dankreiner 04-24-2010 11:03 PM

Quote:

Originally Posted by TimberFloorAu (Post 2026756)
Isnt it about time, this got a style overhaul.

wouldn't that be delicious. :rolleyes:


All times are GMT. The time now is 04:47 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.06118 seconds
  • Memory Usage 1,789KB
  • 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_php_printable
  • (5)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