Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2018-08-23, 08:20 AM
Is there a way/option to only show approved accounts on board statistics at the bottom of who's online? The option in admin only excludes listing on memberlist. If a spammer registers, the member profile still shows on board statistics. Then when you delete the profile, and googlebot catches it, you still have to deal with the 404 error.
What goes around comes around
Posts: 2,794
Threads: 60
Joined: Mar 2016
Reputation:
229
2018-08-23, 08:34 AM
I believe yes and I think there was a plugin for this as well.
You can search here on MyBB forums, but I am sure this has been asked Ashley1.
- MyBB
Posts: 1,908
Threads: 80
Joined: Dec 2016
Reputation:
91
2018-08-23, 02:35 PM
(2018-08-23, 08:34 AM)WallBB Wrote: I believe yes and I think there was a plugin for this as well.
You can search here on MyBB forums, but I am sure this has been asked Ashley1.
I've tried doing the search function but I ended up with 207 pages worth of possible outcomes.
Can you give us a link or some idea what the name of this plugin is?
I am interested in this plugin as well.
I'm Serpius and You're Not ¯\_(ツ)_/¯
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2018-08-23, 02:38 PM
(2018-08-23, 02:35 PM)Serpius Wrote: (2018-08-23, 08:34 AM)WallBB Wrote: I believe yes and I think there was a plugin for this as well.
You can search here on MyBB forums, but I am sure this has been asked Ashley1.
I've tried doing the search function but I ended up with 207 pages worth of possible outcomes.
Can you give us a link or some idea what the name of this plugin is?
I am interested in this plugin as well.
Yeah, his post was real helpful like i didn't try searching before.
What goes around comes around
Posts: 2,794
Threads: 60
Joined: Mar 2016
Reputation:
229
2018-08-24, 07:57 AM
(This post was last modified: 2018-08-24, 07:58 AM by WallBB.)
Ah, you guys will not leave me like this
Open index.php in MyBB root and find
WHERE s.time>'$timesearch'
and Change that into
WHERE s.time>'$timesearch' AND u.usergroup != 'GROUPID'
This will remove the GROUPID based members from the who's online. You can do it for multiple groups as well and vice versa.
Hope I am a little more helpful now @Serpius
- MyBB
Posts: 4,217
Threads: 120
Joined: May 2012
Reputation:
497
2018-08-24, 09:11 AM
Whatever is the modification should cover 'portal.php' as well.
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2018-08-24, 10:03 AM
(2018-08-24, 07:57 AM)WallBB Wrote: Ah, you guys will not leave me like this
Open index.php in MyBB root and find
WHERE s.time>'$timesearch'
and Change that into
WHERE s.time>'$timesearch' AND u.usergroup != 'GROUPID'
This will remove the GROUPID based members from the who's online. You can do it for multiple groups as well and vice versa.
Hope I am a little more helpful now @Serpius
This does not work, it still orders by last member registered regardless of the group. I will figure it out later, just thought there might have been a setting/ existing plugin for it already.
What goes around comes around
Posts: 2,794
Threads: 60
Joined: Mar 2016
Reputation:
229
2018-08-24, 10:39 AM
(This post was last modified: 2018-08-24, 10:41 AM by WallBB.)
(2018-08-24, 10:03 AM)Ashley1 Wrote: (2018-08-24, 07:57 AM)WallBB Wrote: Ah, you guys will not leave me like this
Open index.php in MyBB root and find
WHERE s.time>'$timesearch'
and Change that into
WHERE s.time>'$timesearch' AND u.usergroup != 'GROUPID'
This will remove the GROUPID based members from the who's online. You can do it for multiple groups as well and vice versa.
Hope I am a little more helpful now @Serpius
This does not work, it still orders by last member registered regardless of the group. I will figure it out later, just thought there might have been a setting/ existing plugin for it already. Based on the original question, I gave an answer.
For ordering, you need to modify the code just above this line (WHERE s.time>'$timesearch'), basically SQL sorting.
I will have to search for plugin, maybe it is not there.
- MyBB
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2018-08-24, 12:50 PM
So half the problem can be solved by making patches as follows:
In index.php on line 77:
replace
WHERE s.time > '".$timesearch."'
with
WHERE s.time > '".$timesearch."' AND u.usergroup != '5'
and in portal.php on line 242
replace
WHERE s.time>'$timesearch'
with:
WHERE s.time>'$timesearch' AND u.usergroup != '5'
This will exclude the awaiting activation users from who is online, on index.php and portal.php as long as the default group id of 5 is not changed.
That leaves " Please welcome our newest member, ...."
not sure where that is built:
// Check who's the newest member.
if(!$stats['lastusername'])
{
$newestmember = $lang->nobody;;
}
else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
}
What goes around comes around
Posts: 2,794
Threads: 60
Joined: Mar 2016
Reputation:
229
2018-08-24, 04:24 PM
(2018-08-24, 12:50 PM)Ashley1 Wrote: So half the problem can be solved by making patches as follows:
In index.php on line 77:
replace
WHERE s.time > '".$timesearch."'
with
WHERE s.time > '".$timesearch."' AND u.usergroup != '5'
and in portal.php on line 242
replace
WHERE s.time>'$timesearch'
with:
WHERE s.time>'$timesearch' AND u.usergroup != '5'
This will exclude the awaiting activation users from who is online, on index.php and portal.php as long as the default group id of 5 is not changed.
That leaves "Please welcome our newest member, ...."
not sure where that is built:
// Check who's the newest member.
if(!$stats['lastusername'])
{
$newestmember = $lang->nobody;;
}
else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
}
You should find that in language file ($l['stats_newestuser'] ) i.e.
/inc/languages/english/index.lang.php
Any love for me
Cheers
- MyBB
|