Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Galaxy Computers - helmikuu 01, 2009, 02:00:27 IP

Otsikko: Meta Tags/ Keywords
Kirjoitti: Galaxy Computers - helmikuu 01, 2009, 02:00:27 IP
I want to change my own keywords instead of using the SMF Defualts keywords is that possible?
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: KahneFan - helmikuu 01, 2009, 04:22:50 IP
2.0b4: ADMIN --> FEATURES AND OPTIONS --> LAYOUT --> Meta keywords associated with forum:

OR, you can use the mod below. However before installing, you will want to preform the following on the default theme, as well as the theme you're using:

index.template.php
find:

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


replace with:

<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />



This will allow the mod below to install smooth.
http://custom.simplemachines.org/mods/index.php?mod=1138

The good thing about this mod is it gives you the meta DESCRIPTION as well. (which is what search engines display on searches)
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: Galaxy Computers - helmikuu 01, 2009, 04:27:23 IP
Thank you.  I also tried this mod http://custom.simplemachines.org/mods/index.php?mod=1138

I will not work for me.
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: greyknight17 - helmikuu 09, 2009, 09:12:12 IP
mtechama, is this issue resolved now?

What do you mean it won't work for you? Did you run into any errors? If so, what is the exact error message you are getting? We can only help out if we understand what problem you are encountering.
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: llckll - helmikuu 16, 2009, 05:36:15 IP
After replacing the two lines of code, what do I have to do with the zip file?  How do I know which RC candidate i'm using.

Thanks.
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: greyknight17 - helmikuu 16, 2009, 05:39:57 IP
llckll, you can look at the forum's copyright area at the bottom to find out what version you have. Unless you installed RC1 or upgraded to it, you probably still have an older version. Just do it from the admin panel as mentioned earlier. This is probably the easiest way to handle them.
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: llckll - helmikuu 16, 2009, 06:23:25 IP
Lainaus käyttäjältä: greyknight17 - helmikuu 16, 2009, 05:39:57 IP
llckll, you can look at the forum's copyright area at the bottom to find out what version you have. Unless you installed RC1 or upgraded to it, you probably still have an older version. Just do it from the admin panel as mentioned earlier. This is probably the easiest way to handle them.

Hi GreyKnight,

When I go into the admin area, there is not section for Keywords.
Otsikko: Re: Meta Tags/ Keywords
Kirjoitti: Rumbaar - maaliskuu 05, 2009, 04:50:20 IP
This is only present in SMF 2.0, are you sure you are using 2.0?

I'll guess you are using 1.1.x and you'll need to edit your themes index.template.php file.