The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
For vBulletin version: 2.3.x
Files added: vbs_counter.php, vbstats.php, vbstats_admin.php, vbstats_set.php Files to edit: None! (all hacking is optional) Current Version: 230.b (02.14.03 - 3am CST) What does it do?
Check the samples: Stats http://www.talkloud.net/forums/vbstats.php Incoming Referrals http://www.talkloud.net/forums/vbsta...ction=incoming Member Referrals http://www.talkloud.net/forums/vbsta...on=memberrefer Top Posters http://www.talkloud.net/forums/vbsta...ion=topposters Top Threads/Forums http://www.talkloud.net/forums/vbsta...ion=topthreads Top Visitors Countries http://www.talkloud.net/forums/vbsta...action=country Here's the newest version, it's only been a year and a half since the last update! Translations have been removed as it just made it easy for people to get the hack even without a license. I am hoping people who make translations will be kind enough to post here. Special Note: I am about as far as it gets from a PHP guru. This is my first hack or addon or whatchamacallit. If this somehow nukes your system Im quite apologetic, but I know you will all be smart enough to BACK UP YOUR DATABASE BEFORE INSTALLING THIS.. I have faith Brad and Chen have both checked this out and given their stamps on it but that doesnt mean it will all Gel for you. Be smart, back it up. Install: There is a self install file that takes care of the templates and tables, simply unzip the package and upload it (with paths) to your vbulletin directory. Then run the install. Please be sure you add your site (yoursite.com) to the excluded urls in the CP. If you dont your site will get counted as a referrer and that can get messy. Demo: You can of course see the demo at http://www.talkloud.net/ however if you'd like to see it in use on some other boards check out vbstats page where I will try to keep a list of installs for you to check out. If you do install it please let me know so I can put your site up! I tested this on my test forum, and on one public forum, and all went well, if there are any problems you notice please report them here as soon as possible. ------- CHANGELOG [230.b] Changed Active Users to fix a small bug. [230.b] Like, tested it and stuff.. [230.a] The MySQL Row=O error is now customized to say add to the template!!!! hopefully no more "where did I go wrong?" posts! Muahahaha! [230.a] Fixed Upgrade Counter (?action=upgrade) [230.a] Set Excluded URL.. Now lists URLS [230.a] Updated Istall to be compatible with vB 2.3.0 [230.a] Changed Most Number Results to Have a , format (ie 1,000 instead of 1000) [230.a] I decided Frosted Flakes really are pretty tasty. [230.a] Implemented Kurafires Member Referrer Changes, thanks Kura [230.a] Implemented Kurafires Top Posters rewrite. DEAR GOD CHECK THE SECOND POST OF THIS THREAD BEFORE YOU ASK A QUESTION!!!! Show Your Support
|
Comments |
#1072
|
||||
|
||||
Almax - I will add a switch for this in the next version.
Kamui - This will also come in the next version, though the code should be functional now. Hellburn - this Im not sure why its happening for you. Since that code shouldnt have been changed at all. paratek - Yes I do dave, if you go to http://www.talkloud.net/ you will notice there is a link from the left menu to the stats. This could however go in wherever you want it to be. Maybe in the next versions documentation I will add this in. |
#1073
|
||||
|
||||
when will the next version be getting released
|
#1074
|
|||
|
|||
@Bane When i change this:
Quote:
Quote:
|
#1075
|
||||
|
||||
Bane, I did a clean install on 2.2.9 and active is not working for me either. I'll poke around with it a bit and see what I can find.
|
#1076
|
||||
|
||||
Fixed.
in vbstats.php find: Code:
// ########## Member Stats // How Many? $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=number_format($numbersmembers['users']); // Active/Non? $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0'); $nonposters=number_format($snonposters['users']); $activemembers=number_format($numbermembers-$nonposters); $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers)); Code:
// How Many? $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=$numbersmembers['users']; // Active/Non? $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0'); $nonposters=$snonposters['users']; $activemembers=$numbermembers-$nonposters; $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers)); |
#1077
|
||||
|
||||
Fixed in the zip in the first post, thanks amy & hellburn.
The change made was. Find: Code:
// ########## Member Stats // How Many? $numbersmembers=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user'); $numbermembers=number_format($numbersmembers['users']); // Active/Non? $snonposters=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user WHERE posts=0'); $nonposters=number_format($snonposters['users']); $activemembers=number_format($numbermembers-$nonposters); $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers)); Replace with: Code:
// ########## Member Stats // How Many? $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=$numbersmembers['users']; // Active/Non? $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0'); $nonposters=$snonposters['users']; $activemembers=$numbermembers-$nonposters; $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers)); // Equate [Added Post 230.b to resolve Active Users issues] $activemembers=number_format($activemembers); $nonposters=number_format($nonposters); $numbermembers=number_format($numbermembers); |
#1078
|
|||
|
|||
Working fine.
|
#1079
|
||||
|
||||
|
#1080
|
||||
|
||||
Works Perefectly Fine on vB2.3.0!! Great Work Bane
|
#1081
|
||||
|
||||
Has anyone had any troubles getting this to work with vbHome?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|