Quote:
Originally posted by bommelchen
How can i display the user with the most online time on Forumhome ?
The Hack is nice 
THX Bommelchen
|
open index.php (root folder)
find:
PHP Code:
// get total posts
before it add:
PHP Code:
$tuser = $DB_site->query_first("SELECT username,userid,timeonline FROM user ORDER BY timeonline DESC LIMIT 1");
$ttime = dotime($tuser[timeonline]);
$bestonline = "<b>User Most Online:</b> <a href='member.php?s=&action=getinfo&userid=$tuser[userid]>$tuser[username]</a> - $ttime";
then in the forumhome template where you want to appear place the variable ::
i think that should work

haven't tested yet... but regards
g-force2k2