phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[META] meta-description: add custom prefix

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 SEO MODS
::  
Author Message
cesare2008



Joined: 11 Sep 2008
Posts: 14

[META] meta-description: add custom prefixPosted: Mon Oct 20, 2008 3:10 pm    Post subject: [META] meta-description: add custom prefix

i've given it a try. the mod works fine so far (except that on phpbb3 it doesn't use the search_ignore_words list...). at least i haven't double meta-tags anymore.

1) can i add some custom prefix, i.e. "XY FORUM: " in front of every meta-description? would you recommend that (readability)? how would i do that?

P.S: does google penalize (seo-wise) forums with double meta-tags so heavily? do you know?

cheers,
cesare
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15414

[META] meta-description: add custom prefixPosted: Sun Oct 26, 2008 10:44 am    Post subject: Re: [META] meta-description: add custom prefix

Well, adding few repeated content in the meta tags should not hurt if you do not add to many and unrelated content.
This mean that doing so, you should only add few and general content.
The difference would mostly be cosmetic given the importance of meta tags nowadays, but here is how to do it, in includes/function.php find :
Code:
      $this->meta['meta_desc'] = ( !empty($this->meta['meta_desc']) ) ? $this->meta['meta_desc'] : $this->meta_filter_txt($page_title . ' : ' . $this->meta['meta_desc_def']);
      $this->meta['keywords'] = ( !empty($this->meta['keywords']) ) ? $this->meta['keywords'] : $this->make_keywords( $page_title . ' ' . $this->meta['meta_keywords_def']);


and replace it with :
Code:
      $extra_desc = "my extra description that will be added to the regular ones";
      $extra_keywords = "coma,separated,list,of,addtional,keywords";
      $this->meta['meta_desc'] = ( !empty($this->meta['meta_desc']) ) ? $this->meta['meta_desc'] . " $extra_desc" : $this->meta_filter_txt($page_title . ' : ' . $this->meta['meta_desc_def']);
      $this->meta['keywords'] = ( !empty($this->meta['keywords']) ) ? $this->meta['keywords'] . ",$extra_keywords" : $this->make_keywords( $page_title . ' ' . $this->meta['meta_keywords_def']);


Just make sure you only add few words in $extra_desc and $extra_keywords Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
cesare2008



Joined: 11 Sep 2008
Posts: 14

[META] meta-description: add custom prefixPosted: Mon Oct 27, 2008 7:27 am    Post subject: Re: [META] meta-description: add custom prefix

thanks a lot for your valuable input.

cheers,
cesare
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: