Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Jan 2006, 22:17
kurtbarker kurtbarker is offline
 
Join Date: Nov 2005
Real name: Kurt Barker
how do I get the statistics to 'not count' members in a specific usergroup

Hey guyz...

In the statistics at the bottom of the page it has members and active members..

For specific usergroups can I exclude them from the total member count?

Thanks guyz
Reply With Quote
  #2  
Old 29 Aug 2007, 14:42
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Bump.

I'm looking for the same thing. Maybe the mod already exists but I might be using the wrong search terms.

Any suggestions?
Reply With Quote
  #3  
Old 31 Aug 2007, 06:43
glennno glennno is offline
 
Join Date: Jul 2007
I've been looking for this too, no help on vbulletin.com.

We imported a Yahoo Group and archived all the old messages, and now all the old usernames are inflating our member count on the home page. It's confusing everyone. Not everyone from that group joined the vB forum, and all the new usernames of those who did are different. We cannot change any of those usernames, for reasons specific to the forum.

This is a pain. It seems so simple, there's got to be a way.
Reply With Quote
  #4  
Old 07 Sep 2007, 14:56
rnmcd rnmcd is offline
 
Join Date: Aug 2004
<bump>
Reply With Quote
  #5  
Old 07 Sep 2007, 19:42
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
You would need to rewrite the queries in the build_user_statistics() function. There are no hooks in that function.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 07 Sep 2007, 19:50
rnmcd rnmcd is offline
 
Join Date: Aug 2004
That's not something that is in the template is it?
Reply With Quote
  #7  
Old 07 Sep 2007, 19:52
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Nope, it's php code.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #8  
Old 22 Sep 2007, 02:32
fxs158 fxs158 is offline
 
Join Date: May 2003
anyone able to help with this?
Reply With Quote
  #9  
Old 30 Dec 2007, 22:07
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Real name: Jennifer
For the home page active users, edit index.php

SEARCH FOR (around line 401):
WHERE session.lastactivity > $datecut

AFTER THAT, ADD:
AND user.usergroupid in (x,x,x)

... where x,x,x are the usergroups you want it to show.

For the Member List feature, you can create a plugin:

Hook Location: memberlist_query_userscount
PHP CODE:
$ids='x,x,x';

where x,x,x are the usergroups you want it to show.
__________________
Jennifer M. - php developer since '98
Reply With Quote
  #10  
Old 09 Feb 2010, 18:58
silurius silurius is offline
 
Join Date: Oct 2004
Bump!

For my 3.8.3 site, I edited index.php exactly as jamoss described, but it did not appear to have any effect. I cleared my browser cache, ran the "Daily Statistics Log" scheduled task, ran the "Rebuild Statistics" counter update. Anything else I'm missing? I assume vBulletin has changed enough since 2007 to indicate something new, but I have no idea where to look.

Thanks in advance!

Edit: Here is my code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by silurius; 09 Feb 2010 at 19:17.
Reply With Quote
  #11  
Old 11 Feb 2010, 22:33
silurius silurius is offline
 
Join Date: Oct 2004
Anyone?
Reply With Quote
  #12  
Old 16 Feb 2010, 16:26
silurius silurius is offline
 
Join Date: Oct 2004
Sorry for the multiple bumps. Third time's the charm?
Reply With Quote
  #13  
Old 22 Feb 2010, 18:31
edward hamilton edward hamilton is offline
 
Join Date: Mar 2007
I've also been trying to figure out how to not count New Members Waiting Email Confirmation in the Members online stats.
I'd like to not show new registrations usernames in the stats as they can be decieving and spammers usernames show up here.
__________________
Ministry of Rum forums
When I dream up a better job, I'm going to take it.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:37.

Layout Options | Width: Wide Color: