BoYagoob
11-27-2005, 02:42 AM
Hello,
There is a hack used for vb 3.0.x, which has an instruction:
################################################## ########
#########
# Code modifications in file "index.php"
################################################## ########
#########
---------------------------------------------------------
----------
search for this code: (almost at the end)
---------------------------------------------------------
----------
eval('$navbar = "' . fetch_template('navbar') . '";');
---------------------------------------------------------
----------
change it to:
---------------------------------------------------------
----------
// Hack: most active user
$start = TIMENOW - TIMENOW % 86400;
$end = $start + 86400;
$maxposter = $DB_site->query_first("SELECT
user.username,user.userid,count(*) total FROM
".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post
WHERE user.userid=post.userid AND post.dateline BETWEEN
$start AND $end GROUP BY post.userid ORDER BY total DESC
LIMIT 1");
eval('$navbar = "' . fetch_template('navbar') . '";');
This is the code:
// Hack: most active user
$start = TIMENOW - TIMENOW % 86400;
$end = $start + 86400;
$maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end GROUP BY post.userid ORDER BY total DESC LIMIT 1");
eval('$navbar = "' . fetch_template('navbar') . '";');
Please can you help me in how can I make it a product or a plugin for a vb 3.5.x ?
Kind regards ..
There is a hack used for vb 3.0.x, which has an instruction:
################################################## ########
#########
# Code modifications in file "index.php"
################################################## ########
#########
---------------------------------------------------------
----------
search for this code: (almost at the end)
---------------------------------------------------------
----------
eval('$navbar = "' . fetch_template('navbar') . '";');
---------------------------------------------------------
----------
change it to:
---------------------------------------------------------
----------
// Hack: most active user
$start = TIMENOW - TIMENOW % 86400;
$end = $start + 86400;
$maxposter = $DB_site->query_first("SELECT
user.username,user.userid,count(*) total FROM
".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post
WHERE user.userid=post.userid AND post.dateline BETWEEN
$start AND $end GROUP BY post.userid ORDER BY total DESC
LIMIT 1");
eval('$navbar = "' . fetch_template('navbar') . '";');
This is the code:
// Hack: most active user
$start = TIMENOW - TIMENOW % 86400;
$end = $start + 86400;
$maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end GROUP BY post.userid ORDER BY total DESC LIMIT 1");
eval('$navbar = "' . fetch_template('navbar') . '";');
Please can you help me in how can I make it a product or a plugin for a vb 3.5.x ?
Kind regards ..