TinyPortal

Development => Support => Topic started by: superQ on April 25, 2007, 06:50:20 AM

Title: major error prob..googlebot and spiders mod
Post by: superQ on April 25, 2007, 06:50:20 AM
hello to all.

I am getting this error

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home2/rockstar/public_html/Sources/Subs.php on line 3766

after installing this mod.

http://custom.simplemachines.org/mods/index.php?mod=143

The area of code looks like this

function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)
{
$known_spiders = array (
//Search Spiders
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validator',
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
),
array (


the affected line 3766 is

'spidername' => 'MSN spider',function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)

Is  the correct move to just delete

function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)


so that it looks like this

'spidername' => 'MSN spider',
),


Title: Re: major error prob..googlebot and spiders mod
Post by: G6Cad on April 25, 2007, 07:21:13 AM
Google bot and Spider mod = No TP support.
You have to get your answers on SMF and from the modauthor there Q

Also make sure you post the questions you have for TP in the proper boards, i have been moving a lot of posts this week, and a lot of them have been yours  :2funny: