| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: 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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: 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
it was google some updates or some punishment  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sat Apr 07, 2007 4:52 pm Post subject: Re: error after install phpBB SEO Dynamic Meta tags |
|
|
its work now
i am not edite in common.php file
i was edite in before
mod work good now
thank you dcz  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: 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  |
yes its work very nice&good
now i use all dcz mods &add on  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |