Arabs Emperor
12-17-2002, 10:00 PM
this is java stat it's good and take from all forums stat
also you should put this
topposter code in phpinclude
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
}
if (strpos($_SERVER['PHP_SELF'], "index.php") != false)
{
$result = $DB_site->query("SELECT SUM(views) AS totalviews FROM thread");
$totalviews = $DB_site->fetch_array($result);
$totalviews = number_format($totalviews['totalviews']);
}
//
Converted to work with phpinclude by Anime-loo, hack by Lesane
//
Total Thread Views
by filburt1
---------------------------------------
demo :- http://www.freewebz.com/arabse/demo_vbt.htm
backgroun:- images/back1.jpg
you can used this http://www.freewebz.com/arabse/back1.jpg
---------------------------------------
i put the code in Attach
just put it any where in forumhome
my regards
sory for my bad english *_*
also you should put this
topposter code in phpinclude
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
}
if (strpos($_SERVER['PHP_SELF'], "index.php") != false)
{
$result = $DB_site->query("SELECT SUM(views) AS totalviews FROM thread");
$totalviews = $DB_site->fetch_array($result);
$totalviews = number_format($totalviews['totalviews']);
}
//
Converted to work with phpinclude by Anime-loo, hack by Lesane
//
Total Thread Views
by filburt1
---------------------------------------
demo :- http://www.freewebz.com/arabse/demo_vbt.htm
backgroun:- images/back1.jpg
you can used this http://www.freewebz.com/arabse/back1.jpg
---------------------------------------
i put the code in Attach
just put it any where in forumhome
my regards
sory for my bad english *_*