TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 182
  • Total: 182

major error prob..googlebot and spiders mod

Started by superQ, April 25, 2007, 06:50:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

superQ

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',
),



G6Cad

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:

This website is proudly hosted on Crocweb Cloud Website Hosting.