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 |
#92
|
||||
|
||||
Quote:
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td class="thead" width="20%"> <span class="smallfont"><b>Logged in</b> as</span></td> <td class="thead" width="40%"><span class="smallfont"><b>Welcome</b> to the <b>Arcade</b>!</span></td> <td class="thead" width="40%"><span class="smallfont">Arcade <b>News & Events</b></span></td> </tr> <tr align="center"> <td class="alt1" width="20%" valign="middle"> <if condition="$bbuserinfo[userid]!=0"> <b>$bbuserinfo[musername]</b> <span class="smallfont"><br /> $bbuserinfo[usertitle]<br /><br /> $bbuserinfo[avatar]<br /><br /> <else /> <b><i>Guest</i></b><br /> <font size="1"><a href="$vboptions[bburl]/register.php">Click here to register!</a></font> </if> </span> </td> $welcomeblock <td class="alt1" width="40%" valign="top">$arcadenews</td> </tr> </table></td> </tr> </table> <!-- /arcade welcome --> <if condition="$ischallengepending == 1"> <!-- small space --> <span class="smallfont"><br> </span> <!-- /small space --> <!-- personal --> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td class="thead">Pending Challenges</td> </tr> <tr align="center"> <td class="alt1"><table>$challengebits</table></td> </tr> </table></td> </tr> </table> <!-- /personal --> </if> <!-- small space --> <br \><table cellspacing="0" border="0" width="$stylevar[tablewidth]"> <tr> <td> <if condition="$mhsusername"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="400" align="left"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td class="thead"><img src="$stylevar[imgdir_arcade]/king.gif" alt="The most Champions Titles !" align="absmiddle" border=0>Arcade-King:</td><td class="alt1"> <span class="smallfont"><a href="arcade.php?do=stats&userid=$mhsuser"><b>$mhs username</b></a> has <b>$mosthigh</b> Champions-Titles !</span> </td> </tr> </table> </td> </tr> </table> </if> <if condition="$mhsarray"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="90%" align="left"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td class="thead"><img src="$stylevar[imgdir_arcade]/morekings.gif" alt="The most Champions Titles !" align="absmiddle" border=0>Arcade-Kings:</td><td class="alt1"> <span class="smallfont"><b>$mhsarray</b></a> have <b>$mosthigh</b> Champions-Titles !</span> </td> </tr> </table> </td> </tr> </table> </if> <br \> <td align="right">$pagenav</td> </td> </tr> </table> <span class="smallfont"><br> </span> <!-- /small space --> <!-- games --> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr align="center"> <td colspan="3" class="thead">total games: $gamecount </td> </tr> $gamebits <tr align="center"> <td class="thead" colspan="3" align="left"> </table></td> </tr> </table> <!-- /games --> <br /> $pagenav |
#93
|
||||
|
||||
Quote:
did it work? |
#94
|
|||
|
|||
Hey,
I first also had to upload my changed arcade.php (I uploaded the wrong one) It was still a mess, but it worked with your template. thx a lot! |
#95
|
||||
|
||||
Quote:
|
#96
|
||||
|
||||
i would like to take out the total of games shown. it makes it look funny since all the games are on the same page. where can i edit that out. i just want the games to be on the arcade page so it looks cleaner than it does now. thanks ahead of time for the help
|
#97
|
||||
|
||||
Quote:
|
#98
|
|||
|
|||
worx like a charm m8
many thanx for the mod |
#99
|
|||
|
|||
Quote:
|
#100
|
||||
|
||||
Quote:
could you be a little more specific please thanks |
#101
|
|||
|
|||
Quote:
Code:
<tr align="center"> <td colspan="4" class="thead">total games: $gamecount </td> </tr> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|