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.
since includes/functions_showthread.php is called by the profile page by using that in effect you are doing two sql queries to the database when you want to get arcade awards. Cause of the way Johns install instructions where, though they may have changed It's possible to use the same php to sort the array for both the postbit and the profile, as I do
very funny,,,
I have done exactly whats been said above. It doesn't seem to work for some reason. I am getting the text:
"Arcade Awards - Click to play the arcade!"
But below that is empty.... even for users who have won 10 titles.
Quote:
Did you install the correct template for the $arcadeawards bit?
If you mean the last step of hack then yes i have done that also. But can't see anything even now. I am not using the default VB skin. Could that be a reason? (i am on 3,07 though)
If you want to message me with an admin account for your forums I'd be happy to help you. I can't think of any reason for it not to work, regardless of the style.