[meta] Meta desc and key on additionally created pages?

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

[meta] Meta desc and key on additionally created pages?

Postby austin881 » Wed Nov 11, 2009 7:59 pm

What is the best way to implement meta description and keyword optimization on extra additional pages that I create? (ie. ranks.php)

If I create an additional page for phpBB3, the meta information for those pages is rather generic with the [Toolkit] phpBB SEO Dynamic Meta Tags V 0.2.8.

For example (root/ranks.php):
Code: Select all
<meta name="description" lang="en" content="Ranks : A short text to describe your forum." />
<meta name="keywords"    content="text, short, describe, forum, your, ranks" />


I want to elaborate with the desc and key and not be restricted by using the default $config['site_desc] or something. How can I do this?

I plan on creating a smilies.php and contact.php and chat.php and rules.php and a lot of other extraneous pages, so I would like to know how I can optimize each pages meta tags.
My dev playground: ModernDignity.com
Appreciate my assistance? You can thank me by linking to Chevy Truck Forum or Gas Scooters.
User avatar
austin881
phpBB SEO Team
phpBB SEO Team
 
Posts: 248
Joined: Wed Oct 28, 2009 12:16 am
Location: Boise, Idaho USA

Advertisement

Re: [meta] Meta desc and key on additionally created pages?

Postby SeO » Thu Nov 12, 2009 11:17 am

Next version will be a bit different, with the current one ( 0.2.8 ) you would need to inspire from index.php and just add :
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt("The description you want");
$seo_meta->meta['keywords'] = $seo_meta->make_keywords("The keywords you want separated by spaces");
// www.phpBB-SEO.com SEO TOOLKIT END - META

before page_header is called.

With upcoming version, you will need to use :
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->collect('description', "The description you want");
$seo_meta->collect('keywords', "The keywords you want separated by spaces");
// www.phpBB-SEO.com SEO TOOLKIT END - META

The next version will allow you to set all meta tags using seo_meta::collect as you wish for each page. Collecting an empty string will result into not using the corresponding tag for that page.

Note that in both cases, you can reuse the description in the keywords tag, by using $seo_meta->meta['meta_desc'] (will be $seo_meta->meta['description'] in next version) in the keywords collect call.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Re: [meta] Meta desc and key on additionally created pages?

Postby austin881 » Fri Nov 13, 2009 5:43 pm

I just wanted to follow-up on this topic. Your solution works perfectly and I am reusing the description in the keywords tag. I am learning so much about phpBB-SEO coding. :lol:

Thank you.
My dev playground: ModernDignity.com
Appreciate my assistance? You can thank me by linking to Chevy Truck Forum or Gas Scooters.
User avatar
austin881
phpBB SEO Team
phpBB SEO Team
 
Posts: 248
Joined: Wed Oct 28, 2009 12:16 am
Location: Boise, Idaho USA

Re: [meta] Meta desc and key on additionally created pages?

Postby dcz » Tue Nov 17, 2009 8:48 am

You're welcome ;)

phpBB3.0.6 is so long to come ! I can't wait to release all the updates, but on the other hands, it gave us more time to enhance them, and believe me, if you like our 3.0.5 mods, you'll love the 3.0.6 ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests