У меня стоит версия IPB 3.1.4 ENG (IPS), как на этой версии нужно сделать транслит русских ссылок вида: http://my_domain.ru/talk/index.php?/forum/7-корзина/ Добавлял в admin/sources/base/core.php После: static public function seoClean( $text )
{
$text = str_replace( " ", "-", $text );
/* Ensure we don't have /_/ anywhere in the URL */
$text = str_replace( "_", "-", $text );
$text = utf8_encode( $text );
return $text;
} Это: static public function transliterate( $text )
{
return str_replace( array('а','б','в','г','д','е','ё','ж','з','и','й','к','л','м','н','о','п','р','с','т','у','ф','х','ц','ч','ш','щ','э','ю','я','ы','ь','ъ'), array('a','b','v','g','d','e','e','zh','z','i','i','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sh','a','ju','ja','i','',''), $text);
}
static public function makeSeoTransliterate( $text )
{
if ( IPB_USE_SEO_TRANSLIT )
{
$text = urldecode($text);
$text = self::transliterate( $text );
$text = preg_replace('#[^a-z0-9-]#', '', $text);
$text = urlencode($text);
}
return $text;
} И в initdata.php добавил следующие: /**
* Making FURL Transliteration for russian forums
* @since 3.0.0.ru
*/
define( 'IPB_USE_SEO_TRANSLIT', TRUE );
define( 'IPB_USE_ONLY_ID_FURL', FALSE ); Кеш ЧПУ обновлял, но всё стало на русском, а хотелось бы транслейт... Заранее благодарен.