News:

Wondering if this will always be free?  See why free is better.

Main Menu

Googlebot & Spiders

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

Previous topic - Next topic

DemonicInfluence

Okay! I have.. Just in Boardindex.template.php do this:

$context['num_guests'], ' ',

add before that:

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

Then find:
// 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']);


add after:

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']);
}


That should work..

Niteblade

Quote from: sbarnes on April 13, 2006, 05:44:36 PM
I think I have worked it out.

Just tried this and I cant beleive it, it actually appears to have worked.

I changed this line in my tportalblocks.template

echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];

to

echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];

and added

$txt['Spiders']= 'Spiders';

to my tportal.english

At the moment everything seems error free.

It was really annoying me as it was slowing my site down.

Thank you for all your help

I love you, man.
affiliate blog

RebelRose

Quote from: DemonicInfluence on June 12, 2006, 11:55:40 AM
Okay! I have.. Just in Boardindex.template.php do this:

That should work..

Thanks anyway, I think I will just leave this alone,  too confusing for me.

thank you

DemonicInfluence

Quote from: nite0859 on June 13, 2006, 07:53:46 PM
Quote from: sbarnes on April 13, 2006, 05:44:36 PM
I think I have worked it out.

Just tried this and I cant beleive it, it actually appears to have worked.

I changed this line in my tportalblocks.template

echo '<br />'.$bullet.Spiders.': '.$online['num_spiders'];

to

echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];

and added

$txt['Spiders']= 'Spiders';

to my tportal.english

At the moment everything seems error free.

It was really annoying me as it was slowing my site down.

Thank you for all your help

I love you, man.

No problem :)

Quote from: rebelrose on June 14, 2006, 10:49:49 AM
Quote from: DemonicInfluence on June 12, 2006, 11:55:40 AM
Okay! I have.. Just in Boardindex.template.php do this:

That should work..

Thanks anyway, I think I will just leave this alone,  too confusing for me.

thank you

jjust try?

RebelRose

It makes reference to tiny portal, I don't have that, so would that make a difference?

DemonicInfluence


RebelRose

Quote from: DemonicInfluence on June 15, 2006, 04:17:47 PM
it wouldn''t..

Where do I find the board index that I am to edit, sorry not that good with this stuff?

Bigguy

BoardIndex.template.php should be in the theme directory under the theme name you are trying to modify. If not it will be in the default theme folder.

RebelRose

Quote from: Bigguy on June 15, 2006, 06:30:40 PM
BoardIndex.template.php should be in the theme directory under the theme name you are trying to modify. If not it will be in the default theme folder.

thanks bigGuy

RebelRose

I got this error, maybe I did something wrong:

Template Parse Error!
There was a problem loading the /Themes/helios_multi11rc2/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.



Parse error: parse error, unexpected ',' in .../Themes/helios_multi11rc2/BoardIndex.template.php on line 815

815: (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),816:         echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];




Bigguy

You may have it in the wrong place. If the file is backed up play a bit.

RebelRose

Quote from: Bigguy on June 15, 2006, 06:48:45 PM
You may have it in the wrong place. If the file is backed up play a bit.


ok thanks for you help, guess I just leave this one alone.


Thank You

Bigguy

No need to leave it alone. I didn`t mean anything other than you might learn a bit about how to do edits. No insult or anything intended. If you haven`t figured it out I`ll help when I get back if you like.

RebelRose

Quote from: Bigguy on June 15, 2006, 06:55:37 PM
No need to leave it alone. I didn`t mean anything other than you might learn a bit about how to do edits. No insult or anything intended. If you haven`t figured it out I`ll help when I get back if you like.

No insult taken, it is not you, just me, been playing with this for awhile now and still cannot get it, I apprecaite all you advise.

Thanks

mark25

i have a little problem, the word "spiders" didn't shows up in user's online

1 Guests, 1 User   Users active in past 15 minutes:
mark25

Recent Membergroup Online Legend - [Administrator]

DemonicInfluence

Quote from: mark25 on June 21, 2006, 11:08:04 AM
i have a little problem, the word "spiders" didn't shows up in user's online

1 Guests, 1 User   Users active in past 15 minutes:
mark25

Recent Membergroup Online Legend - [Administrator]

If that is for a none-default theme, you gotta manually edit it!

RebelRose

Quote from: DemonicInfluence on June 22, 2006, 07:08:56 AM
Quote from: mark25 on June 21, 2006, 11:08:04 AM
i have a little problem, the word "spiders" didn't shows up in user's online

1 Guests, 1 User   Users active in past 15 minutes:
mark25

Recent Membergroup Online Legend - [Administrator]

If that is for a none-default theme, you gotta manually edit it!


ok I will try again, just where and what do you edit ??????

ketchup

Hi, so if I have SMF 1.0.7. does that mean I can't use this mod?   

Can I like switch to 1.0.6 or 1.1 RC2

Because I would really like to try this one.

RebelRose

Quote from: ketchup on June 24, 2006, 11:51:41 PM
Hi, so if I have SMF 1.0.7. does that mean I can't use this mod?   

Can I like switch to 1.0.6 or 1.1 RC2

Because I would really like to try this one.

I think you can just upgrade your forum to 1.1RC2

DemonicInfluence

No, 1.06 should work with 1.07

Advertisement: