Jestem tutaj nowy ale mam nadzieje ze znajdzie sie ktos kto poswieci chwile i udzieli mi malej pomocy.
Zainstalowalem Advanced phpbb3 SEO MOD REWRITE. Wszystko chodzi znakomicie.
Wiadomym jest iż ten skrypt ma problem z polskimi znakami.
w pliku phpbb_seo_class.php zastąpiłem funkcje:
Kod: Zaznacz cały
function format_url( $url, $type = 'topic' ) {
$url = preg_replace('`\[.*\]`U’,”,$url);
$url = htmlentities($url, ENT_COMPAT, $this->encoding);
$url = preg_replace( ‘`&([a-z]+)(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i’, “\\1″, $url );
$url = preg_replace( $this->seo_opt['url_pattern'] , ‘-’, $url);
$url = strtolower(trim($url, ‘-’));
return empty($url) ? $type : $url;
}
Kod: Zaznacz cały
function format_url( $url, $type = 'topic' ) {
$url = preg_replace('`\[.*\]`U','',$url);
$url = htmlentities($url, ENT_COMPAT, $this->encoding);
$url = str_replace( array(utf8_chr(260), utf8_chr(261)),'a', $url );
$url = str_replace( array(utf8_chr(262), utf8_chr(263)),'c', $url );
$url = str_replace( array(utf8_chr(280), utf8_chr(281)),'e', $url );
$url = str_replace( array(utf8_chr(321), utf8_chr(322)),'l', $url );
$url = str_replace( array(utf8_chr(323), utf8_chr(324)),'n', $url );
$url = str_replace( array(utf8_chr(346), utf8_chr(347)),'s', $url );
$url = str_replace( array(utf8_chr(377), utf8_chr(378)),'z', $url );
$url = str_replace( array(utf8_chr(379), utf8_chr(380)),'z', $url );
$url = preg_replace('`&([a-z]+)(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i', "\\1", $url );
$url = preg_replace( $this->seo_opt['url_pattern'] , '-', $url);
$url = strtolower(trim($url, '-'));
return empty($url) ? $type : $url;
}
Na mojej stronie http://forumbezcenzury.pl mozna zobaczyc ze to faktycznie nie dziala a przeciez funkcja jest odpowiednia.
Dziekuje i licze na pomoc!
Pozdrawiam