MyBB Community Forums

Full Version: Removing banned members from Who's online[Winthout Plugin]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way from which we can remove banned members from not being shown from who's online list ?
Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.
(2012-05-08, 10:24 AM)Yaldaram Wrote: [ -> ]Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.
Does it also removes the bot like google ?
No, just banned usergroups.
(2012-05-08, 05:22 PM)Yaldaram Wrote: [ -> ]No, just banned usergroups.

Thanks bro thread can be closed now.
peace
thank you...repped.
(2012-05-08, 10:24 AM)Yaldaram Wrote: [ -> ]Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.

thanks works great

(2013-07-05, 11:38 AM)MonsterMMORPG Wrote: [ -> ]
(2012-05-08, 10:24 AM)Yaldaram Wrote: [ -> ]Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.

thanks works great


now it doesnt show guest count how to fix ?
(2012-05-08, 10:24 AM)Yaldaram Wrote: [ -> ]Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.

this sadly also removes the guests. I tried it for who is online and who was online today, and both lists showed 0 guests then.

s.nopermission=0

could help, instead of usergroup!='7'
(2014-07-11, 04:08 PM)Gobee129 Wrote: [ -> ]
(2012-05-08, 10:24 AM)Yaldaram Wrote: [ -> ]Open ./index.php and find;
WHERE s.time>'$timesearch'
and Change it into;
WHERE s.time>'$timesearch' AND u.usergroup != '7'
It will remove the banned usergroups to show on online list on index.

this sadly also removes the guests. I tried it for who is online and who was online today, and both lists showed 0 guests then.

s.nopermission=0

could help, instead of usergroup!='7'

This is nearly a 3 year old thread, so you can expect MyBB has changed.
Open /index.php and search:
		// Create a key to test if this user is a search bot.
		$botkey = my_strtolower(str_replace("bot=", '', $user['sid']));
And add above this code:
		// Baneados no aparecen en los online.
		if (in_array($user['usergroup'],array(7))) continue;

Regards.