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  
 
   
error after install phpBB SEO Dynamic Meta tags

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
::  
Author Message
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

error after install phpBB SEO Dynamic Meta tagsPosted: Fri Apr 06, 2007 4:02 pm    Post subject: error after install phpBB SEO Dynamic Meta tags

i have this error after install

Fatal error: Cannot redeclare class phpbb_seo in /home/mohamed/public_html/forum/phpbb_seo/phpbb_seo_class.php on line 18

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

error after install phpBB SEO Dynamic Meta tagsPosted: Sat Apr 07, 2007 11:36 am    Post subject: Re: error after install phpBB SEO Dynamic Meta tags

Well, there is no reason why this should happen.

It looks like you messed up a bit.

You do not need to follow the standalone steps since you are using the phpBB SEO mod rewrite.

Just go back to the original phpbb_seo_class.php file, and perform the suggested code changes again, but without taking into account the standalone steps.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

error after install phpBB SEO Dynamic Meta tagsPosted: Sat Apr 07, 2007 4:24 pm    Post subject: Re: error after install phpBB SEO Dynamic Meta tags

really i cant understand this step

Code:

#-----[ OPEN ]------------------------------------------
#

phpbb_seo/phpbb_seo_class.php

#
#-----[ FIND ]------------------------------------------
#

   /**
   * constuctor
   */
   function phpbb_seo() {

#
#-----[ FIND ]------------------------------------------
#

      return;
   }
#
#-----[ BEFORE, ADD ]------------------------------------------
#

      // --> Meta tags
      $this->seo_meta_tags();

#
#-----[ FIND ]------------------------------------------
#

}
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#

   // -- > Meta tags
   var   $seo_meta = array();
   /**
   * Returns meta tag code
   */
   function build_meta($page_title = '') {
      $meta_desc = ( $this->seo_meta['meta_desc'] != '' ) ? $this->seo_meta['meta_desc'] : $this->seo_meta['meta_desc_def'];
      $keywords = ( $this->seo_meta['keywords'] != '' ) ? $this->seo_meta['keywords'] : $this->seo_meta['meta_keywords_def'];
      $title = ( $this->seo_meta['meta_title'] != '' ) ? $this->seo_meta['meta_title'] : $page_title;
      return sprintf( $this->seo_meta['meta_tpl'], $title, $this->seo_meta['meta_lang'], $meta_desc, $keywords, $this->seo_meta['meta_cat'], $this->seo_meta['meta_robots'] );
   }
   /**
   * Returns a word list separated by comas
   * You might want tu use mb_strlen() instead of strlen()
   * if you are using UTF-8 : mb_strlen($word, 'UTF-8')
   * you can as well change the minimum word size here : if ( strlen($word) >= 3 ) {
   * Possible Options :
   * - $limit = 0 means no limit.
   *   By default, ' . and , are deleted.
   */
   function make_keywords($text, $limit = 15) {
      $keywords = '';
      $num = 0;
      $text = preg_replace(array("`[[:punct:]]+`", "`[\s]+`"), array(" ", " "), strip_tags($text) );
      $text = explode(" ", $text);
      // We take the most used words first
      $text = array_count_values($text);
      foreach ($text as $word => $count) {
         if ( strlen($word) >= 3 ) {
            $keywords .= ($keywords == '') ? $word : ',' . $word;
            $num++;
            if ( $limit > 0 && $num >= $limit ) {
               break;
            }
         }   
      }
      return $keywords;
   }
   /**
   * Filter php/html tags and white spaces and returns htmlspecialchared string
   */
   function meta_filter_txt($text) {
      return htmlspecialchars(preg_replace("`[\s]+`", " ", strip_tags($text) ) );
   }
   /**
   * Initialize meta tags
   * @access private
   */
   function seo_meta_tags() {
      global $board_config;
      $this->seo_meta = array('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_title' => '',
         'meta_desc' => '',
         'meta_keywords' => '',
         // 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']),
         'meta_lang' => 'en',
         'meta_cat' => 'general',
         'meta_robots' => 'index,follow',
         'meta_gened' => FALSE
      );
      return;
   }


this
Code:

#-----[ FIND ]------------------------------------------
#

   /**
   * constuctor
   */
   function phpbb_seo() {

#
#-----[ FIND ]------------------------------------------
#

      return;
   }
#
#-----[ BEFORE, ADD ]------------------------------------------
#

      // --> Meta tags
      $this->seo_meta_tags();



my vistors start back again Wink

it was google some updates or some punishment Very Happy

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

error after install phpBB SEO Dynamic Meta tagsPosted: Sat Apr 07, 2007 4:52 pm    Post subject: Re: error after install phpBB SEO Dynamic Meta tags

its work now Laughing

i am not edite in common.php file Smile

i was edite in before Embarassed

mod work good now

thank you dcz Wink

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

error after install phpBB SEO Dynamic Meta tagsPosted: Mon Apr 09, 2007 9:31 am    Post subject: Re: error after install phpBB SEO Dynamic Meta tags

And really well indeed with windows-1256 char-set Very Happy

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

error after install phpBB SEO Dynamic Meta tagsPosted: Mon Apr 09, 2007 11:01 am    Post subject: Re: error after install phpBB SEO Dynamic Meta tags

dcz wrote:
And really well indeed with windows-1256 char-set Very Happy


yes its work very nice&good

now i use all dcz mods &add on Laughing

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: