Moderator: Moderators
$this->seo_path['phpbb_script'] = $script_path; // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array( utf8_chr(286),utf8_chr(287), // g
utf8_chr(304),utf8_chr(305), // i
utf8_chr(350),utf8_chr(351), // s
);
$this->seo_opt['url_replace'] = array('g', 'g', 'i', 'i','s', 's'); $url = preg_replace('`\[.*\]`U','',$url); $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );
$this->seo_path['phpbb_script'] = $script_path; function format_url( $url, $type = 'topic' ) {
$url=utf2ascii($url);
$url = preg_replace("(\[.*\])U","",$url);
$find = array('"','&','<','>','\r\n','\n',);
$url = str_replace ($find, '-', $url);
$url = str_replace ('ß', 'ss', $url);
$url = str_replace (array('ö','Ö'), 'oe', $url);
$url = str_replace (array('ä','Ä'), 'ae', $url);
$url = str_replace (array('ü','Ü'), 'ue', $url);
$find = "ŔÁÂĂĹŕáâăĺŇÓÔŐŘňóôőřČÉĘËčéęëÇçĚÍÎĎěíîďŮÚŰůúű˙Ńń";
$replace = "aaaaaaaaaaooooooooooeeeeeeeecciiiiiiiiuuuuuuynn";
$url = strtr($url,$find,$replace);
$url = strtolower($url);
$url = ereg_replace("[^a-zA-Z0-9]", "-", $url);
$url = preg_replace("`([\-])+`", "\\1", $url);
$url = trim($url, '-');
$url = ( $url == "" ) ? $type : $url;
return $url;
}messal wrote:hello
i used premod RC7
and there isnt in phpbb_seo_class.php
- Code: Select all
$this->seo_path['phpbb_script'] = $script_path;

// --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(utf8_chr(268),utf8_chr(269), // c
utf8_chr(356),utf8_chr(357), // t
utf8_chr(270),utf8_chr(271), // d
utf8_chr(317),utf8_chr(318), // l
utf8_chr(327),utf8_chr(328), // n
utf8_chr(381),utf8_chr(382), // z
utf8_chr(282),utf8_chr(283), // e
utf8_chr(344),utf8_chr(345), // r
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r');http://www.tony-franks.co.uk/UTF-8.htmmessal wrote:There is for CZECH updated by ř and ě



// --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(utf8_chr(268),utf8_chr(269), // c
utf8_chr(356),utf8_chr(357), // t
utf8_chr(270),utf8_chr(271), // d
utf8_chr(317),utf8_chr(318), // l
utf8_chr(327),utf8_chr(328), // n
utf8_chr(381),utf8_chr(382), // z
utf8_chr(282),utf8_chr(283), // e
utf8_chr(344),utf8_chr(345), // r
utf8_chr(362),utf8_chr(363), // u
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r', 'u', 'u');
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 3 guests