View Full Version : Site Statistics Changes
Joe Cool
04-25-2010, 10:57 PM
Anyone modify the VB4 statistics so that the members count only includes registered users (not Banned or users awaiting confirmation email) and that the newest member is the latest user that is not banned or has not responded to the confirmation email.
I would like to ban SPAM users rather than delete them but do not want them to be part of the members count or appear as a new user.
Is there an easy way to accomplish this? (I did a search and could not find anything on this topic).
Joe :cool:
Joe Cool
05-11-2010, 06:47 PM
I guessing this can't be done?!
Lynne
05-11-2010, 06:59 PM
Look in /includes/functions_databuild.php at the function build_user_statistics. You'll have to modify that.
Joe Cool
05-13-2010, 12:34 PM
Look in /includes/functions_databuild.php at the function build_user_statistics. You'll have to modify that.
Thanks.
Are these stats saved or cached somewhere? I made a change to the function and it took a while before it appeared on the forum page. Then I restored the function back and it is still showing the modified status information (and I can't get the original stats back). :eek:
Lynne
05-13-2010, 02:18 PM
It's the databuild function.... they are cached. But, that function only gets called when necessary. Read it. See what it does. There is no need to call the function unless there is a something that happened that requires it to be called.
Joe Cool
05-13-2010, 02:25 PM
I just noticed that it pull the information from the datastore table and that table only gets updates after certain events... like a new user registration.
So I guess my new question is if there is a way to update the stored stats in the datastore table so that I can see the results of the changes to the Build_user_statistics functions immediately?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.