vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Site Statistics Changes (https://vborg.vbsupport.ru/showthread.php?t=241269)

Joe Cool 04-25-2010 10:57 PM

Site Statistics Changes
 
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

Quote:

Originally Posted by Lynne (Post 2035324)
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?


All times are GMT. The time now is 03:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete