News:

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

Main Menu

MetaTags Modification Version 2.0.2

Started by Eclipse16V, June 07, 2009, 05:14:17 AM

Previous topic - Next topic

Eclipse16V

This is only for the index meta tags.
I worked with:
SMF 2 in German

Shop:
SID Giessen

ArticleProductions

 Not much help for SEO then.. Would be great to have it global, now that would help SEO...

Thanks for the answer...

James

ɔɔɔɔɔɔuɥoɾ

This is a great mod thanks,

Can you add

<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">
it will make it easier to change the above settings

Thanks,
JohnCcCcCc


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Eclipse16V

Quote from: johncccccc on September 24, 2009, 05:04:37 PM
This is a great mod thanks,

Can you add

<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">
it will make it easier to change the above settings

Thanks,
JohnCcCcCc
OK,
in the next Version end of the next week.
I worked with:
SMF 2 in German

Shop:
SID Giessen

dannys

Quote from: johncccccc on September 24, 2009, 05:04:37 PM
This is a great mod thanks,

Can you add

<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">
it will make it easier to change the above settings

Thanks,
JohnCcCcCc


for v1.1.* in ModSettings.php
find

array('text', 'meta_data_imagetoolbar_text'),


add after

array('check', 'meta_data_robots_on'),
         array('text', 'meta_data_robots_text'),


Themes/default/languages/Modifications.enlish.php
find

$txt['meta_data_imagetoolbar_blank'] = 'false';


add after

$txt['meta_data_robots_on'] = 'Enable robots';
$txt['meta_data_robots_text'] ='robots';
$txt['meta_data_robots_blank'] = 'false';


/Themes/default/index.template.php
find

{
      echo'
   <meta http-equiv="imagetoolbar" content="' , !empty($modSettings['meta_data_imagetoolbar_text']) ? $modSettings['meta_data_imagetoolbar_text'] : $txt['meta_data_imagetoolbar_blank'], '" />';
   }



add after

if(!empty($modSettings['meta_data_robots_on']))
   {
      echo'
   <meta name="robots" content="' , !empty($modSettings['meta_data_robots_text']) ? $modSettings['meta_data_robots_text'] : $txt['meta_data_robots_blank'], '" />';
   }



Here are the possible values for the meta robots tag:

    * index - index the page
    * noindex - don't index the page
    * follow - follow links from the page
    * nofollow - don't follow links from the page
    * noarchive - don't cache/archive the page
    * none - do nothing, ignore the page
    * all - do whatever you want, default behavior

dannys

Quote from: Sevgiformu.com on June 10, 2009, 02:08:34 AM

./Themes/default/index.template.php






echo '
<meta name="title" content="', $context['page_title_html_safe'], '" />';




why this need? you cant put nothink there

ɔɔɔɔɔɔuɥoɾ

hmmm nice, maybe this can be used in the new update, I will try this later, thanks :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Eclipse16V

New Version of the Mod.
I worked with:
SMF 2 in German

Shop:
SID Giessen

ɔɔɔɔɔɔuɥoɾ

Thanks for updating the mod, I was about to manually add the code, in the above post, lucky I'm lazy sometimes haha

Anyway, Installed, tested with meta tag analyzer and its now detected, for anyone not familiar with robot tags, its not like a description tab, its just some variables

settings should be the following mixed and matched as needed:
index
noindex
follow
nofollow


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

dannys

i think the best way it robots.txt

like upstars you can put googbot tag


array('check', 'meta_data_googlebot_on'),
         array('text', 'meta_data_googlebot_text'),


$txt['meta_data_googlebot_on'] = 'Enable googlebot';
$txt['meta_data_googlebot_text'] ='googlebot';
$txt['meta_data_googlebot_blank'] = 'false';



if(!empty($modSettings['meta_data_googlebot_on']))
   {
      echo'
   <meta name="googlebot" content="' , !empty($modSettings['meta_data_googlebot_text']) ? $modSettings['meta_data_googlebot_text'] : $txt['meta_data_googlebot_blank'], '" />';
   }



