The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
v3 Arcade - Professional vBulletin Gaming (vB4) Details »» | |||||||||||||||||||||||||||||
v3 Arcade - Professional vBulletin Gaming (vB4)
Developer Last Online: Nov 2021
v3 Arcade is now a member of the vBadvanced family!
http://www.vbadvanced.com/forum/showthread.php?t=47571 The support forums & data from v3Arcade.com have been merged into the vBadvanced.com site. ================================= v3 Arcade for vBulletin 4.x.x For vBulletin 3.x.x, please see here. ================================= Please note... until v3Arcade.com is upgraded to vBulletin 4, some demo sites can be found here. Also, because of styling changes introduced in vB 4.0.8 to allow customized user profile pages, this version requires 4.0.8+ to be installed. "v3 Arcade" is the premiere arcade system written specifically for vBulletin. It's coded from scratch - not a port of an older version - and because it was coded specifically for vBulletin it uses the product system for code modifications & utilizes AJAX technology throughout. Here's a brief rundown of the features in this version of v3 Arcade. Supports MochiAds, v3 Arcade and IBPArcade games!
Branding Free ================================= All v3 Arcade installations carry and require a small "v3 Arcade" logo in the footer, as well as the text "Powered by v3 Arcade" which links to http:www.v3arcade.com. For information on legally removing the branding, please visit www.v3arcade.com. ================================= www.v3arcade.com ================================= If you're looking for more games, add-ons, support, tutorials, or anything Arcade related - www.v3arcade.com is the place to go. ================================= Copyright ================================= All code & images distributed in this zip is Copyright ?2010 CinVin, with the following exceptions:
Many thanks to... =================================
Change Log ================================= For the complete change log, please click here. The change log is getting too big to include inline with this thread. Download Now
Show Your Support
|
7 благодарности(ей) от: | ||
chocolate angel, GamBun, K4GAP, KevinL, MichaelDance, rootsxrocks, Sunka |
Comments |
#52
|
|||
|
|||
I dumped all the old games I had that were in .rar format and now have 300 V3 games that are in the .zip format. I put them in the FORUMROOT/admincp/games folder but when I try to import them I get message saying "There are no more games to import".
So, can anyone help? |
#53
|
||||
|
||||
@GaryT: Two major questions.... are you putting the zip files in that folder or the unzipped files? (See Gemma's post a few post back for game installation steps). The other thing is how old those files. The .php file should be a really small file with just a few variables in it; if it looks like the .php file that was posted earlier that was an actual install script then you'll have issues just like you would have with the .rar files.
|
#54
|
|||
|
|||
Thanks, import went well.
|
#55
|
|||
|
|||
Quote:
Recommend putting that in configuration in next version |
#56
|
|||
|
|||
Thanks for such amazingly quick response....
One more issue on import of TAR games (from IPB). I put all the TAR files in the right place and CHMOD'd folders to 777 as specificed. Upon import, I get this error Quote:
Thoughts? |
#57
|
||||
|
||||
Try editing your php.ini file settings to something like
max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 128M ; Maximum amount of memory a script may consume (8MB) Or, if you don't have access to your php.ini file, temporarily up your limits by editing your includes/config.php file and add this lines right under the <?php line: ini_set('memory_limit', 128 * 1024 * 1024); You may need to change the 128 to 256 or 512 See if that helps |
#58
|
|||
|
|||
Quote:
I have to say how great it is to get advice from someone who has a clue. Thanks, great work. |
#59
|
|||
|
|||
Quote:
Can you elaborate about the XML file what to do with it? Thanks |
#60
|
|||
|
|||
Quote:
Thanks |
#61
|
||||
|
||||
Doctor Death you need to go through the xml file you downloaded from v3arcade and extract all the templates below
adv_portal_as_recent_gametable adv_portal_as_played_gametable adv_portal_as_popular_gametable adv_portal_as_champbits adv_portal_as_champstable adv_portal_as_random adv_portal_as_newsbits adv_portal_as_newstable adv_portal_as_scorebits adv_portal_as_scoretable adv_portal_arcadestats The information you want for each template is between the [CDATA[ brackets For example the adv_portal_arcadestats template would be extracted from the xml file by searching for the template Code:
<adv_portal_arcadestats><![CDATA[<div> <table align="center" width="100%"> <tr><td colspan="3">{vb:raw as_score_table}</td></tr> <tr><td colspan="3">{vb:raw as_news_table}</td></tr> <tr> <td colspan="3"> <table width = "100%"> <tr> <td valign="top" width="60%">{vb:raw as_random_table}</td> <td> </td> <td valign="top">{vb:raw as_champs_table}</td> </tr> </table> </td> </tr> <tr> <td colspan="3"> <table width = "100%"> <tr> <td valign="top">{vb:raw as_recent_table}</td> <td> </td> <td valign="top">{vb:raw as_played_table}</td> <td> </td> <td valign="top">{vb:raw as_popular_table}</td> </tr> </table> </td> </tr> </table> </div>]]></adv_portal_arcadestats> Code:
<div> <table align="center" width="100%"> <tr><td colspan="3">{vb:raw as_score_table}</td></tr> <tr><td colspan="3">{vb:raw as_news_table}</td></tr> <tr> <td colspan="3"> <table width = "100%"> <tr> <td valign="top" width="60%">{vb:raw as_random_table}</td> <td> </td> <td valign="top">{vb:raw as_champs_table}</td> </tr> </table> </td> </tr> <tr> <td colspan="3"> <table width = "100%"> <tr> <td valign="top">{vb:raw as_recent_table}</td> <td> </td> <td valign="top">{vb:raw as_played_table}</td> <td> </td> <td valign="top">{vb:raw as_popular_table}</td> </tr> </table> </td> </tr> </table> </div> Then go to you AdminCP>vBulletinCMS>Widget Manager and make a new widget ie 'Arcade Stats' and copy the following code Code:
global $vbulletin, $bbcode, $parser, $path, $db; $g_limit = 5; $g_champs_limit = 5; $g_news_limit = 5; $g_scores_limit = 5; function get_games ($as_handle, $as_title, $limit) { global $vbulletin; switch ($as_handle) { case 'recent': $orderby = "dateadded DESC"; break; case 'played': $orderby = "sessioncount DESC"; break; case 'popular': $orderby = "votepoints DESC"; break; default: $orderby = "gameid ASC"; break; } $getgames = $vbulletin->db->query(" SELECT games.* FROM " . TABLE_PREFIX . "v3arcade_games AS games ORDER BY " . $orderby . " LIMIT $limit "); while ($game = $vbulletin->db->fetch_array($getgames)) { $game['gamename'] = fetch_trimmed_title(stripslashes($game['title']),$maxtitlechars); $game['gamedate'] = vbdate($vbulletin->options['dateformat'], $game['dateadded']); $getbgrow = exec_switch_bg(); switch ($as_handle) { case 'recent': $as_game_data = $game['gamedate']; break; case 'played': $as_game_data = "Played " . $game['sessioncount'] . " times"; break; case 'popular': $as_game_data = $game['votepoints'] . " votes"; break; default: $as_game_data = ""; break; } //eval('$as_gamebits .= "' . fetch_template('adv_portal_as_gamebits') . '";'); $templater = vB_Template::create('adv_portal_as_gamebits'); $templater->register('as_game_data',$as_game_data); $templater->register('game',$game); $as_gamebits .= $templater->render(); } $vbulletin->db->free_result($getgames); // eval('$gametable = "' . fetch_template("adv_portal_as_{$as_handle}_gametable") . '";'); $templater = vB_Template::create('adv_portal_as_' . $as_handle . '_gametable'); $templater->register('as_title',$as_title); $templater->register('as_gamebits',$as_gamebits); $gametable = $templater->render(); return $gametable; } function get_champs ($limit) { global $vbulletin; $champs = $vbulletin->db->query_read(" SELECT COUNT(games.highscorerid) AS count, user.username, user.userid FROM " . TABLE_PREFIX . "v3arcade_games AS games LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid WHERE user.userid IS NOT NULL GROUP BY user.username, user.userid ORDER BY count DESC, user.userid ASC LIMIT " . $limit ); $row = '0'; $awards = '0'; $leaders = '0'; while ($champ = $vbulletin->db->fetch_array($champs)) { $leaders++; if ($awards != $champ['count']) { $row = $leaders; } $awards = $champ['count']; $getbgrow = exec_switch_bg(); //eval('$as_champbits .= "' . fetch_template('adv_portal_as_champbits') . '";'); $templater = vB_Template::create('adv_portal_as_champbits'); $templater->register('getbrow',$getbrow); $templater->register('champ',$champ); $as_champbits .= $templater->render(); } $vbulletin->db->free_result($champs); //eval('$champstable = "' . fetch_template("adv_portal_as_champstable") . '";'); $templater = vB_Template::create('adv_portal_as_champstable'); $templater->register('as_champbits',$as_champbits); $champstable = $templater->render(); return $champstable; } function get_random_game () { global $vbulletin; $random_game = $vbulletin->db->query_first(" SELECT gameid,title,description,stdimage,highscore,user.userid,user.username FROM " . TABLE_PREFIX . "v3arcade_games AS games LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid ORDER BY RAND() LIMIT 1 "); $as_random_gameid = $random_game[gameid]; $as_random_gametitle = $random_game[title]; $as_random_stdimage = $random_game[stdimage]; $as_random_description = $random_game[description]; if($random_game[highscore] == 0) { $as_random_highscore = "No Score"; $as_random_highscorer = ""; $as_random_userid = ""; } else { $as_random_highscore = intval($random_game[highscore]); $as_random_highscorer = "(" . $random_game[username] . ")"; $as_random_userid = $random_game[userid]; } $vbulletin->db->free_result($random_game); //eval('$random_table = "' . fetch_template('adv_portal_as_random') . '";'); $templater = vB_Template::create('adv_portal_as_random'); $templater->register('as_random_gameid',$as_random_gameid); $templater->register('as_random_gametitle',$as_random_gametitle); $templater->register('as_random_highscore',$as_random_highscore); $templater->register('as_random_userid',$as_random_userid); $templater->register('as_random_highscorer',$as_random_highscorer); $templater->register('as_random_stdimage',$as_random_stdimage); $templater->register('as_random_description',$as_random_description); $random_table = $templater->render(); return $random_table; } function get_latest_champs ($limit) { global $vbulletin, $bbcode_parser; //var_dump($vbulletin); //highlight_file('./modules/arcadestats.php'); //exit; $news_items = $vbulletin->db->query_read(" SELECT * FROM " . TABLE_PREFIX . "v3arcade_news WHERE newstext LIKE '%is the new%' ORDER BY datestamp DESC LIMIT $limit "); while ($news_item = $vbulletin->db->fetch_array($news_items)) { //$as_news_text = $bbcode_parser->do_parse($news_item['newstext'], 1, 1, 1, 0); $as_news_text = $news_item['newstext']; $as_news_text = str_replace("arcade.php", $vbulletin->options['bburl'] . "/arcade.php", $as_news_text); $as_news_date = vbdate($vbulletin->options['dateformat'],$news_item['datestamp']); $as_news_time = vbdate($vbulletin->options['timeformat'],$news_item['datestamp']); $getbgrow = exec_switch_bg(); //eval('$as_newsbits .= "' . fetch_template('adv_portal_as_newsbits') . '";'); $templater = vB_Template::create('adv_portal_as_newsbits'); $templater->register('getbrow',$getbrow); $templater->register('as_news_text',$as_news_text); $templater->register('as_news_date',$as_news_date); $templater->register('as_news_time',$as_news_time); $as_newsbits .= $templater->render(); } $vbulletin->db->free_result($news_items); //eval('$news_table = "' . fetch_template('adv_portal_as_newstable') . '";'); $templater = vB_Template::create('adv_portal_as_newstable'); $templater->register('as_newsbits',$as_newsbits); $news_table = $templater->render(); return $news_table; } function get_latest_scores ($limit) { global $vbulletin; $latest_scores = $vbulletin->db->query_read(" SELECT sessions.userid, sessions.gamename, sessions.gameid, sessions.score, sessions.start, sessions.finish, user.username, games.title FROM " . TABLE_PREFIX . "v3arcade_sessions as sessions LEFT JOIN " . TABLE_PREFIX . "user AS user ON (sessions.userid = user.userid) LEFT JOIN " . TABLE_PREFIX . "v3arcade_games as games on (sessions.gameid = games.gameid) WHERE sessions.finish <> 0 ORDER BY sessions.sessionid DESC LIMIT $limit "); while ($latest_score = $vbulletin->db->fetch_array($latest_scores)) { $as_score_userid = $latest_score['userid']; $as_score_gameid = $latest_score['gameid']; $as_score_name = $latest_score['username']; $as_score_score = intval($latest_score['score']); $as_score_gametitle = $latest_score['title']; $as_score_date = vbdate($vbulletin->options['dateformat'],$latest_score['finish']); $as_score_time = vbdate($vbulletin->options['timeformat'],$latest_score['finish']); //echo "foo: $as_score_gametitle<br>\n"; $getbgrow = exec_switch_bg(); //eval('$as_scorebits .= "' . fetch_template('adv_portal_as_scorebits') . '";'); $templater = vB_Template::create('adv_portal_as_scorebits'); $templater->register('getbrow',$getbrow); $templater->register('as_score_userid',$as_score_userid); $templater->register('as_score_name',$as_score_name); $templater->register('as_score_score',$as_score_score); $templater->register('as_score_gameid',$as_score_gameid); $templater->register('as_score_gametitle',$as_score_gametitle); $templater->register('as_score_date',$as_score_date); $templater->register('as_score_time',$as_score_time); $as_scorebits .= $templater->render(); } $vbulletin->db->free_result($latest_scores); //eval('$score_table = "' . fetch_template('adv_portal_as_scoretable') . '";'); $templater = vB_Template::create('adv_portal_as_scoretable'); $templater->register('as_scorebits',$as_scorebits); $score_table = $templater->render(); return $score_table; } $as_score_table = get_latest_scores($g_scores_limit); $as_news_table = get_latest_champs($g_news_limit); $as_random_table = get_random_game(); $as_champs_table = get_champs($g_champs_limit); $as_recent_table = get_games("recent","Most Recent", $g_limit); $as_played_table = get_games("played","Most Played", $g_limit); $as_popular_table = get_games("popular","Most Popular", $g_limit); $collapseobj_arcadestats = $vbcollapse['collapseobj_arcadestats']; $collapseimg_arcadestats = $vbcollapse['collapseimg_arcadestats']; //eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_arcadestats') . '";'); $templater = vB_Template::create('adv_portal_arcadestats'); $templater->register('as_score_table',$as_score_table); $templater->register('as_news_table',$as_news_table); $templater->register('as_random_table',$as_random_table); $templater->register('as_champs_table',$as_champs_table); $templater->register('as_recent_table',$as_recent_table); $templater->register('as_played_table',$as_played_table); $templater->register('as_popular_table',$as_popular_table); $output = $templater->render(); You can see the result on my site http://www.forumbanter.com It took about 10 minutes. I still need to go back and edit the templates to make them fall in line with the changes introduced in vb4.0.8 If you have any problems let me know and I'll post up each individual template over on v3arcade.com but I'm off to bed now. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|