Page 1 of 3

Hide Bots & Spiders

Posted: Mon Jun 08, 2009 4:19 am
by Extensions Robot
Modification name: Hide Bots & Spiders
Author: MartectX
Modification description: Hides robots and spiders from the "Who is online?" list. They are also counted as such.

Administrators and moderators with permission to view hidden members may still see them.
Modification version: 1.0.1
Tested on phpBB version: 3.0.5

Download file: hide_bots_and_spiders_1.0.1.zip
File size: 57.33 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Hide Bots & Spiders

Posted: Mon Jun 08, 2009 4:19 am
by DavidIQ
Modification validated/released

Notes:

Hide Bots & Spiders

Posted: Mon Jun 08, 2009 4:19 am
by MartectX
Image

Image

Re: Hide Bots & Spiders

Posted: Tue Jun 09, 2009 2:33 pm
by PinoyEngineâ„¢
Will this select only bots allowed to be seen in Whois Online?

Thanks in advance and more power.

Re: Hide Bots & Spiders

Posted: Tue Jun 09, 2009 3:35 pm
by MartectX
PinoyEngineâ„¢ wrote:Will this select only bots allowed to be seen in Whois Online?
The modification will hide all bots from users with no privileges to see hidden members.

Re: Hide Bots & Spiders

Posted: Wed Jul 01, 2009 12:40 pm
by NicksNet
hello,

nice mod, works perfectly ;)

but... how can i hide the bots in the view of last 24 hours?

Screenshot_209.jpg
Screenshot_209.jpg (53.06 KiB) Viewed 8630 times
thanks

Re: Hide Bots & Spiders

Posted: Wed Jul 01, 2009 2:34 pm
by MartectX
NicksNet wrote:how can i hide the bots in the view of last 24 hours?
Hmmm... you'll have to ask the author of that MOD. :?

Re: Hide Bots & Spiders

Posted: Wed Jul 01, 2009 2:58 pm
by NicksNet
i think this is the topic fo this mod?! so i hope he have a look - or should i send a privat message to him?

EDIT:
Author: MartectX

EDIT2:

I`m SO sorry!!! you speak about "activity_stats_mod" - i forgot that this is a mod and not standard in phpbb3 :oops:

Re: Hide Bots & Spiders

Posted: Fri Jul 10, 2009 3:44 pm
by GemBoard
Can this be turned on and off in the ACP, I cant seem to find it anywhere in the ACP after installing it. I am using 3.0.5 and I did clear the cache and still dont see it. Thanks.

Re: Hide Bots & Spiders

Posted: Sat Jul 11, 2009 10:34 am
by MartectX
GemBoard wrote:Can this be turned on and off in the ACP
No, it cannot.

Re: Hide Bots & Spiders

Posted: Mon Aug 03, 2009 7:22 am
by Snorlaxative
How can I hide them from the users with permission to see them as well.. I just don't like seeing bots at all :cry:

Re: Hide Bots & Spiders

Posted: Mon Aug 03, 2009 8:06 am
by MartectX
Snorlaxative wrote:How can I hide them from the users with permission to see them as well.. I just don't like seeing bots at all :cry:
OPEN viewonline.php

FIND

Code: Select all

	if ($row['user_id'] != ANONYMOUS && !isset($prev_id[$row['user_id']]))
ADD BEFORE

Code: Select all

if ($row['user_type'] == USER_NORMAL || $row['user_type'] == USER_FOUNDER || $row['user_id'] == ANONYMOUS)
{
FIND

Code: Select all

$db->sql_freeresult($result);
unset($prev_id, $prev_ip);
ADD BEFORE

Code: Select all

}
OPEN includes/functions.php

FIND

Code: Select all

			$online_users['online_users'][$row['session_user_id']] = (int) $row['session_user_id'];
			if ($row['session_viewonline'])
			{
				$online_users['visible_online']++;
			}
			else
			{
				$online_users['hidden_users'][$row['session_user_id']] = (int) $row['session_user_id'];
				$online_users['hidden_online']++;
			}
REPLACE WITH

Code: Select all

			if ($row['user_type'] == USER_NORMAL || $row['user_type'] == USER_FOUNDER || $row['user_id'] == ANONYMOUS)
			{
				$online_users['online_users'][$row['session_user_id']] = (int) $row['session_user_id'];

				if ($row['session_viewonline'])
				{
					$online_users['visible_online']++;
				}
				else
				{
					$online_users['hidden_users'][$row['session_user_id']] = (int) $row['session_user_id'];
					$online_users['hidden_online']++;
				}
			}

Re: Hide Bots & Spiders

Posted: Mon Aug 03, 2009 9:07 am
by Snorlaxative
THANKS! :D

Re: Hide Bots & Spiders

Posted: Fri Sep 04, 2009 4:14 pm
by themba
The Mods works on viewonline.php page, but I also want to hide them on the board index page, how can I do that? Thank you.

Re: Hide Bots & Spiders

Posted: Fri Sep 04, 2009 8:34 pm
by MartectX
themba wrote:The Mods works on viewonline.php page, but I also want to hide them on the board index page, how can I do that? Thank you.
This modification does both.