News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Googlebot & Spiders

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

Previous topic - Next topic

Skipdawg

KEWL that did the trick for me. All is working good now. Thanks a bunch!  ;D ;) :)
Skipdawg's Community

Powered by SMF 1.1.3

nokonium

Quote from: borgBOB on January 01, 2006, 01:15:36 PM
This did not modify BoardIndex.php  the search strings don't match the contents on the Version: 1.1 RC2; BoardIndex

And still doesn't



Posie

Quote from: Zorac on January 01, 2006, 11:59:48 PM
i dunno, ive tried everything, but it always works for me...

anyone wanna send me their BoardIndex.php that is having problems and ill see if i can find the problem?

anyone have it work?

are we talking BoardIndex.php or BoardIndex.template.php?  there will be issues with BoardIndex.template.php depending on which theme your using, it wont work with the default theme, but if you are running a different BoardIndex.template.php in the default dir (ie the one from the classic theme, or one from an older RC1 theme) it will work. 

if there is a desire to have it integrate into the default theme, let me know and i can put it up...

let me know if this is what you guys need...

Personally I like the new theme and would indeed like this mod to integrate with the default theme.  As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D

Prasad007

what does this mod do exactly?
and in membergroup permissions, theres an options of googlebot and spiders
if i check that, what access is the membergroup getting?

Zorac

Quote from: Posie on January 02, 2006, 10:52:00 AM
Personally I like the new theme and would indeed like this mod to integrate with the default theme.  As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D

fixed, link is at the bottom of page 24 in my last post...

anyone still having a problem with BoardIndex.php, drop me a pm, and Ill get you to email your BoardIndex.php to me and we can hopefully sort the problem out...


GC

I have the following error:

3.     Execute Modification     ./Sources/ModSettings.php     Test failed

rthrash

Seems to be installed and working with your revised scripts (required a manual install) in RC2 from the bottom of p 24 of this thread. However, I can't seem to find the config stuff in the admin pages. I'm sure it's just lack of sleep, but can you point me out where it's supposed to be now... thanks!

rthrash

Ahhh... now I see and answering my own question (time for a minor update methinks...):

It's at the bottom of this page: http://yoursite.com/forums/index.php?action=featuresettings

However, in RC2, the headings are inserted at the top and have dedicated "pages" for the settings. No heading there made me just overlook  the config options!

nokonium




Posie

Quote from: Zorac on January 02, 2006, 12:42:47 PM
Quote from: Posie on January 02, 2006, 10:52:00 AM
Personally I like the new theme and would indeed like this mod to integrate with the default theme.  As it stands the mod works with themes based on the old default theme but the new theme has a BoardIndex.template.php issue ;D

fixed, link is at the bottom of page 24 in my last post...

anyone still having a problem with BoardIndex.php, drop me a pm, and Ill get you to email your BoardIndex.php to me and we can hopefully sort the problem out...

Thank you for this :D  It is installed and works great.  I tested it with the W3C Validator.

Zorac

#370
Quote from: rthrash on January 02, 2006, 10:21:36 PM
Ahhh... now I see and answering my own question (time for a minor update methinks...):

It's at the bottom of this page: http://yoursite.com/forums/index.php?action=featuresettings

However, in RC2, the headings are inserted at the top and have dedicated "pages" for the settings. No heading there made me just overlook  the config options!


good idea! i fixed it so it now has its own tab....

if your running a default install of rc2 use this:
edit: old link removed, package revised, see later post.

if you have modifed the default theme, and have an older BoardIndex.template.php in the default directory (such as the one from the classic theme, or many older RC1 themes) use this one:
edit: old link removed, package revised, see later post.

ive pull all the other interm packages off my server as these should suit everyones needs.


rthrash

Quote from: GC on January 03, 2006, 10:58:25 PM
My spiders don't show up :S
They probably do, they just aren't there at the moment. You can test by change the user agent in Firefox most easily with Chris Pendricks' user agent switcher extension for Firefox and Flock.

A handy list of robots and user agents can be found here: http://www.robotstxt.org/wc/active/html/index.html

Or here's an XML file of lots of user agents that can be imported into the above extension: http://techpatterns.com/forums/about304.html

Zorac

#373
or just click on the w3c html validator logo, once validation page loads, go back to your forum and refresh and they should show.

if that doesnt work, chances are package installed to the default theme/directory, and you are using a theme in a different directiory, in which case youll have to manually mod your theme for spiders to show.

but like rthrash said, if there are no spiders, it wont display '0 spiders', it will jsut say the usual users and guests thing.

Bigguy

Plus I think there is a "Who.template.php" file that needs to be replaced or it did in smf 1.0.5 I`m not sure about the new versions.

rthrash

Quote from: Zorac on January 03, 2006, 10:37:48 PM
if your running a default install of rc2 use this:
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_default_theme.zip
Any way to just update a diff from the bottom of page 24 to this one?

Teknomancer

Hey Guys. Cool MOD.

I just updated to SMF RC2, installed this mod for RC2 and it works BAM. Ofcourse I had my OLDER BoardIndex template of my theme which I had manually made it to work with Googlebot.

Now my site shows clearly the Bots browsing the forums!! Thanks!!!
Awesome mod. Very very useful.
My SMF Forum:

HaxXxoR

Quote from: DemonicInfluence on December 30, 2005, 03:53:49 PM
you have the wrong code. Find: if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';


After that, you see and echo with a lot of stuff... Replace that with this: Should work..

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['users'];

You need to use that code instead of your code at that place.

What file would that be in ??
Droppin' shells like a hailstorm, and bodys like a plague!
Http://www.tasty-fragism.com

dtm.exe

Quote from: HaxXxoR on January 04, 2006, 11:06:59 AM
What file would that be in ??

Though I could be wrong, it's probably found in BoardIndex.template.php.

Zorac

#379
Quote from: rthrash on January 04, 2006, 12:22:40 AM
Quote from: Zorac on January 03, 2006, 10:37:48 PM
if your running a default install of rc2 use this:
http://miniunit.com/media/uploads/googlebot_v105_smfrc2_default_theme.zip
Any way to just update a diff from the bottom of page 24 to this one?

no, the coding for ModSettings.php is completely different, youll have to unisntall and reinstall to get the tabs to show. (or manually install into this file)

the revised Who.template.php is not required, althiough its nice to have, and the revised one that was for RC1 still works fine with RC2, at least for me.

ive installed and uninstall alot over the last couple days, and it uninstalls with no issues, ive even compared the file files back to the original and there were no issues...

on a side note, is there a program that generate the xml file automatically wehre you just give it the original file and the modified file??  it really sucks to add to those manually...

Advertisement: