Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to make vanilla more SEO friendly and get more indexed pages
This discussion has been closed.
Comments
If you look in the DiscussionTags extension, you should see how you can get those tags to add to the meta keywords.
How to make vanilla more SEO friendly and get more indexed pages - Lussumo Community
would be much better than how it currently is:
Lussumo Community - How to make vanilla more SEO friendly and get more indexed pages
while (list($Name, $Content) = each($this->Meta)) { $HeadString .= ' <meta name="'.$Name.'" content="'.$Content.'" />'; }
you can use it 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';
I don't know what would be a nice description.
But such extension would work like that:
<?php /* Extension Name: DummyMeta Description Extension Url: http://lussumo.com/community/discussion/5039/how-to-make-vanilla-more-seo-friendly-and-get-more-indexed-pages/#Item_32 Description: Add descriptions of the pages Version: 0.0.1 Author: DinoBoff Author Url: http://lussumo.com/community/account/2469/ Support: */ // global default description $Head->Meta['Description'] = 'My beautiful forum, lots of good advices on stuff'; // Description for the account page if ($Context->SelfUrl == "settings.php") { //default description $Head->Meta['Description'] = 'Profile of My beautiful members'; //Find control that give you nice information about the pace //For the account page, that would be the Account controler //Use one of the delegation to add the description function AddDescriprionToAccountProfiles(&$Account){ global $Head; $Head->Meta['Description'] = 'Profil of ' . $Account->User->Name; } $Context->AddToDelegate('Account', 'PreInputsRender', 'AddDescriprionToAccountProfiles'); } ?>
You should look at the document to see how to create your extension
$Head->Title = 'Testing Page';
This will append the title to the name of your forum.