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  
 
   
Index page meta tage

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



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Wed Feb 13, 2008 8:10 pm    Post subject: Index page meta tage

Ok im using the dyanmic meta tags scripts and only problem im having is that the homepage meta tags are like this:

Code:
WareSwapper.com : ... The team • All times are GMT. Forums by phpBB :: Copyright 2008 WareSwapper.com :: All Rights Reserved. internet advertising.


Is there a way i can set the meta description for JUST the index. And the rest just work like the mod does where it generates them.

Thanks.
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 809

Index page meta tagePosted: Thu Feb 14, 2008 1:20 am    Post subject: Re: Index page meta tage

You could use a flag in the overall_header.html, e.g.,

Code:
<!-- IF S_INDEX -->
<meta ... insert your tags here>
<!-- ELSEIF -->
{META_TAG}
<!-- ENDIF -->

Then define S_INDEX in the index.php file. Or you could set it indirectly by changing the $seo_meta instance; it's defined in function.php and you could change its values in index.php, e.g.

FIND:
Code:
$template->assign_vars(array(
   'TOTAL_POSTS'   => sprintf($user->lang[$l_total_post_s], $total_posts),


INSERT BEFORE:
Code:

global $seo_meta
$->meta['keywords'] = "blah blah blah";


I haven't tested the above, but I think it's enough to get you going.

_________________
Dan Kehn
Back to top
Visit poster's website
slickdf



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Thu Feb 14, 2008 1:44 am    Post subject: Re: Index page meta tage

thanks for trying but it didnt work. could you check or something please. if this works your a actualy legend. please try!
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Index page meta tagePosted: Thu Feb 14, 2008 10:33 am    Post subject: Re: Index page meta tage

Look in index.php :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($seo_meta->meta['meta_desc']);
// www.phpBB-SEO.com SEO TOOLKIT END - META



You can use :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt("the desc you want");
$seo_meta->meta['keywords'] = $seo_meta->make_keywords("the keywords you want");
// www.phpBB-SEO.com SEO TOOLKIT END - META


Or, since by default, meta are build out of the configured sitename and site description entered in phpBB's acp, you can as well just edit these value in the acp.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
slickdf



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Thu Feb 14, 2008 1:23 pm    Post subject: Re: Index page meta tage

Thanks, that worked. Umm just wondering though, on a page where i used the code tag in it it came out like this:

Code:
<meta name="description" lang="en" content=" CD1 01&amp;#46;Monkey Man * 02&amp;#46;You Know I-m No Good Ft&amp;#46; Ghostface Killah * 03&amp;#46;Valerie (Live Lounge - 10-01-07) * 04&amp;#46;Best Friend (Acoustic) * 05&amp;#46;Will You ..." />


Thanks for the previous help though. Very much appreaciated!
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Index page meta tagePosted: Fri Feb 15, 2008 3:03 pm    Post subject: Re: Index page meta tage

Do you get this with the original code or after you added your custom tags for the index page ?

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
slickdf



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Fri Feb 15, 2008 7:16 pm    Post subject: Re: Index page meta tage

Original code, its just how it interprets the [code] tag or something.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Index page meta tagePosted: Sat Feb 16, 2008 9:31 am    Post subject: Re: Index page meta tage

Then it's a small bug.

Try replacing :

Code:
$text = preg_replace(array('`&(amp;)?[a-z0-9]+;`i', '`[[:punct:]]+`', '`[\s]+`'), ' ', strip_tags($text) );


with :

Code:
$text = preg_replace(array('`&(amp;)?(#)?[a-z0-9]+;`i', '`[[:punct:]]+`', '`[\s]+`'), ' ', strip_tags($text) );


and :

Code:
         return $this->word_limit( utf8_htmlspecialchars( htmlspecialchars_decode( preg_replace($RegEx, $replace, $text ) ) ) );

with :

Code:
         return $this->word_limit( preg_replace('`&amp;(#[a-z0-9]+;)`i', '&\\1', utf8_htmlspecialchars( htmlspecialchars_decode( preg_replace($RegEx, $replace, $text ) )) ) );



and :

Code:
      return $this->word_limit( utf8_htmlspecialchars( htmlspecialchars_decode( preg_replace('`<[^>]*>(.*<[^>]*>)?`Usi', '`[\s]+`', array(' ', ''), $text ) ) ) );


with :

Code:
      return $this->word_limit(  preg_replace('`&amp;(#[a-z0-9]+;)`i', '&\\1', utf8_htmlspecialchars( htmlspecialchars_decode( preg_replace('`<[^>]*>(.*<[^>]*>)?`Usi', '`[\s]+`', array(' ', ''), $text ) ) ) ) );


This should fix the html numerical entities double htmlspecialchar issue.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
slickdf



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Sun Feb 17, 2008 4:39 pm    Post subject: Re: Index page meta tage

Thanks, worked sort of i think on some still weird.

Code:
<meta name="description" lang="en" content=" Info: http://www.imdb.com/title/tt0465602/ ===== File Info ===== FileSize : 697M PlayTime : 01:22:59.600 VideoCount : 1 AudioCount : 1 ===== Video Info ===== Video 0# Stream ..." />


And here:
Code:
<meta name="description" lang="en" content=" Info: Protect yourself with the best multi-layered firewall technology around. ZoneAlarm® Pro keeps intruders out, protects your PC to the core and makes you invisible ..." />


What was originaly:
Code:
Protect yourself with the best multi-layered firewall technology around. ZoneAlarm® Pro keeps intruders out, protects your PC to the core and makes you invisible to hackers. It also destroys spyware, secures your privacy and provides real world services that monitor and repair all suspicious activity linked to your identity.


Al you can see it changed the "." after the around into ".".

Any idea?
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Index page meta tagePosted: Tue Feb 19, 2008 9:41 am    Post subject: Re: Index page meta tage

First one looks like taken from a post with attachments.

It's not a very big issue, especially if we consider that meta tags are not necessarily worth it to spend more resource in formatting (you could though fully get rid of the attachments with extra filters). It's still providing with useful info too.

For the second case, I'm not sure to get it. A dot replaced with a dot ?

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
slickdf



Joined: 13 Feb 2008
Posts: 16

Index page meta tagePosted: Tue Feb 19, 2008 1:31 pm    Post subject: Re: Index page meta tage

Ok, nvm just wondered ^^. Its a warez forum so image and code tags are used alot. Also it has no attachments.
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: