Mój skrypt to phpBB 3.0.11 na którym zainstalowałem Ultimate seo i było wszystko OK, następnie doinstalowałem GYM Sitemaps & RSS i chciałem zainstalować zero duplikate ale miałem problem ze po włączeniu tej opcji forum się nie wczytywało(biała strona), więc postanowiłem nadpisać dotychczasowe pliki modyfikacją phpbb premod.
Po nadpisaniu forum działa ale adresy tematów w działach wyświetla inaczej dla stylu domyślnego i dla drugiego stylu forum.
Prosilver /jak-p-aci-na-aliexpress-t2154.html
ProBlack /viewtopic.php?f=46&t=2154&view=unread#unread
i wszystkie tematy w poszczególnych działach w tym stylu mają treść unread#unread po kliknięciu w temat w adresie przeglądarki widnieje już poprawny adres.
edytowałem styl ręcznie z instrukcji dla Ultimate SEO URL 7,0 i nie wiem z gdzie mogłem popełnić błąd.
Drugi problem to nie potrafie zmusić skryptu do polskich liter w tytułach pomimo wyedytowania setup-phpbb-seo w folderze phpbbseo/includes. Wyczyściłem Cache , odświeżyłem styl i synchronizowałem fora.
Kod: Zaznacz cały
// ===> Custom url replacements <===
// Here you can set up custom replacements to be used in title injection.
// Example : array( 'find' => 'replace')
$this->url_replace = array(
'ś' => 's', 'ł' => 'l',
'ć' => 'c', 'ą' => 'a',
'ó' => 'o', 'ź' => 'z',
'ż' => 'z', 'ę' => 'e',
'Ń' => 'n', 'ń' => 'n',
'Ł' => 'l', 'Ą' => 'a',
'Ś' => 's', 'Ć' => 'c',
'Ż' => 'z', 'Ź' => 'z',
'Ó' => 'o', 'Ę' => 'e',
);
// ===> Custom values Delimiters, Static parts and Suffixes <===
// ==> Delimiters <==
// Can be overridden, requires .htaccess update <=
// Example :
// $this->seo_delim['forum'] = '-mydelim'; // instead of the default "-f"
// ==> Static parts <==
// Can be overridden, requires .htaccess update.
// Example :
// $this->seo_static['post'] = 'message'; // instead of the default "post"
// !! phpBB files must be treated a bit differently !!
// Example :
// $this->seo_static['file'][ATTACHMENT_CATEGORY_QUICKTIME] = 'quicktime'; // instead of the default "qt"
// $this->seo_static['file_index'] = 'my_files_virtual_dir'; // instead of the default "resources"
// ==> Suffixes <==
// Can be overridden, requires .htaccess update <=
// Example :
// $this->seo_ext['topic'] = '/'; // instead of the default ".html"
// ==> Forum redirect <==
// In case you are using forum id removing and need to edit some forum urls
// that where already indexed, you can keep track of them ritgh here
// NOTE :
// This will only allow the zero duplicate to perform the appropriate redirection
// You need the mod for this to work :
// http://www.phpbb-seo.com/en/zero-duplicate/phpbb-seo-zero-duplicate-t1220.html (en)
// http://www.phpbb-seo.com/fr/zero-duplicate/zero-duplicate-phpbb-seo-t1502.html (fr)
//
// Example :
//
// $this->forum_redirect = array(
// // 'old-url-without-id-nor-suffix' => forum_id,
// 'old-forum-url' => 23,
// 'another-one' => 32,
// 'anoter-version-of-the-same' => 32,
// );
//
// ==> Special for lazy French, others may delete this part
if ( strpos($config['default_lang'], 'fr') !== false ) {
$this->seo_static['user'] = 'membre';
$this->seo_static['group'] = 'groupe';
$this->seo_static['global_announce'] = 'annonces';
$this->seo_static['leaders'] = 'equipe';
$this->seo_static['atopic'] = 'sujets-actifs';
$this->seo_static['utopic'] = 'sans-reponses';
$this->seo_static['npost'] = 'nouveaux-messages';
$this->seo_static['urpost'] = 'non-lu';
$this->seo_static['file_index'] = 'ressources';
}
// <== Special for lazy French, others may delete this part
$this->url_replace = array(
'ś' => 's', 'ł' => 'l',
'ć' => 'c', 'ą' => 'a',
'ó' => 'o', 'ź' => 'z',
'ż' => 'z', 'ę' => 'e',
'Ń' => 'n', 'ń' => 'n',
'Ł' => 'l', 'Ą' => 'a',
'Ś' => 's', 'Ć' => 'c',
'Ż' => 'z', 'Ź' => 'z',
'Ó' => 'o', 'Ę' => 'e',
);
// Let's make sure that settings are consistent
$this->check_config();
}
// Here start the add-on methods
// --> Zero Duplicate
/**
* Custom HTTP 301 redirections.
* To kill duplicates
*/