dothanhtrung
08-31-2009, 10:00 PM
Demo online: http://demo.hoi-quan-tin-hoc.com/index.php?styleid=20
not "-" in the link
The first
ACP >> Plugins & Products >> Add New Plugin >>
Product: vBulletin
Hook Location: global_start
Title: forum stats start
Plugin PHP Code:
// forum stats start
$numbersmembers = $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " . TABLE_PREFIX . "user");
$numbermembers = number_format($numbersmembers['users']);
$counter = $db->query_first("SELECT COUNT(postid) AS posts, COUNT(threadid) AS threads FROM " . TABLE_PREFIX . "post");
$totalposts=number_format($counter['posts']);
$countthreads = $db->query_first("SELECT COUNT(*) AS threads FROM " . TABLE_PREFIX . "thread");
$totalthreads=number_format($countthreads['threads']);
// forum stats end
https://vborg.vbsupport.ru/attachment.php?attachmentid=103928&stc=1&d=1251810442
not "-" in the link
The first
ACP >> Plugins & Products >> Add New Plugin >>
Product: vBulletin
Hook Location: global_start
Title: forum stats start
Plugin PHP Code:
// forum stats start
$numbersmembers = $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " . TABLE_PREFIX . "user");
$numbermembers = number_format($numbersmembers['users']);
$counter = $db->query_first("SELECT COUNT(postid) AS posts, COUNT(threadid) AS threads FROM " . TABLE_PREFIX . "post");
$totalposts=number_format($counter['posts']);
$countthreads = $db->query_first("SELECT COUNT(*) AS threads FROM " . TABLE_PREFIX . "thread");
$totalthreads=number_format($countthreads['threads']);
// forum stats end
https://vborg.vbsupport.ru/attachment.php?attachmentid=103928&stc=1&d=1251810442