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 |
#72
|
||||
|
||||
I cannot find the
Quote:
-- |
#74
|
||||
|
||||
My site is heavily modified....
Can I place the code somewhere else to get this to work?? |
#75
|
|||
|
|||
Is there a way to reduce the number of columns? I read the above instructions and it reads like changing colspan= to a different number will reduce the # of games shown going across but that's not what's working. Right now I've opted to show 16 games per page. That's working fine. I have a 4x4 grid. But I'd much rather have a 3x4 grid (three across, four down) so that the boxes are a bit bigger. Changing the colspan= only changes the bar above and below the games listed (where "Total Games:" and the thin line beneath the columns are).
I've played with this for about 45 minutes and can't figure out where the columns are changed at. :ermm: edit: nevermind, Intex answered this on page 1. I just missed his post. |
#76
|
||||
|
||||
Quote:
|
#77
|
||||
|
||||
very nice, thanks
click install |
#78
|
|||
|
|||
I been trying to sort out the new look option but it all mest up
Code:
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td class="thead">Game</td><td class="thead">Champion</td><td class="thead">Personal Best</td><td class="thead">Description</td> </tr> <tr align="center"> <td colspan="18" class="thead">total games: $gamecount </td> </tr> $gamebits <tr align="center"> <td class="thead" colspan="18" align="center"> </table> </tr> </tr> </table> <!-- /games --> <br /> $pagenav |
#79
|
|||
|
|||
Very nice, looks great.
*Installs |
#80
|
|||
|
|||
One of my users is always in the arcade and he has a lot of titles.
Now in the forum he has vertical a big rule of titels.( see the attachment) How can i change the titles to a horizontal rule? |
#81
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|