Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Exclude usergroup from user stats v5.6.6
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2017 - 4:06 pm

With v5.6.6 you seem to have added a function to exclude certain usergroups from the user stats, if the new checkmark (hide members from users statistics) is set to ON in the admin panel for the usergroup.

I found the code at the end of sp-api-users.php

I was under the impression, that this checkmark would change the statistics display at the bottom of the forum in "sp_foot_desktop" and "sp_foot_mobile":

"__sp('Member Stats: '), __sp('Members: %COUNT%')"

Unfortunately, I cant see an effect after setting the checkmark for certain usergroups and saving. Even after some time there is no effect, the count above is still too high and still containing the usergroups I checked for exclusion.

Question:

Did I missunderstand the purpose of this new function?

If not and the count should change, what do I miss? I checked the "Reset" functions in the admin toolbox but found nothing that fits to "reset" the usercount.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 5, 2017 - 5:02 pm

To quote from the popup help:

'You can also opt to hide any users destined for this user group from showing up in the new members and top posters statistics'

andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2017 - 5:32 pm

Sorry but that is cryptic to me. Please elaborate.

Yes, i have read this Help Popup and i have read the additional text too: "but note that if a user belongs to more than one user group and any one group allows them to be listed then they will be shown."

So my question stays: What do I miss? Why does the count not change in the statistics?

Or do you imply, that the general statistic of the number of forum members is *not* meant by the Help Text, just the "new members" and the "top posters"? Does it imply, that the count stays unaffected, just the usernames of those members dont shop up in "new" and "top posters"?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 5, 2017 - 5:42 pm

The statement does not 'imply' it. It s explicit. It makes no mention of counts because counts are not touched.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2017 - 5:52 pm

I talked about you, not about the helptext. You implied with your response. But dont lets talk semantics here.

Ok. Understood. Then the function is unfortunately not of use to me. I thought it was a reaction on some request I made more than a year ago to Mr. Papa and I was happy and thankfull. Obviously I expected too much.

My problem is, that the standard count generates "Nonsense" to me, because someone just registered to wordpress, is *not* a forum member to me.

I fully understand, that technically *all* registered are forum members in your terminology, because SP is based on WPs users database so someone registered, is a forum member technically because he is part of the memberlist.

But I direct this "registered only" Users into a usergroup with no rights at all, to keep them completely out of the forum. They cant even see the forum via S2Members and they cant access anything. Most of this "registered only" are just Spam.

Thats what I mean with "not a forum member" from (my) content viewpoint.

Ideally I would like the count to display only those, that are true member because they have access. And that was the request more than a year ago, because by exluding the "registered only" user I would generate the "correct" user count.

That just as an explanation. Obviously that is not what this function is supposed to do. I understand now. Any other way to effect the way members are counted?

Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2017 - 8:33 pm

Forgive my intrusion, but is this what you need?

Screenshot.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2017 - 2:02 am

yes... if a wp user does not belong to any sp user group, they should not be counted in the member stats if that option is checked...  on travel, so cannot test that its still working, but should be...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 6, 2017 - 3:43 am

Thanks @bsabantam and @mr-papa - I didn't even know that option was there 🙂 Well - I might have done once but I am getting old!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2017 - 4:17 am

Forgive my intrusion, but is this what you need?

Many many thanks!

*YES*, this is what I was looking for and after checking this box, the count in den statistics at the bottom is *exactly* as it should be. It works. Smile!!

I was obiously not aware of this new checkmark too and would have never expected it in "General Display Settings".

I guess you should include the reference to this checkmark in the usergroup tooltip we talked about. It is not obvious, that after checking the usergroup, something needs to be done in addition to make it work. You can only search for something, that your are aware of its existence.

Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2017 - 6:03 am

@Mr Papa or to whom it may concern

One small addition/question regarding the calculation.

I have now 3 usergroups that are still "counted" in the sense, that the checkmark for "Hide members from user statistics" is not set.

One has 460 Members

One has 5 Members (Mods)

One has 2 Members (Admins)

All three groups are exklusive, so no overlapping and no users in multiple groups.

So the correct Sum should be 467.

But what is shown in the count at the bottom ist 453.

So it looks like, as if the 7 of both other groups are "subtracted" and not "added" to the first group.

Could you please take a look at the calculation method, maybe something is wrong?

This has low priority, whenever you find time for a check, no hurry.

Thanks!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626