[META] meta-description: add custom prefix

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

Moderator: Moderators

Re: [META] meta-description: add custom prefix

Postby WorldLife » Wed Mar 30, 2011 5:34 pm

Added this code

$meta_code['description'] = "The few words you want" . (isset($meta_code['description']) ? ' - ' . $meta_code['description'] : '');


Before

if (!$return) {
$template->assign_var('META_TAG', $meta_code);
} else {
return $meta_code;
}


Then no change in topic description but it gives error on all pages! In header

Tmeta name="content-language" content="en" />
WorldLife
 
Posts: 13
Joined: Mon Sep 20, 2010 2:44 pm

Advertisement

Re: [META] meta-description: add custom prefix

Postby dcz » Thu Mar 31, 2011 8:33 am

What was I thinking :roll: , sorry.
So add :
Code: Select all
      $this->meta['description'] = !empty($this->meta['description']) ? "The few words you want - " . $this->meta['description'] : '';

before :
Code: Select all
      $meta_code = '';
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: [META] meta-description: add custom prefix

Postby WorldLife » Sun Apr 03, 2011 4:43 pm

Thank you..

Works perfectly.. ;)
WorldLife
 
Posts: 13
Joined: Mon Sep 20, 2010 2:44 pm

Re: [META] meta-description: add custom prefix

Postby Posluzitelj » Tue Apr 19, 2011 6:43 pm

Hi
Is there any bbcode that "inserting" few post sentences in description tag?
Same thing that you have on this page of your forum:
<meta name="description" content="Added this code $meta_code['description'] = The few words you want . (isset($meta_code['description']) ? ' - ' . $meta_code['description'] : ''); Before if (!$return) { $template- ..." />
Dont want to install any mode..just make this change.
I'm using ultimate seo.
Thank you!
User avatar
Posluzitelj
 
Posts: 17
Joined: Fri Apr 08, 2011 1:11 am
Location: Spain

Re: [META] meta-description: add custom prefix

Postby dcz » Thu Apr 21, 2011 2:55 pm

No there is not.

We could in the future add some per topic keywords/description, but it's not the most urgent since SEOwise it would only make a very little difference as they are already build using the first post content which you can control.
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: [META] meta-description: add custom prefix

Postby Posluzitelj » Thu Apr 21, 2011 5:30 pm

And how are you doing it? Which mod?
Thank you
...
Suppose it's SEO Dynamic Meta tags MOD... I was just install it...work fine...
User avatar
Posluzitelj
 
Posts: 17
Joined: Fri Apr 08, 2011 1:11 am
Location: Spain

Previous

Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: MSN NewsBlogs and 5 guests