- 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.
- Code: Select all
// 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']),- Code: Select all
// 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",- Code: Select all
'meta_lang' => 'en',- Code: Select all
#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#- Code: Select all
if ( strlen($word) >= 3 ) {- Code: Select all
if ( mb_strlen($word, 'UTF-8') >= 3 ) {- Code: Select all
contrib/Dynamic_Metatags_V_0.0.1-0.2.0Update.txt
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 :
And hard code infos about the portal, or just anything you may prefer :
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 :
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 :
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.
- if for example you are using UTF-8, you'll probably have to change :
to :
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 :
Documentation :
mod Rewrites supported :
- All
Languages :
- English, French.
French support thread
Demo :
Download:

English |
French
