• Welcome to Simple Machines Community Forum. Please login or sign up.

I have a no follow rule in my brand new downloaded index??

Started by Bilinda, April 18, 2008, 08:17:00 AM

Previous topic - Next topic

Bilinda

Hi everyone, brand new here, the name's Bilinda. I know a bit about php, but not much. I just installed my first forum, version 1.1.4.

It's all working great, but I noticed something in the index template. Right where your meta tags are I have this code:

<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '

As far as I know, that's telling search engines not to follow the page? I want my forum to be spidered, so should I get rid of that, and if so, how? Are there any other code issues I should change?

That's it so far, the rest I just need to study more. Thanks everyone, glad to be here! :D


rsw686

The noindex value is only placed if the $context value is set. View the source of the actual forum pages and you'll see that it only shows up on some pages.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Bilinda

Thank you for the quick reply rsw686! So, your saying I should just leave it alone, that it's for duplicate stuff? I'm not sure what "$context value is set" is. Is that something I should do, or just leave it alone? Thanks again!

Eliana Tamerin

No, it tells the search engines not to spider the page only if the specific value there (robot_no_index) is set. I'm not sure exactly where that's set, though. Probably somewhere in the admin settings or settings.php. Or it could be a small feature that has to be set manually somewhere.

You could probably find out what robot_no_index does in Load.php.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

ccbtimewiz

<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '


This could also be read as:

(DO NOT ADD/MODIFY YOUR TEMPLATES)

<meta name="description" content="', $context['page_title'], '" />';

if (empty($context['robot_no_index']))
     echo '
          <meta name="robots" content="noindex" />';


Or, in english:

If I have set my forum to allow spiders in the admin panel, then let them be. However, if I didn't, please ignore this code.

rsw686

Quote from: Eliana Tamerin on April 18, 2008, 09:13:46 AM
I'm not sure exactly where that's set, though. Probably somewhere in the admin settings or settings.php.

It disabled the spiders on print version of the pages, etc. The setting is fine how it is. Like I said when viewing a page in the browser, if you right-click and view the source, you can easily see which pages are affected by the noindex and which are not.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Bilinda

OK, I see now. Thanks for all the help everyone, I appreciate it!
:)

karlbenson

Yeah this is how SMF warns search engines about duplicated content or pages not of any use.
If you have any further questions about it, I can try to answer them.

But for 99.99% of people it is best left untouched.

Eliana Tamerin

Oh, now I remember. It's set in the source pages, isn't it?
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

CmptrWz

So that search engines don't index the same page being referenced in different ways, as well as pages that should not be indexed, when pages are accessed through specific means they are told to not index them.

I believe this includes, but is not limited to, searching, printing, replying, and new topics, just to name a few.

karlbenson

Indeed. And in SMF 2.x alot more.
And if you've seen the bug tracker, you'll also notice i've pointed out more further to come ;)

Bilinda

QuoteI believe this includes, but is not limited to, searching, printing, replying, and new topics, just to name a few.

But why would you want to block new topics? A forum is a gold mine for search terms, but not if the spiders can't index it.

I just heard from a friend who uses two SMF, and he says google seems to have lots of crazy stuff indexed like search, password, stuff like that but no post or topics!?

karlbenson

April 18, 2008, 12:41:39 PM #12 Last Edit: April 18, 2008, 12:43:53 PM by karlbenson
They aren't blocking new topics.
I believe CmptrWz is referring to the POST screen.

So the topic/post is indexable.
http://www.simplemachines.org/community/index.php?topic=234844.0

But the post reply/ create topic screen is noindexed
http://www.simplemachines.org/community/index.php?action=post;topic=234844.0
Plus if the individual msg link is used that is noindexed
http://www.simplemachines.org/community/index.php?topic=234844.msg1512565#msg1512565
It is duplicated content. (since it shows exactly the same content just via a slightly different url) [you may get penalised in search engines for duplicated content].

Bilinda

Oh, I see. Ok, thanks for all the help. I love the forum so far, it's been very easy to set up!

Advertisement: