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 |
#82
|
|||
|
|||
sweet installed
|
#83
|
|||
|
|||
how can we store game_size.php so nobody can run it? Can we rename it or store it in admincp folder?
|
#84
|
|||
|
|||
Love this hack. ITs perfect. Thanks!
But I have the Categories mod installed and this Mod worked perfectly even with this Categories Mod. So that's not my issue. My issue is that the Categories Mod takes away listing of any game on the main entrance page to the arcade.php that visitors first see when they hit the arcade. I would like to get this mod to also display on my main Arcade page below the list of categories. Can you help me out? I couldn't figure out which mod page would be better to post this question at. |
#85
|
||||
|
||||
I can't find this code, I've even tried searching for the three top lines individually and nothing came back
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); } |
#86
|
||||
|
||||
try looking for this line:
Quote:
|
#87
|
||||
|
||||
Believe it or not ... it's not there, just searched through arcade.php - not found
|
#88
|
||||
|
||||
really?? mmm... did you modified the arcade.php file alot?
|
#89
|
|||
|
|||
Quote:
|
#90
|
||||
|
||||
I did the changes remotely via ftp .... I used CuteFTP's built in editor, that's pretty darn handy too.
I've not hacked the Arcade at all .. only for the resolution selection for the games, that's the only one installed. I might just download the original arcade.php and see what happens if I replace it for the current one. |
#91
|
|||
|
|||
You will probably need the latest version of v3arcade, v1.0.3.
The lines aren't there in v1.0.0, Now for my problem: I can't get the layout right, the page is totaly messed up. So can somebody who has only installed this modification on v3arcade, share his arcade_main template? Thx, seba |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|