News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Googlebot & Spiders

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

Previous topic - Next topic

Bigguy

You could always upgrade to. ;)

Omar Bazavilvazo

if not so much changed in the mod, it can work in 1.0.7.  I didn't even know a 1.0.7 is out. I'll update it so no changes are needed




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


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

RebelRose

I was looking at the changes that have to be made in order for this to work with my theme, and it seems the only change would be on the board.inxex.php, but when I make the changes it shows an error on my forum, guess I am not doing something right.

SMF 1.1RC2

DilberMC Theme

Anyone Have any ideas, thoughts or suggestions

mskdhero

When I go to my forums I get:
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/adulthos/public_html/forums/Sources/BoardIndex.php on line 300

Googlebot was working fine until I installed tinyportal.  I had problems with that and i fixed those, but now I have problems with gbot.  I uninstalled tinyportal and when i try uninstalling googlebot my managepermissions, subs, and ssi  get 'test failed' messages.

I'd like them both to work in harmony!   :-[  TIA


Omar Bazavilvazo

Quote from: mskdhero on July 08, 2006, 09:32:59 PM
When I go to my forums I get:
Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/adulthos/public_html/forums/Sources/BoardIndex.php on line 300

Googlebot was working fine until I installed tinyportal.  I had problems with that and i fixed those, but now I have problems with gbot.  I uninstalled tinyportal and when i try uninstalling googlebot my managepermissions, subs, and ssi  get 'test failed' messages.

I'd like them both to work in harmony!   :-[  TIA



open the installer, and in the install.xml is the function ob_googlebot_getagent().

That function must be on Subs.php, try to copy it there manually.




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


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

mskdhero

That seems to have worked!  Thank you very much!

Omar Bazavilvazo

Quote from: mskdhero on July 09, 2006, 02:11:44 PM
That seems to have worked!  Thank you very much!

np :) i'm glad it worked :p




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


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

RebelRose

I cannot find the exact code search it is saying on my boardindex.php. DilberMC theme.

How can I make this mod work this is the only code I see that applies to any of the boards in my theme:

<file name="$themedir/BoardIndex.template.php">
      <operation>
         <search position="after"><![CDATA[$context['num_guests'], ' ',]]></search>
         <add><![CDATA[(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), ]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);]]></search>
         <add><![CDATA[

   if (!empty($context['spiders']))
   {
      if ($modSettings['ob_googlebot_display_own_list'])
         echo '
            <br />
            ', $txt['ob_googlebot_spiders_last_active'], ':<br />';
      else
      {
         if (empty($context['users_online']))
            echo '
            ', $txt[140], ':<br />';
         else
            echo ', ';
      }
      
      echo implode(', ', $context['spiders']);
   }]]></add>

Can you please help

DemonicInfluence

so, just follow the instructions it says for your boardindex.template.php

RebelRose

Quote from: DemonicInfluence on July 16, 2006, 01:53:32 PM
so, just follow the instructions it says for your boardindex.template.php

Yeah, Tried that and that is why I am asking for HELP

Bigguy

Well, I think I have searched this thread enough and really didn`t find an answer anywhere. I found parts of answers if that makes sense. I`m trying to figure out how to fix this:

Quote0 1 Spider, Guests, 1 User

I know it`s supposed to be like this:

Quote1 Spider, 0 Guests, 1 User

How do I fix this.

RebelRose

#651
it is in the wrong place, you cannot go by the xml on this one for dilber theme

Hold on and I will find that code placement for you

ok here is how it should look, the first part of the code should be placed like so:

                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


place it after ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '',

Bigguy

I get a parse error from that. I have another angle I`m going to try. Thanks rebelrose

RebelRose

Quote from: Bigguy on July 17, 2006, 08:09:01 PM
I get a parse error from that. I have another angle I`m going to try. Thanks rebelrose

I probley did not explain it well, my fault I am sure, good luck, just add

'', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', ')

after this

', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '',

LHW

Due to a few other issues, I installed this, uninstalled it to fix the other problems, and then reinstalled it.  When there's a spider lurking, it'll display something like this:

1 Spider, 1 Spider, 0 Guests, 2 Member
Active members in the last 15 minutes:
LHW, Essex, Googlebot

When I go into Who's Online, it shows only 1 IP for a Guest, yet it shows "1 Spider, 1 Spider."  I'm guessing that something is duplicated somewhere, but I don't know much about PHP, or where to look.

Does anyone have any ideas?  Thanks for the help.


RebelRose

#655
what version of smf and what theme?

LHW

Sorry, my bad.  It's v1.0.7, and it's the default theme.


Bigguy

Did you have any errors at all when you installed the mod via package manager ???

LHW

None that I remember.  Nor do I get any errors in the log.


Bigguy

You might have to go through the .xml file and the files that the mod modified and see if anything was copied twice.

Advertisement: