vb3 Arcade Profile Hack
This modification is in the archives.
If your wondering, of course I'm aware of the current Profile hack that comes with vb3 arcade, but I wanted something better so I kinda coded a tiny new hack. It's pretty basic, but I think it looks better. Have a look:
Code:
This came with the Profile hack. If you didn't do this already: Edit: member.php find: if (!$userid) Above it, add: if ($arcadegeneral['awardson']==1) { // declares the arcade image directory $stylevar['imgdir_arcade'] = "images/arcade"; $arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscore,miniimage,gameid FROM " . TABLE_PREFIX . "games "); while ($arcade = $DB_site->fetch_array($arcade_result)){ if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){ $awards[$arcade[shortname]]['userid'] = $arcade['highscorerid']; $awards[$arcade[shortname]]['gametitle'] = $arcade['title']; $awards[$arcade[shortname]]['icon'] = $arcade['miniimage']; $awards[$arcade[shortname]]['highscore'] = $arcade['highscore']; $awards[$arcade[shortname]]['gameid'] = $arcade['gameid']; } } foreach ($awards as $key => $award) { if ($award['userid']==$userid) { eval('$arcadeawards .= "' . fetch_template('arcade_awards_bit') . '";'); } } } Code:
Templates to modify: MEMBERINFO Find: <if condition="$show['signature']"> Above it, add: <!-- arcade awards --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">Arcade Awards - <a href="arcade.php?$session[sessionurl]">Click to play the arcade!</a></td> </tr> <tr> <td class="alt1">$arcadeawards</td> </tr> </table> <!-- / arcade awards --> <br /> If it doesn't look like the attatched screen shot, then do this: Code:
Go to the template ARCADE_AWARDS_BIT Find: <if condition="$award[icon]!=' ' "><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]" alt="High Score: $award[highscore]" align="absmiddle" border=0></a> </if><span class="smallfont">$award[gametitle] Champion!</span><br> Replace that with: <if condition="$award[icon]!=''"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]" alt="$award[gametitle] Champ, score: $award[highscore]" align="absmiddle" border=0></a> </if> Download No files for download. Screenshots
|
Similar Mods
Add-On Releases Arcade Rankings Link in Member Profile | vBulletin 3.6 Template Modifications |
Profile Enhancements Arcade and Photoplog Links in Profile | vBulletin 3.7 Template Modifications |
v3 Arcade/Arcade Pass Hack - Usergroup Option - Can Free Arcade | vBulletin 3.0 Full Releases |