dans viewtopic, il demande ceci :
#
#-----[ FIND ]------------------------------------------
#
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
//
// Censor topic title
//
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
// www.phpBB-SEO.com SEO TOOLKIT END
et moi j'ai ceci :
- Code: Tout sélectionner
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
//
// Censor topic title
//
//-- mod : disable word censor for single forums -------------------------------
//-- delete
/*-MOD
if ( count($orig_word) )
MOD-*/
//-- add
if ( count($orig_word) && (!$forum_topic_data['disable_word_censor']) )
//-- fin mod : disable word censor for single forums ---------------------------
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['topic'][$topic_id]) ) {
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
}
// www.phpBB-SEO.com SEO TOOLKIT END
puis je faire comme ceci :
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// Moved this a little above for the zero dupe
//
// Define censored word matches
//
//$orig_word = array();
//$replacement_word = array();
//obtain_word_list($orig_word, $replacement_word);
if ( count($orig_word) && (!$forum_topic_data['disable_word_censor']) )
//-- fin mod : disable word censor for single forums ---------------------------
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
//
// Censor topic title
//
//if ( count($orig_word) )
//{
// $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
//}
// www.phpBB-SEO.com SEO TOOLKIT END
ou cela vas poser problème ?
Merci dcz

Français |
Anglais

