Since Vanilla 1.1.x, the Head control has a $Meta property. Check /themes/head.php, line 10: while (list($Name, $Content) = each($this->Meta)) { $HeadString .= ' <meta name="'.$Name.'" content="'.$Content.'" />'; }
you can use with:$Head->Meta['Description'] = 'My beautiful forum, lots of good advices on stuff'; Or if you want to add a Meta element from a function or a class:global $Head; $Head->Meta['Description'] = 'My beautiful forum, lots of good advices on stuff';
Currently there is no form to edit the default meta tags, and you have to edit the default.php file to set the tags in the many scenarios that the hack cannot determine which words to use.
Any updates to this?
Something like this would be great if you could get it so it would auto-generate descriptions AND keywords for every discussion...
I though it did this already? A description is easy enough as it grabs the first para or so. How it would grab keywords though is a little more complex. Say the first 20 words longer than 7 letters?
One way to to do dynamic keywords (but probably intensive keyword tool) would be to check the density of keywords. then pick the top 5. So, Count all words longer than 5 letters or more, then, the words with the top 10 density words would then be put in to a meta keywords tag for each discussion. It would be nice if the quantity of letters and the quantity of keywords were a setting. Another route is to look for pairs of words too. Like: keyword tool (how often are those two words used.) So, count all words longer than 5 letters, then do all pairs of keywords and count them and identify the top 10. Again, I don't know how much this would slow down the page, but just an idea.
This is working with 1.1.5a, hopefully it helps with SEO. It basically takes the first 50 words of the first post and puts it in into the meta description of the site.
Don't forget you can edit keywords and descriptions by opening up the default.php file.
Comments
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·while (list($Name, $Content) = each($this->Meta)) {$HeadString .= '
<meta name="'.$Name.'" content="'.$Content.'" />';
}
you can use with:
$Head->Meta['Description'] = 'My beautiful forum, lots of good advices on stuff';Or if you want to add a Meta element from a function or a class:
global $Head;$Head->Meta['Description'] = 'My beautiful forum, lots of good advices on stuff';
- Spam
- Abuse
0 · Insightful Awesome LOL ·Currently there is no form to edit the default meta tags, and you have to edit the default.php file to set the tags in the many scenarios that the hack cannot determine which words to use.
- Spam
- Abuse
0 · Insightful Awesome LOL ·On this site MetaTags.
Can we get this updated please?
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·I have a nice message 'ok... this part hasnt bee finished yet...'
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·A description is easy enough as it grabs the first para or so.
How it would grab keywords though is a little more complex.
Say the first 20 words longer than 7 letters?
Posted: Friday, 27 July 2007 at 9:57AM
- Spam
- Abuse
0 · Insightful Awesome LOL ·In source code, the foreign characters are rendered like y513;Dt115;...........
- Spam
- Abuse
0 · Insightful Awesome LOL ·One way to to do dynamic keywords (but probably intensive keyword tool) would be to check the density of keywords. then pick the top 5. So, Count all words longer than 5 letters or more, then, the words with the top 10 density words would then be put in to a meta keywords tag for each discussion. It would be nice if the quantity of letters and the quantity of keywords were a setting. Another route is to look for pairs of words too. Like: keyword tool (how often are those two words used.) So, count all words longer than 5 letters, then do all pairs of keywords and count them and identify the top 10. Again, I don't know how much this would slow down the page, but just an idea.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Don't forget you can edit keywords and descriptions by opening up the default.php file.
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·