 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/28/2007 4:24 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
|

|
|
|
|
 |
I don't know anything about this MOD, so it's worth trying. The MOD script had some obvious problems though, which I have fixed. You should now be able to install this with EM. Since I didn't bother trying to simplify the FIND statements, those may still need some adjustments if they conflict with your phpBB code...
Try this version of the MOD script and see what happens...
| Code:
|
##############################################################
## MOD Title: Show Search Bot
## MOD Author: yakusha < yakushaBB@yah oo.com > (phpBB Turkiye) http://www.canver.net
## MOD Description: This mod show search bots on whois online bar, whois online page
## and ACP index page..
##
## MOD Version: 2.0.0
##
## Installation Level: EASY
## Installation Time: 3 minutes
## Files To Edit: 3
## - page_header.php
## - viewonline.php
## - admin/index.php
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##
############################################################
## Author Notes:
## Designed from Show Search Bot 1.0.0
## MOD Author: WILLEM Aurelien < > http://www.team-azerty.com/
## Ip adresses updated and new adresses added
## VoilĂ , Omni-Explorer, Pompos is deleted
##
############################################################
## MOD History:
## 2.0.0 / 06.01.2007
## Second Release
##
############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
if ( $row['session_ip'] != $prev_ip )
{
$username = $lang['Guest'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$tmp_list = explode(".", decode_ip($row['session_ip']));
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$username = 'Google';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$username = 'MSN';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$username = 'Yahoo';
}
//End Show Search Bot
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
// Skip multiple sessions for one user
if ( $row['session_ip'] != $prev_session_ip )
{
$guests_online++;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$tmp_list = explode(".", decode_ip($row['session_ip']));
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">Google</span>' : '<span style="color:#' . $theme['body_link'] . '">Google</span>';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">MSN</span>' : '<span style="color:#' . $theme['body_link'] . '">MSN</span>';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">Yahoo</span>' : '<span style="color:#' . $theme['body_link'] . '">Yahoo</span>';
}
//End Show Search Bot
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
$guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$name_guest = $lang['Guest'];
$tmp_list = explode(".", $guest_ip);
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$name_guest = 'Google';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$name_guest = 'MSN';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$name_guest = 'Yahoo';
}
//End Show Search Bot
#
#-----[ FIND ]------------------------------------------
#
"USERNAME" => $lang['Guest'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"USERNAME" => $name_guest,
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/28/2007 4:29 AM |
|
|
|
|
|
| Hawk |
| Posts |
193 |
| Word Cnt. |
9,285 |
| BDay |
Jun 8 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 25, 2007
Local time: 11:35 PM
Location: Esperance, Australia
|

|
|
|
|
 |
| Oh sorry i forgot to ask, is it possible to make it say "Google [Bot]" instead of "Google" in the page_footer.php? like the username? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/28/2007 5:11 AM |
|
|
|
|
|
| Hawk |
| Posts |
193 |
| Word Cnt. |
9,285 |
| BDay |
Jun 8 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 25, 2007
Local time: 11:35 PM
Location: Esperance, Australia
|

|
|
|
|
 |
Don't worry I figured it out myself All i did was add "[Bot]" next to the bot name (ie google).
| Code:
|
##############################################################
## MOD Title: Show Search Bot
## MOD Author: yakusha < > (phpBB Turkiye) http://www.canver.net
## MOD Description: This mod show search bots on whois online bar, whois online page
## and ACP index page..
##
## MOD Version: 2.0.0
##
## Installation Level: EASY
## Installation Time: 3 minutes
## Files To Edit: 3
## - page_header.php
## - viewonline.php
## - admin/index.php
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##
############################################################
## Author Notes:
## Designed from Show Search Bot 1.0.0
## MOD Author: WILLEM Aurelien < > http://www.team-azerty.com/
## Ip adresses updated and new adresses added
## VoilĂ , Omni-Explorer, Pompos is deleted
##
############################################################
## MOD History:
## 2.0.0 / 06.01.2007
## Second Release
##
############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
if ( $row['session_ip'] != $prev_ip )
{
$username = $lang['Guest'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$tmp_list = explode(".", decode_ip($row['session_ip']));
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$username = 'Google [Bot]';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$username = 'MSN [Bot]';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$username = 'Yahoo [Bot]';
}
//End Show Search Bot
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
// Skip multiple sessions for one user
if ( $row['session_ip'] != $prev_session_ip )
{
$guests_online++;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$tmp_list = explode(".", decode_ip($row['session_ip']));
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">Google [Bot]</span>' : '<span style="color:#' . $theme['body_link'] . '">Google [Bot]</span>';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">MSN [Bot]</span>' : '<span style="color:#' . $theme['body_link'] . '">MSN [Bot]</span>';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$online_userlist .= ( $online_userlist != '' ) ? ', ' . '<span style="color:#' . $theme['body_link'] . '">Yahoo [Bot]</span>' : '<span style="color:#' . $theme['body_link'] . '">Yahoo [Bot]</span>';
}
//End Show Search Bot
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
$guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD Show Search Bot
$name_guest = $lang['Guest'];
$tmp_list = explode(".", $guest_ip);
if
(
($tmp_list[0] == "64" && $tmp_list[1] == "68") ||
($tmp_list[0] == "64" && $tmp_list[1] == "233" && $tmp_list[2] == "173") ||
($tmp_list[0] == "66" && $tmp_list[1] == "249") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239")
)
{ //Google
$name_guest = 'Google [Bot]';
}
if
(
($tmp_list[0] == "63" && $tmp_list[1] == "194" && $tmp_list[1] == "155") ||
($tmp_list[0] == "65" && $tmp_list[1] == "54" && $tmp_list[2] == "164") ||
($tmp_list[0] == "65" && $tmp_list[1] == "55") ||
($tmp_list[0] == "131" && $tmp_list[1] == "107") ||
($tmp_list[0] == "207" && $tmp_list[1] == "46") ||
($tmp_list[0] == "207" && $tmp_list[1] == "66" && $tmp_list[2] == "146")
)
{ //MSN
$name_guest = 'MSN [Bot]';
}
if
(
($tmp_list[0] == "66" && $tmp_list[1] == "94" && $tmp_list[2] == "230") ||
($tmp_list[0] == "66" && $tmp_list[1] == "163" && $tmp_list[1] == "170") ||
($tmp_list[0] == "66" && $tmp_list[1] == "196") ||
($tmp_list[0] == "68" && $tmp_list[1] == "142") ||
($tmp_list[0] == "72" && $tmp_list[1] == "30") ||
($tmp_list[0] == "74" && $tmp_list[1] == "6") ||
($tmp_list[0] == "202" && $tmp_list[1] == "160") ||
($tmp_list[0] == "202" && $tmp_list[1] == "212" && $tmp_list[2] == "5") ||
($tmp_list[0] == "209" && $tmp_list[1] == "131") ||
($tmp_list[0] == "209" && $tmp_list[1] == "191") ||
($tmp_list[0] == "216" && $tmp_list[1] == "32" && $tmp_list[2] == "237") ||
($tmp_list[0] == "216" && $tmp_list[1] == "109" && $tmp_list[1] == "126") ||
($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[1] == "193")
)
{ //Yahoo
$name_guest = 'Yahoo [Bot]';
}
//End Show Search Bot
#
#-----[ FIND ]------------------------------------------
#
"USERNAME" => $lang['Guest'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"USERNAME" => $name_guest,
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/28/2007 9:35 AM |
|
|
|
|
|
| Citation |
| Posts |
940 |
| Word Cnt. |
48,215 |
| BDay |
Mar 4 |
| Sign |
Pisces |
| Sex |
 |
|
|
|
Joined: Mar 20, 2006
Local time: 10:35 AM
|

|
|
|
|
 |
| I have often wondered if there was a way to see if a bot is on a board. But does this only show google and yahoo bots or would you see any bot? and if they are named guest then how would you know what bot it is? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/28/2007 5:10 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
|

|
|
|
|
 |
It looks like this MOD is only identifying Google, MSN, and Yahoo bots. I bet it could be expanded to handle many of the other bots though...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/29/2007 2:58 AM |
|
|
|
|
|
| Hawk |
| Posts |
193 |
| Word Cnt. |
9,285 |
| BDay |
Jun 8 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 25, 2007
Local time: 11:35 PM
Location: Esperance, Australia
|

|
|
|
|
 |
Indeed thats what I heard from the author  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Looking for yet Another MOD |  |
Posted: 05/29/2007 3:03 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
|

|
|
|
|
 |
I don't know what those temp_list values represent, but if you knew the temp_list settings for the other bots, they could be included too. I bet the MOD author would have an idea of what the additions would look like or it may already be posted in the MOD topic somewhere...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|