[Toolkit] phpBB SEO Dynamic Meta Tags

phpBB mods by phpBB SEO.

Moderator: Moderators


[Toolkit] phpBB SEO Dynamic Meta Tags

Postby SeO » Sat Jun 10, 2006 11:43 am

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: 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']),


    And hard code infos about the portal, or just anything you may prefer :

    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",

    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: Select all
                     '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: Select all
      #
      #-----[ 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: Select all
               if ( strlen($word) >= 3 ) {


      to :

      Code: Select all
               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: Select all
      contrib/Dynamic_Metatags_V_0.0.1-0.2.0Update.txt
    Don't worry the mod is easy to install ;)

Documentation :

mod Rewrites supported :
    All

Languages :

Demo :

Download:
Last edited by SeO on Wed Jan 24, 2007 12:22 pm, edited 2 times in total.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm

Advertisement

Postby SeO » Mon Apr 02, 2007 1:56 pm

Support for this mod is to be asked in the phpBB SEO mods forum.

Please add [meta tags] in your topic titles when asking for support with this mod.

Support for the old version (0.0.1) is provided here.

Click on the Watch this thread link to be notified of updates for this mod.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 SEO TooLKit

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests


 
cron