![]() |
Is there a simple non-vb stats hack?
I don't want to put tons of info of my board onto a non-vb page. I just want to have #members, # threads, and #posts.
I have searched for this, and have only came across hacks that show every single stat of your board on a non-vb page. Any help is appreciated. Thanks a lot. :) |
Most of the hacks you can edit so that they display the information you want. Simply remove the additional information that you don't want to show.
Craig |
If you look closely at the code in index.php there are these lines:
PHP Code:
[php] <?php error_reporting(7); require('./global.php'); $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=number_format($numbersmembers['users']); // get total posts $countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post'); $totalposts=number_format($countposts['posts']); $countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread'); $totalthreads=number_format($countthreads['threads']); eval("dooutput(\"".gettemplate('yourtemplatename') ."\");"); |
If you look closely at the code in index.php there are these lines:
PHP Code:
PHP Code:
Regards - miSt |
<Mr. Burns' impression>Eeeeeeexcellent.</Mr. Burns' impression>
Thanks a lot, it works great! :) |
I'm glad i could help you out :)
- miSt |
Hrm, this wont work for me :(
|
All times are GMT. The time now is 07:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|