Version: 1.00, by Kaelon
Developer Last Online: Jan 2023
Version: 2.3.x
Rating:
Released: 06-16-2003
Last Update: Never
Installs: 19
No support by the author.
TOTAL MEMBERS (REGISTRATIONS) HACK
Version 1.0 ~ 17 June 2003
This is a really elementary hack, but I was surprised that no one had publicized it for people who know little/nothing about PHP to use. (I did several extensive searches and found no mention of this. If someone else has already posted this, please just let me know and I'll defer appropriately.) This is also the first hack that I've decided to publish on vBulletin.org, even though I'm capable of a bit more complex, but probably because I was fairly certain of what I was doing here.
What does it do?
The Total Members (Registrations) Hack will display the total number of people who have ever registered an account, at one time or another, on your forums, next to your forumhome Members count.
Why is this useful?
If you run a very large forum, with tens of thousands of registrations, but you like keeping your database's users table pruned to reflect only active members (e.g., we regularly prune members who don't post every x days and have less than x number of posts), you can still display the total number of people that have ever registered, at one time or another, on your forums.
What is involved?
1 php file edit (index.php) and 1 template edit (forumhome)
Will this slow down my forumhome?
No. It adds only one calculation and adds only one variable, both of which are expunged by vBulletin after use.
Today at 04:36 AM xiphoid said this in Post #23 Kaelon, it doesn't ?
I am nearing 1000 registrations, so we will find out
Hi, Xiphoid,
Nope - you need to run it through the number_format parser in order to have it properly add commas for text display of the userid value, otherwise, it'll simply show up as a numerical string completely different from your other value strings.
On a totally different note, I just wanted to let you know that I visited your forum and it looks like vB3 handles user visits differently; I was visiting it and it said that there were 0 members and 0 guests online; I had to refresh a couple of times before the system actually picked me up. I'm guessing deferred guestvisits, a la Jujubee's system?
How would you do the total posts & total threads for the message board? If you were to update the counters would that make this not work?
Total Posts & Total Threads for the message board are already included, but admittedly, you point out a good situation - it only shows the current total posts and current total threads that still exist on the forum (active). Regrettably, you'd have to add two more queries to forumhome to get the latestthreadid and latestpostid - and that makes for a not-so-great hack.
That being said, others have done this before ("Thread Statistics Hacks on Forumhome"), but I advise against using those hacks because only Total Users has already been queried in the stock vBulletin install (when it shows you the newest member); you'd have to do two more unique queries for latest thread and latest post. Not advisable.
Glad that everyone enjoys this relatively easy/simple hack.