for the vb2.2.5 users....here is what works.....
in admin/functions find:
PHP Code:
$datecut = time() - $cookietimeout;
place under it this:
PHP Code:
// King of Tetris Hack, by John Warwick
global $DB_site;
$leaderboard = $DB_site->query_first('SELECT userid FROM arcade WHERE game = "tetris" ORDER BY score DESC');
$kingid = $leaderboard['userid'];
if ($post[userid] == $kingid) {
$crown = '<img src="http://www.yoursite.com/forum/images/crown.gif" alt="King of Tetris!" />';
} else {
$crown = '';
}
the
PHP Code:
global $DB_site;
was missing from Lesane's fix
p.s.
don't forget to set your url to the crown gif