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

Defiant

Quote from: Omar Bazavilvazo on October 17, 2006, 06:19:45 AM
Quote from: Defiant on October 17, 2006, 04:50:39 AM
Since the bot was installed on mine 1.1 RC3 installed 4th Oct the date has stayed 4th Oct but the time changes ?
that has nothing to do with the mod. the mod, in no way modifies that information

Well how do the bots keep going back in time to the 4th of October at different times ?

Example

QuoteGoogle visited last this page October 04, 2006, 03:07:35 AM

MoreBloodWine

SMF 1.1 RC3 & TP 0.9.5 - Installed on a test forum and a production forum... same mods on both instances...

Ok so I figured I'd try this mod... anyway I installed it on both my production forum and my test forum... and I have bots / spiders visit both and this is all I see... whats going on bec the test installs went successful and I can manage permissions and the settings for what it does or doesnt show butthis is all I get on he main index page wtf... keeping in mind the "guest" is a yahoo spider but I dont have a spider field with the yahoo bot in it...

Edit : Yes I AM using the default theme to test this before I edit my custom theme files...

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


G6™

#882
You need to add code in your TPortalBlocks.template.php in order to get them listed in the statsblock
find
echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
      echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
      echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];

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

And in your Tportal.english.php add this text

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


MoreBloodWine

#883
Quote from: Mrs G6 on October 22, 2006, 12:14:36 PM
You need to add code in your TPortalBlocks.template.php in order to get them listed in the statsblock
find
echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
      echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
      echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];

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


This might be due to me not sleeping in over 24 hrs but where is the file bec i cant find it lol... its not in sources or ne thin else i looked in keepin in mind yes i could have missed it which i obviously am lol

Edit : nm found it...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


MoreBloodWine

#884
I added the code and this is all I get... weird...

Edit : went back and check looks liked iforgot the english code line... ill do that then get back to u to say if it worked hehe...

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


MoreBloodWine

Worked like a charm... thx.. now I just need to figure out the who.tempate.php thing to get it to split em up in whos online... I cant use the attached file bec my whotemplate has existing mods... so i gotta "try" to do this by hand ;-/ ... got me a little lost the way its explained **sighs**

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Bigguy

Get a program called "Winmerge" It is a file comparison software. This will make it easy for you to edit.

danskmacabre

Has anyone integrated this with Bloc's Helios multi theme?
I have the mod installed, but need to alter the Helios files to get it to display on the main page.
Yeah I know I can manually change the files myself, but if anyone's already done it I'd appreciate it.

Website: cantref.org.uk chaos8.com | SmF version: 2 | Portal software: PortaMx 1.3 | Default theme: Coal Black

danskmacabre

NM, think I've sorted it now..
Website: cantref.org.uk chaos8.com | SmF version: 2 | Portal software: PortaMx 1.3 | Default theme: Coal Black

sgpphp

Ok... I got this installed :-

- SMF 1.1RC3 + TinyPortal + SMF+G2 Bridge and Aero97 themes

So, Am I right if i want to display the google/spiders on :-

1) Forum
- compare pre-modified BoardIndex.template and modified BoardIndex.template of default theme
- Add this to my Aero97 theme BoardIndex.template ?

2) Portal Stats box
- Modified the TPortalBlocks.template.php ?

Thanks for the help.

G6™


sgpphp

Ok... I have make the modification and maybe i attached the file for those interested.

Aero97 Themes
- BoardIndex.template.php ( TP 0.95 + SMF 1.1RC3 + G2 )

1. Look for

if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';


Insert this after the above :-

echo (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['user'] ;



2. Look for this

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


Insert this after the above :-

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



sab

I'm getting this reply when I try to install: SMF1.0.8 (patch to 1.0.9)

Install Actions for archive Googlebot_v2_0_2_only_smf1.1rcx.zip:
Installing this package will perform the following actions:    Type   Action   Description
1.   Execute Modification   ./index.php   Success
2.   Execute Modification   ./SSI.php   Success
3.   Execute Modification   ./Sources/BoardIndex.php   Success
4.   Execute Modification   ./Sources/ManagePermissions.php   Success
5.   Execute Modification   ./Sources/ModSettings.php   Failure
6.   Execute Modification   ./Sources/Subs.php   Success
7.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Success
8.   Execute Modification   ./Themes/default/languages/Modifications.spanish.php   Success
9.   Execute Modification   ./Themes/default/index.template.php   Success
10.   Execute Modification   ./Themes/default/BoardIndex.template.php   Success
11.   Execute Code

Any suggestions please

DemonicInfluence


qaisar

Quote from: DemonicInfluence on November 11, 2006, 08:20:43 AM
try manually modifying it

I'm also getting the same error..How do i manually modify it? and what to modify?

DemonicInfluence

by looking at the edits in the file... Then, download the file and edit according to the edits.

This should help : http://www.simplemachines.org/community/index.php?topic=34526.0

jessicac

so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?

Bigguy

If you are using any theme other than the default then you will have to do any edits to that theme for the mod to work.

Quote from: jessicac on November 15, 2006, 09:40:15 AM
so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?

axlarry

Quote from: jessicac on November 15, 2006, 09:40:15 AM
so I upgraded to RC3 with T P0.9.6. I installed the mod for this new version and I don't see any difference. I checked all the boxes in admin settings but unlike 1.0.9, it doesn't show up in who's online or anywhere that I can tell. It installed through package manager successfully. Is there something I'm missing?

I'm having the same problem. I don't use default theme. What exactly I have to do to make it useable on another theme?

jessicac

I am using the default SMF theme.

Advertisement: