The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
v3Arcade - new look to your arcade main page Details »» | |||||||||||||||||||||||||||
v3Arcade - new look to your arcade main page
Developer Last Online: Jun 2010
As I was asked about this one
--------------------------------------------------- These hack adds new look to your arcade main page. Files to edit: 1 Templates to edit: 2 Very easy to install... Just 2" --------------------------------------------------- Find in arcade.php Code:
// Gets all of the games while ($game = $DB_site->fetch_array($result_allgames)) { $gamename = $game['shortname']; if ($gamecache["$game[shortname]"]) { $game = $gamecache["$game[shortname]"]; } else { // the game has never had a score recorded // $extra is used as a conditional for the arcade_main_games_bit template $extra = 1; } if (strlen($game['username'])>12) { $game['username'] = "<font size=1>".$game['username']."</font>"; } if (($game['gamesettings'] & 1)&&($g >= $startingfrom && $g<$upperlimit)) { eval('$gamebits .= "' . fetch_template('arcade_main_games_bit') . '";'); exec_switch_bg(); } if ($game['gamesettings'] & 1) { $g++; } unset($extra); } Code:
// Gets all of the games $gamebits .="<tr>"; while ($game = $DB_site->fetch_array($result_allgames)) { $gamename = $game['shortname']; if ($gamecache["$game[shortname]"]) { $game = $gamecache["$game[shortname]"]; } else { // the game has never had a score recorded // $extra is used as a conditional for the arcade_main_games_bit template $extra = 1; } if (($game['gamesettings'] & 1)&&($g >= $startingfrom && $g < $upperlimit)) { if(!(($g+1)%4)) $nextrow="</tr><tr>"; else $nextrow=""; eval('$gamebits .= "' . fetch_template('arcade_main_games_bit') . '";'); exec_switch_bg(); } if ($game['gamesettings'] & 1) { $g++; } unset($extra); } $gamebits .="</tr>"; And edit "arcade_main" template around $gamebits to change every newrest colspan="4" to your number of columns Code:
<tr align="center"> <td colspan="4" class="thead">total games: $gamecount </td> </tr> $gamebits <tr align="center"> <td class="thead" colspan="4" align="left"> ------------------ Thats all! You can easy to make your own number of columns Don't forget to edit number of games per page! -------------------------------------------- Forget to say if you want to include info about the game size you need to edit the game table in your DB Code:
ALTER TABLE `games` ADD `filesize` INT( 10 ) DEFAULT '0' NOT NULL ; Show Your Support
|
Comments |
#62
|
|||
|
|||
Quote:
|
#63
|
||||
|
||||
Thx for this super hack. Works great with 3.0.6 too !!! :laugh:
Now i will take a beer. :laugh: :lick: |
#64
|
||||
|
||||
anyway to chouse where the games are located in each colum?
like what order ther displayed in? |
#65
|
|||
|
|||
you do not have permission to access this page. This could be due to one of several reasons:
1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? 2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. Umm, what did I do wrong in installing it? |
#66
|
||||
|
||||
i dont kow what i did but this aint working at all!!!!!!!! i tried everything and thats what comes up (thats without even editing the arcade.php
http://www.dancehallareaz.com/forum/arcade.php when i had the modification nuthin appears wassup? i tried to revert template i cant... |
#67
|
||||
|
||||
Quote:
Thanks to you it workssssssssssss :nervous: |
#68
|
||||
|
||||
Quote:
|
#69
|
||||
|
||||
FIXED
now i wanna know how can i put them in alphabetic order?? |
#70
|
|||
|
|||
I got this problem when I change template arcade_main_games_bit:
Code:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/public_html/home/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 4 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#71
|
||||
|
||||
Quote:
revert your template and copy again..thats what i did for like 3 hours to finally get it to work.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|