MyBB Community Forums

Full Version: How do I exclude Banned Members and Aspirants from the Forum Stats?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys. I have a Forum for a subculture here in Germany with about 50 Members.
In the Forum Stats section on the Index Page, right below "Who is Online" there is "Registrierte Mitglieder", I think it translates to "Registered Users".
The Count shows 75 Members which is really annoying because it Includes Banned Accounts and Aspirants (So People who are registered but weren't yet voted to be a Member by the community).

I was able to exclude them from the Memberlist.php with a simple menu setting.
But I couldn't finde any settings to exclude them from the stats. (Also I want to keep the thing that Aspirants appear at the "Newest Member" Entry right under the Member Count).
Is there any such setting or easy way to do that?

I am a bit experienced in PHP Development and already modified my MyBB Copy extremely, so it wouldn't be too much of a problem if I had to change it myself. But I thought I rather ask before I modify yet another file of mybb.

(Also my Version is 1.8.15, I know I need to Upgrade, I will at December 20th. But if there is any option in the new version for that, just let me know and I will wait till I install it.)

P.S. Sorry that I post no URL to my Problem, but you need to Register for my Website to even be able to acces the /forum/ Directory, so thats not really possible. Also I can't give a test account to my forum due to the sensitive data published there like Members Names, Adresses and some Admins Banking Details etc.
There's no such setting. You will have to make a core code edit.
(2019-11-28, 05:47 PM)Ashley1 Wrote: [ -> ]There's no such setting. You will have to make a core code edit.
Ah damn, okay.
Thats annoying because on updating to a new mybb version I have to apply the update manually via copy+paste to the core edited files.
If there only was an easier solution.

But thanks for the help
For reference:
Who's online on the index page, see https://github.com/mybb/mybb/blob/mybb_1...ex.php#L60
Who's online page, see https://github.com/mybb/mybb/blob/mybb_1...e.php#L206
(2019-11-28, 05:54 PM)noyle Wrote: [ -> ]For reference:
Who's online on the index page, see https://github.com/mybb/mybb/blob/mybb_1...ex.php#L60
Who's online page, see https://github.com/mybb/mybb/blob/mybb_1...e.php#L206
Yepp I am just gonna change the SQL Query in the index page.
They can still show up in the online.php, no problem with that.