MyBB Community Forums

Full Version: Meta description [1.4.5]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been looking for how to set meta tags, so my website appear on google when people use my keywords. I've found tons of tutorials about how to do it, also plugins but they did not work. The most recent tutorial explained how to do it this way..
Browse Admin Panel -> Templates -> Select your Template -> Ungrouped Templates. In that directory there is a file named headerinclude and I should add there something like this..

<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="resource-type" content="document" />
<meta name="language" content="english" />
<meta name="distribution" content="global" />
<meta name="copyright" content="@2009" />
<meta name="description" content="Forum description here." />
<meta name="keywords" content="keywords here separated by comas and a space" />


This way it don't work either, please give me a hand.
You don't need "keywords" because they are ignored by Google and others anyway.

A description should be unique for each page, so while you can set a static description for your index and portal page, for threads etc. it can only be done with a plugin. I wrote a plugin that does meta descriptions for me (among other things), it's called Google SEO and you can find it in the release forum (and if description is all you want, you can enable just description, and disable all the other features).

Regarding the other things, content-lanugage, distribution, copyright, etc., if you really want those, you can do that in the headerinclude template. headerinclude should be included in the header of every page, but wether it actually is also depends on the main template of your pages, i.e. the main page templates of index, showthread, etc. should contain {$headerinclude} somewhere within <head> </head>.
I will try a plugin by labrocca and if still doesn't work I will check your release. Thanks for the reply.
What is the code used for? May I ask?
It doesn't work but its suppoused to set keywords for when someone use google search. If someone search for "G23gg3" and you have it in your keywords, your site will appear in google.
labrocca gave me a link but I can't download the attachment because I don't have enough posts..

http://www.mybbcentral.com/thread-1657.html
Ah no, I need to get a payed subscription..
Oh! I just wanted to know