Googlebot obeys the noindex, nofollow, and noarchive Robots META Tag. If you place the tag in the head of your HTML/XHTML document, you can cause Google to not index, not follow, and/or not archive particular documents on your site.

The content="robots-terms" is a comma separated list used in the Robots META Tag for Google that may contain one or more of the following keywords without regard to case: noindex, nofollow and/or noarchive.

noindex
Document will not be indexed by Googlebot.

nofollow
Internal and external links in the document will not be followed by Googlebot.

noarchive
Google will not archive a copy of the document (Google's Cached Page).

nosnippet
Google will not display snippets and will not archive a copy of the document (Google's Cached Page). A snippet is a text excerpt from the returned result page that has all query terms bolded. Google Remove Snippets

If this Robots META Tag is missing, or if there is no content, or the robot terms are not specified, then the robot terms will be assumed to be "index, follow" (e.g. "all") which is the default indexing behavior for most major search engine spiders.

hartiberlin

Great Mod !

Can we please have some demo
description
what we should put in all the fields ?

For instance, what is DC description ?

Pleaselet us know, what are the best values for SEO
optimisation to put in there in all the fields !

by the way, the meta tag robots should probably contain
always:
index,follow
so ALL pages and links are spidered by Google.

Arantor

Quote from: hartiberlin on December 09, 2009, 06:44:00 PM
index,follow
so ALL pages and links are spidered by Google.

Even things that can't be indexed like the admin panel, what about the print-page pages that count against you for duplicate content?

hartiberlin

This has to be handled in robots.txt
to not allow to crawl these pages..
or will Google mix it up then ?

Arantor

As I've said to you, you CAN'T handle that reliably in robots.txt, meaning it has to be done as a meta tag.

Or in the case of printpage at least, you can deny access to guests through a mod of mine.

hartiberlin

Okay,
could the author of this
Meta Data Mod
please add a few fields for the robots meta tag,
so it could be set differently in different pages ?

It would be great, if I could set it just to noindex in the printpages
and wap2 pages and a few other locations.

If this Mod could handle this,
this would be great and the solution for it all...


Many thanks.
Regards, Stefan.

Arantor

Better solution would also be to nofollow those links in the first place, which is out of the scope of this mod.

hartiberlin

#36
I discovered a rather bad coding:
the robots meta tags is
spelled in this mod as:

<meta http-equiv="robots"


but it must be:

<meta name="robots"

so as it is designed for search engines mostly...

2. I also changed the meta description
back to what it was before this mod was installed,
cause the old settings, did give me as the description
at least the page title.

This is the code to add again
in index.template.php:

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


The Mod´s meta description is only a static
value for ALL the pages, so would only
generate all page descriptions the same, which
is probably not good for SEO.


So maybe the author can still program it this
way, that he fetches the first 2 sentences from a posting and
sets this as the meta description tag.
That would be the best solution for a good SEO
optimisation.

Many thanks in advance.

Regards, Stefan.

P.S: I also added the rel="nofollow" tag for the Wap2
link at the bottom of every page via the index.template.php
and installed the printpage-permission MOD,
so Googlebot is not allowed to crawl the printpages as a guest user ....

DirtRider

Quote from: nay27uk on August 01, 2009, 07:08:42 AM
Need some help with the following

Enable Page-topic
What do I put In here do i need some code to pull the topic from the page

Also the same question for
Enable Pagetopic

Also what an erth is
Enable DC.Description
and
DC.Description
Never heard of a meta tag named DC

also what do I put for
Enable Page-type
and
Page-type
Do I put PHP

And what is
Enable Imagetoolbar
And
Imagetoolbar
What the hell is an image toolbar my forum has no tool bars

I would also like to know a bit more about these fields as well as what needs to go into the Enable Robots area
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

hartiberlin

In the robots area you would put:

index,follow

Yes, it would be cool if the author of the mod would
explain a bit more the other fields.
what they should comtain.

Also I wish he could get the first  100 to 200 words from the posting
for the meta tag description,
so this will show the real content of the first posting.

Or how could one do it oneself to get this done ?
Could anyone post a patch for this ?
Many thanks.

DirtRider

Thanks I yes it would be great if we got a better run down on what all those fields do  ;D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

Advertisement: