| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Sat Jun 10, 2006 11:43 am Post subject: [Toolkit] phpBB SEO Dynamic Meta Tags |
|
|
phpBB SEO Dynamic Meta tags
Title : phpBB SEO Dynamic Meta tags
Author : dcz / http://www.phpbb-seo.com/
Description : Generates dynamic metatags for phpBB.
Version : 0.2.0
Installation Level : Eazy.
Installation Time : 5 min.
EZmod : Yes.
phpBB : 2.0.22.
Author's Notes :
This mod will add dynamic meta tags build out with the ending page's content.
It's simple and efficient, will add specific meta tags to categories, forums and the index without adding any SQL Query.
A single SQL query is added in viewtopic.php, to grab the first post's most used words.
Part of this code inspired from ( http://www.phpbb.de/viewtopic.php?t=49679 ) Larsneo and Titus.
You should not use more than 20 keywords in the keyword meta tags
As well, you should not use too long description tags
In case you're using a portal, you may want to change in phpbb_seo/phpbb_seo_class.php :
| Code: | // Here you can hard code a static default title, description and keywords
// As is, the mod will return information based on the phpbb config
'meta_title_def' => $this->meta_filter_txt($board_config['sitename']),
'meta_desc_def' => $this->meta_filter_txt($board_config['site_desc']),
'meta_keywords_def' => $this->make_keywords($board_config['site_desc']), |
And hard code infos about the portal, or just anything you may prefer :
| Code: | // Here you can hard code a static default title, description and keywords
// As is, the mod will return information based on the phpbb config
'meta_title_def' => "Your default meta title",
'meta_desc_def' => "Your default meta description",
'meta_keywords_def' => "your,default,meta,keywords", |
These are used as default, in every file not specifying meta tags (search.php, faq.php ...).
Meta Lang :
You'll have to make sure you're using the proper meta language settings in phpbb_seo/phpbb_seo_class.php :
| Code: | | 'meta_lang' => 'en', |
Please Note :
This mod's install can follow two scenario.
Depending on if you installed the phpbb_seo/phpbb_seo_class.php file, while installing one of the phpBB SEO mod rewrites for example, the first step will be different.
If you did not installed any phpBB SEO mod already adding this file, you'll have to upload standalone/phpbb_seo/phpbb_seo_class.php, from the downloadable archive, in the phpBB folder.
You'll as well need to perfom on additional code change in common.php, as described in the install after the following command :
| Code: | #
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
# |
You'll as well find two more DIY INSTRUCTIONS for index.php and includes/page/header.php, please read the comment carefully to install the mod proper.
Special char-set :
if for example you are using UTF-8, you'll probably have to change :
| Code: | | if ( strlen($word) >= 3 ) { |
to :
| Code: | | if ( mb_strlen($word, 'UTF-8') >= 3 ) { |
in phpbb_seo/phpbb_seo_class.php. Using mb_strlen() will most likely be necessary for for non Latin char-set.
For more details, please read the comments in the code.
Update :
Update instructions are to be find in : | Code: | | contrib/Dynamic_Metatags_V_0.0.1-0.2.0Update.txt |
Don't worry the mod is easy to install
Documentation :
mod Rewrites supported :
Languages :
Demo :
Download:
|
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Last edited by SeO on Wed Jan 24, 2007 12:22 pm; edited 2 times in total |
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |