Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HTML5 Game Mod for ibProArcade Details »»
HTML5 Game Mod for ibProArcade
Version: 1.2, by stangger5 stangger5 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.2.5 Rating:
Released: 12-31-2020 Last Update: 02-09-2021 Installs: 16
Supported Uses Plugins
Additional Files  

Version 1.2

This is for ibProArcade 2.7.6+

With this mod you can install and play HTML5 games.

Upload and overwrite:

admincp/arcade.php

arcade/modules/arcade_playgame.php
arcade/modules/arcade_playgame_full.php
arcade/modules/arcade_playtournament.php
arcade/modules/arcade_showgames.php

arcade/skins/skin_Arcade.php
arcade/skins/skin_v3Arcade.php

arcade.php

Import the product-gamesystemcheck.xml
Do the Scores.txt edit.

Priority support at: next-level-arcade.com
Note:HTML5 Games from my site will install automatically, no need to edit anything.

Download Now

File Type: zip html5 game mod ibproarcade v1.2.zip (94.7 KB, 53 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-12-2021, 01:11 PM
lagrace lagrace is offline
 
Join Date: Dec 2005
Location: Philippines
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello
when i want to install html5 games i have this as error

PHP Warning: mysqli_query(): (42S22/1054): Unknown column 'system' in 'field list' in ....\arcade\functions\dbclass_mysqli.php on line 193

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in ....\arcade\functions\dbclass_mysqli.php on line 512


There is a SQL error.
You can contact the board administrator by clicking here

Error Returned

PHP Code:
mySQL query errorINSERT INTO games_list (gname,gwords,gtitle,bgcolor,gwidth,gheight,active,object,gkeys,gcat,system,cost,jackpot,jackpot_type,added,tourney_use,gtime,game_type,g_raters,license,filesizeVALUES ('ChristmasMysteries','Find all the hidden objects in this Christmas Mystery game. Click to find an object or differences.','Christmas Mysteries','000000','700','400','1','Find all the hidden objects in this Christmas Mystery game. Click to find an object or differences.','','1','20','0','0','-1','1610463324','1','0','0','','','0')

mySQL error
mySQL error code
DateTuesday 12th 2021f January 2021 02:55:24 PM 
Reply With Quote
  #3  
Old 01-12-2021, 01:27 PM
shka shka is offline
 
Join Date: Mar 2016
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MySQL Version >=8.0.3?

system is a reserved word, so you have to use it only with backticks.

So first you could change line 14 of product-gamesystemcheck.xml

Code:
			<installcode><![CDATA[$vbulletin->db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "games_list add `system` tinyint(1) DEFAULT '0' NOT NULL");
$vbulletin->db->show_errors();]]></installcode>
and reinstall.
Reply With Quote
Благодарность от:
stangger5
  #4  
Old 01-12-2021, 05:32 PM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lagrace View Post
Hello
when i want to install html5 games i have this as error

PHP Warning: mysqli_query(): (42S22/1054): Unknown column 'system' in 'field list' in ....\arcade\functions\dbclass_mysqli.php on line 193

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in ....\arcade\functions\dbclass_mysqli.php on line 512


There is a SQL error.
You can contact the board administrator by clicking here
Did you Import the product-gamesystemcheck.xml
Reply With Quote
  #5  
Old 01-12-2021, 06:46 PM
lagrace lagrace is offline
 
Join Date: Dec 2005
Location: Philippines
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mariadb 10.4.17 and php 7.1.33

the column system is not created when importing the product



ps: with the shka trick it happens

the game is installed but on the game page I have this as an error the game is not displayed

PHP Code:
PHP Warningfopen(arcade/MahjongConnect.swf): failed to open streamNo such file or directory in ....\arcade.php on line 660 
line 658-667
PHP Code:
function pnFlashGames_getChecksum($file){
 
$file "arcade/".$file.".swf";
 if(
$fp fopen($file'r')){
  
$filecontent fread($fpfilesize($file));
  
fclose($fp);
  return 
md5($filecontent);
 }else{
  return 
false;
 }



in my browser I have this
http://localhost/ibphtml5/index.php?...play&gameid=21
Reply With Quote
  #6  
Old 01-13-2021, 03:08 AM
kylek kylek is offline
 
Join Date: Oct 2003
Location: British Columbia, Canada
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this on another site - fresh install of 2.7.6, get the same error on game page that lagrace has.


Code:
PHP Warning: fopen(arcade/PyramidSolitaire_stang.swf): failed to open stream: No such file or directory in ..../arcade.php on line 660
Reply With Quote
  #7  
Old 01-13-2021, 09:18 AM
lagrace lagrace is offline
 
Join Date: Dec 2005
Location: Philippines
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the file arcade / module / arcade.playgame.php

find this

PHP Code:
$game['game_file'] =  "<iframe src=\"/arcade/gamedata/{$game['gname']}/index.html\" gid=\"{$game['gid']}\" tgame=\"0\" gname=\"{$game['gname']}\" gamename=\"{$game['gname']}\" mname=\"{$game['username']}\" width=\"{$game['gwidth']}\" height=\"{$game['gheight']}\" frameborder=\"no\" scrolling=\"no\"></iframe>"
replace with this

PHP Code:
$game['game_file'] =  "<iframe src=\"./arcade/gamedata/{$game['gname']}/index.html\" gid=\"{$game['gid']}\" tgame=\"0\" gname=\"{$game['gname']}\" gamename=\"{$game['gname']}\" mname=\"{$game['username']}\" width=\"{$game['gwidth']}\" height=\"{$game['gheight']}\" frameborder=\"no\" scrolling=\"no\"></iframe>"
search
PHP Code:
 $game['username'] = $player_name $this->arcade->user['name'];
 
$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
 
$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason 
replace with

PHP Code:
 //$game['username'] = $player_name = $this->arcade->user['name'];
// $game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
 //$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason 
in the file arcade / module / arcade_playgame_full.php

find this

PHP Code:
<iframe src ="/arcade/gamedata/{$game['gname']}/index.html" gid="{$game['gid']}gname="{$game['gname']}style="overflow: hidden; height: 100%; width: 100%;position: absolute;" frameBorder="no" scrolling="no" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>"; 
replace with this

PHP Code:
<iframe src ="./arcade/gamedata/{$game['gname']}/index.html" gid="{$game['gid']}gname="{$game['gname']}style="overflow: hidden; height: 100%; width: 100%;position: absolute;" frameBorder="no" scrolling="no" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>"; 
search
PHP Code:
 $game['username'] = $player_name $this->arcade->user['name'];
 
$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
 
$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason 
replace with

PHP Code:
 //$game['username'] = $player_name = $this->arcade->user['name'];
 //$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
 //$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason 
in arcade.php

PHP Code:
function pnFlashGames_getChecksum($file){
 
$file "arcade/".$file.".swf";
 if(
$fp fopen($file'r')){
  
$filecontent fread($fpfilesize($file));
  
fclose($fp);
  return 
md5($filecontent);
 }else{
 return 
false;
 }

replace with

PHP Code:
//function pnFlashGames_getChecksum($file){
// $file = "arcade/".$file.".swf";
// if($fp = fopen($file, 'r')){
 // $filecontent = fread($fp, filesize($file));
 // fclose($fp);
 // return md5($filecontent);
// }else{
 // return false;
// }
//} 
Reply With Quote
Благодарность от:
stangger5
  #8  
Old 01-14-2021, 05:12 PM
kylek kylek is offline
 
Join Date: Oct 2003
Location: British Columbia, Canada
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks lagrace, works now!
Reply With Quote
Благодарность от:
lagrace
  #9  
Old 01-19-2021, 08:12 PM
blue6995 blue6995 is offline
 
Join Date: Oct 2005
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this and ibProArcade 2.7.6+ work with vBulletin 4.2.2

Thanks
Reply With Quote
  #10  
Old 01-20-2021, 07:59 AM
kylek kylek is offline
 
Join Date: Oct 2003
Location: British Columbia, Canada
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blue6995 View Post
Will this and ibProArcade 2.7.6+ work with vBulletin 4.2.2

Thanks

Yes.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08255 seconds
  • Memory Usage 2,381KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (13)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete