[meta] remove keywords completely

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

Moderator: Moderators

[meta] remove keywords completely

Postby ducktapge » Tue Sep 09, 2008 12:22 pm

i have searched for a while and cannot find what i am looking for. I have optimal meta tags installed and works good, i need to remove the keywords meta tag completely however. I have removed in index.php but so far no luck on removing. Where is the code that i can take out to remove keywords for index and all other pages. Thanks


EDIT: got it taken care of, found the post i was looking for
ducktapge
 
Posts: 2
Joined: Thu Aug 28, 2008 2:54 am

Advertisement

Postby Bicster » Wed Jan 07, 2009 6:17 pm

Do you still have the link? I've been searching and I can't find it.
Bicster
 
Posts: 5
Joined: Wed Dec 31, 2008 7:15 pm

Postby darjana » Thu Jan 08, 2009 3:23 am

Well find,

Code: Select all
return sprintf( $this->meta['meta_tpl'], $this->meta['meta_title'], $this->meta['meta_lang'], $this->meta['meta_desc'], $this->meta['keywords'], $this->meta['meta_cat'], $this->meta['meta_robots'], $this->meta['meta_distrib'], $this->meta['meta_restype'], $this->meta['meta_copy'] );


Replace with

Code: Select all
return sprintf( $this->meta['meta_tpl'], $this->meta['meta_title'], $this->meta['meta_lang'], $this->meta['meta_desc'], $this->meta['meta_cat'], $this->meta['meta_robots'], $this->meta['meta_distrib'], $this->meta['meta_restype'], $this->meta['meta_copy'] );


Find:

Code: Select all
$this->meta['meta_tpl'] =  '<meta name="title" content="%s" />' . "\n" . '<meta name="description" lang="%s" content="%s" />' . "\n" . '<meta name="keywords"    content="%s" />' . "\n" . '<meta name="category"    content="%s" />' . "\n" . '<meta name="robots"      content="%s" />'. "\n" . '<meta name="distribution" content="%s" />' . "\n" . '<meta name="resource-type" content="%s" />' . "\n" . '<meta name="copyright" content="%s" />' . "\n";


Replace with

Code: Select all
$this->meta['meta_tpl'] =  '<meta name="title" content="%s" />' . "\n" . '<meta name="description" lang="%s" content="%s" />' . "\n" . '<meta name="category"    content="%s" />' . "\n" . '<meta name="robots"      content="%s" />'. "\n" . '<meta name="distribution" content="%s" />' . "\n" . '<meta name="resource-type" content="%s" />' . "\n" . '<meta name="copyright" content="%s" />' . "\n";
darjana
 
Posts: 45
Joined: Fri Feb 01, 2008 10:25 am

Postby Bicster » Thu Jan 08, 2009 3:29 am

Thanks for your help!

Is there a possibility to make this a configurable option? Are patches for that sort of thing often accepted?

I ask for two reasons: First, it is a pain to maintain modifications like this when new versions come out. Second, the quality of the keywords on my system are very low (99% irrelevant) and I am worried they will do far more harm than good.

I am tempted to write an apache output filter to nuke the keywords so that I don't have to maintain another patch.
Bicster
 
Posts: 5
Joined: Wed Dec 31, 2008 7:15 pm

Postby dcz » Thu Jan 08, 2009 11:35 am

Bicster wrote:Is there a possibility to make this a configurable option? Are patches for that sort of thing often accepted?


As a matter of fact it could be easier than it seems, I'll think about it for the next version. We could just use ordered variables for sprintf (%1$s etc) and allow some meta cells to be empty so that no hard coding would be required to bypass one tag or the other.

++
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