Version: 1.00, by EH-Jay
Developer Last Online: Oct 2009
Version: 3.0.7
Rating:
Released: 02-26-2005
Last Update: Never
Installs: 11
No support by the author.
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.phpfind:
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') . '";');
}
}
}
The above came with the hack, but I was just restating it. Moving on...
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>
Should be working after that. And god I hope no one else posted something like this, I'll feel like such an idiot lol. Look below for the attatched ss.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
hey is there a way so that these show up only in the profile of user when its clicked and not in the postbit? Cos for members having many game titles its filling up the screen.
hey is there a way so that these show up only in the profile of user when its clicked and not in the postbit? Cos for members having many game titles its filling up the screen.
Yes. That`s no problem. Delete in postbit Template $post[arcadeawards].
Easy ... :nervous:
followed everything and to say the true it didnt change nothing at all in the way it appears in the forum dont know why but im sure i followed everything that was told on this thread can someone help me plz?