News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Googlebot & Spiders

Started by Omar Bazavilvazo, June 06, 2005, 06:17:35 PM

Previous topic - Next topic

Omar Bazavilvazo

Quote from: Cache-man on June 19, 2005, 11:52:15 PM
The mod seems to have installed ok, but when I go to 'edit permissions' now I get the following error message:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/cacheec/public_html/forums/Sources/ManagePermissions.php on line 984

Does anyone know how I can resolve this?
post from lines 980 to 990 of managepermissions.php ... probably you have a mod that break it.

Jako>
Which mods do you have installed?
add the next code before ?> in subs.php:


function ob_googlebot_getAgent( &$user_agent, &$user_name, &$result, $guest )
{
//Search Spiders
$spider_agents = array (
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
'spider' => true,
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',
'spider' => true,
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validator',
'spider' => true,
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
'spider' => true,
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
'spider' => true,
),
array (
'agent' => 'Mediapartners-Google',
'spidername' => 'Google AdSense spider',
'spider' => true,
),
array (
'agent' => 'Scooter',
'spidername' => 'Altavista spider',
'spider' => true,
),
array (
'agent' => 'Yahoo! Slurp',
'spidername' => 'Yahoo spider',
'spider' => true,
),
array (
'agent' => 'FAST-WebCrawler',
'spider' => true,
),
array (
'agent' => 'Wget',
'spider' => true,
),
array (
'agent' => 'Ask Jeeves',
'spider' => true,
),
array (
'agent' => 'Speedy Spider',
'spider' => true,
),
array (
'agent' => 'SurveyBot',
'spider' => true,
),
array (
'agent' => 'IBM_Planetwide',
'spider' => true,
),
array (
'agent' => 'GigaBot',
'spider' => true,
),
array (
'agent' => 'ia_archiver',
'spider' => true,
),
array (
'agent' => 'FAST-WebCrawler',
'spider' => true,
),
array (
'agent' => 'Inktomi Slurp',
'spider' => true,
),
);

foreach( $spider_agents as $poss )
if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)
{
if ( $guest && isset($poss['spider']) && $poss['spider'] )
$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']);

$result = isset($poss['name']) ? $poss['name'] : $poss['agent'];
return isset($poss['spider']) && $poss['spider'];
}

$result = $user_agent;
return false;
};





Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

Jako

I pasted that, Omar, and still the error keeps on showing up.

By the way, the MOD's that I have are;

Mod Name Version   
1. Ultimate Shoutbox 1.22   [ Uninstall ] [ List Files ] [ Delete ] 
2. Jack's Phat Calendar Pack 1.0.1  [ Apply Mod ] [ List Files ] [ Delete ] 
3. Topic Ratings 1.02  [ Apply Mod ] [ List Files ] [ Delete ] 
4. Faster Parsecode 1.07  [ List Files ] [ Delete ] 
5. Message Icon Manager (Quick Reply) 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. G&S_Sticky 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
7. Integrated Chat 2.3  [ Apply Mod ] [ List Files ] [ Delete ] 
8. The Bar Of Experience 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
9. Karma Log 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
10. Music Database 3.1  [ Apply Mod ] [ List Files ] [ Delete ] 
11. SSI NewsArchive 1.3  [ Apply Mod ] [ List Files ] [ Delete ] 
12. Filemanager 1.0 Alpha 6  [ Apply Mod ] [ List Files ] [ Delete ] 
13. Message Icon Manager 1.2  [ Apply Mod ] [ List Files ] [ Delete ] 
14. Show Multiple Badges (Aka Stars) 0.3   [ Uninstall ] [ List Files ] [ Delete ] 
15. Simple ImageShack 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
16. Search Button Tweak 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
17. Buddy List 1.21   [ Uninstall ] [ List Files ] [ Delete ] 
18. Picture forum view 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
19. Googlebot & Spiders Mod 1.0.2  [ Apply Mod ] [ List Files ] [ Delete ]
Maximus: Brothers, what we do in life... echoes in eternity.


drcypher

anything for version 1.0.5?

JRSofty

Yep It's not working with 1.0.5 unless it was previously installed in 1.0.4
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Jako

Maximus: Brothers, what we do in life... echoes in eternity.


1MileCrash

Quote from: JRSofty on June 24, 2005, 02:27:21 AM
Yep It's not working with 1.0.5 unless it was previously installed in 1.0.4

all you have to do is edit the mod and tell it to install on 1.0.5 too. I dont think much has changed from 1.0.4 - 1.0.5, just a security fix.
The only thing php can't do is tell you how much milk is left in the fridge.



Omar Bazavilvazo





Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

Omar Bazavilvazo

new version: 1.0.4, fixed:


in action=trackip;searchip=xx.xxx.xx.xxx i receive

8: Undefined index: ob_googlebot_count_most_online
File: /home/www/web4/html/forum/Sources/BoardIndex.php
Line: 391


This was because on a new installation, that settings weren't added to the DB. i now add this strings into the DB since installation with my preferred settings :)




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

Jako

That still didn't fix my problem I've been complaining about. =/
Maximus: Brothers, what we do in life... echoes in eternity.


reznorsoft

is there a reason 'spiders' aren't shown in my 'Users Online' list?
the only way for me to see them is if I click on the 'forum/action=who' URL  :(

Omar Bazavilvazo

Quote from: Jako on June 25, 2005, 02:21:57 AM
That still didn't fix my problem I've been complaining about. =/
they are log, it prevents new strings from appearing, doesn't delete the old ones.
you must manually erase them




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

ingmar

is it possible that this mod also works in the mkportal. In smf i can see all the spiders but in the stats from the mkportal they all cald quest.

Is there a way to fix this problem.

In IPB it works.

To view my forum click here

Jako

Omar, you crazy kid, you. :D

So, way back when when you told me to put that text into the subs.php, I thought you said before the <?, and really you said ?>.

Whoops. So, thanks a bunch, I think the problem is fixed.
Maximus: Brothers, what we do in life... echoes in eternity.


Omar Bazavilvazo

Quote from: ingmar on June 27, 2005, 05:03:13 AM
is it possible that this mod also works in the mkportal. In smf i can see all the spiders but in the stats from the mkportal they all cald quest.

Is there a way to fix this problem.

In IPB it works.

To view my forum click here
don't think so, i don't use mkportal :P
maybe later i'll add it :P (when i start using it)




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

ingmar

but it works in other forums like IPB

Omar Bazavilvazo

Quote from: ingmar on June 27, 2005, 03:35:26 PM
but it works in other forums like IPB
well, since i don't use mkportal, i can't help, sorry




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

SusanTN

21 Spiders, 8 Guests, 5 Users
Users active in past 30 minutes:
[users removed], Googlebot (20), Yahoo! Slurp

go Spiders!

[Unknown]

Twenty!  My word, that's a lot of spiders.

Ingmar, your question may be better asked of the MKPortal people.

-[Unknown]

ingmar

i did but they don't answer

spiders on the forum i have sometimes 150 till 300 so the online users tell me.

Itch™

Ok, I tried to install in SMF 1.1 Beta 3 Public, but here's what happened: Installations actions for "Googlebot & Spiders Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I downloaded the correct version...what happened?

Advertisement: