Googlebot & Spiders

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

Previous topic - Next topic

heckuvanoob

Ok, I have had my board up and running for about 2 months with no problems, now all of a sudden I am getting the following error:

Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php:3646) in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php on line 3873

MacDo

Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!

goitalone

Quote from: heckuvanoob on February 16, 2007, 08:28:38 AM
Ok, I have had my board up and running for about 2 months with no problems, now all of a sudden I am getting the following error:

Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php:3646) in C:\Program Files\Apache Group\Apache2\htdocs\tba\smf\Sources\Subs.php on line 3873


This means somehow there is a duplicate line of code and it cannot redeclare one of them...get a good text editor like EditPad Pro or something similar and go in manually and delete one of these duplicate lines of code.

I had this same problem as well, so just go delete one of these lines of, code...there are probably other files this mod changes that also have duplicate lines of code but start by deleting one of these lines first..either on (or near) line 3646 or line 3873

goitalone

Quote from: MacDo on February 21, 2007, 10:29:05 AM
Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!

No, it hadn't been updated yet as far as I know.

ziycon

Does it work ok with smf 1.1.1??

goitalone

#1145
Quote from: ziycon on February 21, 2007, 01:07:47 PM
Does it work ok with smf 1.1.1??

People say it has on the default theme with no mods installed etc. but had a few minor probs.

Didn't work for me though...crashed my forum and I had to go in manually and fix it.

I use Moonraker theme mostly though and didn't even look to see how it installed on default theme.

I tried evreything though and it didn't work right, so I am done with it until the update which was promised by the author a week er so ago.

MoreBloodWine

Quote from: ziycon on February 21, 2007, 01:07:47 PM
Does it work ok with smf 1.1.1??
It works fine on 1.1.1 / 1.1.2 on my forum that has many other mods installed and uses a custom theme... I have two production sites and a test forum all running the same thing for the most part and I havent had any issues with this mod...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Dark Omega

#1147
Quote from: MacDo on February 21, 2007, 10:29:05 AM
Hello,
Is this mod working properly with SMF 1.1.2 (french & utf8) ?
Thank you very much !!

This Mod does work If you already have it installed before you upgrade your forum. The install itself however fails to add the required code to the ModSettings.php file in SMF 1.1.2. The code can be added in with some minor difficulty but googlebot does not appear to work with french-utf8 anyway. When I converted my test forum to french-utf8 none of the text appeared but this too can be fixed by adding some minor translation to the Modifications.french-utf8.php file.

Hope that helped  ;D

MacDo

Quote from: DarkOmega on February 21, 2007, 02:09:46 PM
Hope that helped  ;D
Well, actually, yes, it helped :-) It totally discourages me from installing it on my forum... soooo sad...
I hope that I'm not the only guy who wants it... If someone finds a solution one day, please tell me :-) Many thanks in advance ! :-)


goitalone

Just because it worked for them doesnt mean yer going to be happy with your own personal end result. Trust me on this one.

MacDo

No, of course, but If someone (who knows SMF more than I do - and that's quite easy) tells me that the mod does not work properly with SMF 1.1.2 and, even if it would, it would be unusable with french pack and utf8, I prefer not installing it... :-) That's not the problem that a mod is working on other SMF forums : it appears not to be working on 1.1.2, according to DarkOmega :-)

DarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...

Thanks for your help ! once more... :-)

MoreBloodWine

I will confirm with 100% that it does infact work on a 1.1.2 forum using a custom theme and TP 0.9.7... as for the french UTF-8 thing I couldnt answer that...

Quote from: MacDo on February 22, 2007, 05:11:45 AM
No, of course, but If someone (who knows SMF more than I do - and that's quite easy) tells me that the mod does not work properly with SMF 1.1.2 and, even if it would, it would be unusable with french pack and utf8, I prefer not installing it... :-) That's not the problem that a mod is working on other SMF forums : it appears not to be working on 1.1.2, according to DarkOmega :-)

DarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...

Thanks for your help ! once more... :-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Dark Omega

#1153
Quote from: MoreBloodWineI will confirm with 100% that it does infact work on a 1.1.2 forum using a custom theme and TP 0.9.7... as for the french UTF-8 thing I couldnt answer that...

The mod works for me too only because it was an existing install and I updated the forum around it.  :D, A fresh install however does not work on a 1.1.2 forum. The install.xml file does not have the required information to adjust the ModSettings.php file correctly so you would have to adjust it yourself.

Quote from: MacDoDarkOmega : is this "only" an encoding problem of the messages displayed by this mod ? If so, would it be sufficient to translate those messages in french, using the utf8 encoding ?? Well, of course, if this mod does not work in english with utf8, I'll not try to translate it...

Yes the only problem as far as the translation is concerned is the display messages. To fix this problem all you need to do is highlight and copy the code below to wordpad or whatever. You would then translate everything I marked in red, then copy and paste it all anywhere in the Modifications.french-utf8.php file. The file itself does not toss around errors if the display text is not translated correctly or anything like that. It will work with whatever you translate it to just as long as the code remains untouched and is present in the file. Omar is also working to update the package so the mod installs correctly, it shouldn't be too much longer. I doubt he will add French translation but at least you will have a clean install to work with. ;)

// OB - Googlebot - Begin

// Boardindex Strings
$txt['ob_googlebot_modname'] = 'Googlebot & Spiders';
$txt['ob_googlebot_spider'] = 'Spider';
$txt['ob_googlebot_spiders'] = 'Spiders';
$txt['ob_googlebot_spiders_last_active'] = 'Spiders active in past ' . $modSettings['lastActive'] . ' minutes';

// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Count all instances of same spider';
$txt['ob_googlebot_display_all_instances'] = 'Display all instances of same spider <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$txt['ob_googlebot_display_agent'] = 'Display agent instead of name';
$txt['ob_googlebot_display_own_list'] = 'Display spiders in its own list';
$txt['ob_googlebot_count_most_online'] = 'Count in "Most Online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'Redirect PHPSESSID URLs';

// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page ';

// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';

// OB - Googlebot - End

MacDo

ok :-) thank you very very much for your help ! Since my forum is already running 1.1.2, I'll maybe try to add this mod manually. But If one day I have to remove them, I'll not be happy as I could be if it would have been a mod... This is quite strange that the SMF versions increases, but not the versions of the mod's... Sooo sad... :-s  

Inflame

Mate could you please up-date this mod?

It's download but you didn't update it to 1.1.2 or even 1.1.1.

I would serious love to see a new version of this mod, it's very handy, but not working at all.

So please up-date this mod, and let me know about it.


1.1.1 is already up for nearly 3 months, should be long enough to update :)

Bast

I tried to install this mod and I'm using SMF 1.1.1 and the latest version of TinyPortal, I got this message:

Fatal error: Cannot redeclare ob_googlebot_getagent() (previously declared in /home/thedeadd/public_html/smf/Sources/Subs.php:3677) in /home/thedeadd/public_html/smf/Sources/Subs.php on line 3792


any ideas?  

Bast

Hokay. I attatched my sub.php file .. I would be really grateful if someone could take a peek and help me figure out how to fix my forums without me having to reinstall etc.  :-[

Bigguy

I don't have time really to look right now as I have to run out for a minute but it seems the code for googlebot might be in there twice.

goitalone

Go in maunally to the lines it describes and delete one of the duplicates.

Advertisement: