Support Forum
Hi!
Please, add in file sf-slugs.php default WP filter “sanitize_title”
Then in the topic, forums etc, will be able to create pretty-permalinks in languages other than English
{
$title = apply_filters('sanitize_title',$title); // unodj added
$title = sf_check_slug_unique($title, $type);
return $title;
}
“Є”=>”YE”,”І”=>”I”,”Ѓ”=>”G”,”і”=>”i”,”№”=>”#”,”є”=>”ye”,”ѓ”=>”g”,
“А”=>”A”,”Б”=>”B”,”В”=>”V”,”Г”=>”G”,”Д”=>”D”,
“Е”=>”E”,”Ё”=>”YO”,”Ж”=>”ZH”,
“З”=>”Z”,”И”=>”I”,”Й”=>”J”,”К”=>”K”,”Л”=>”L”,
“М”=>”M”,”Н”=>”N”,”О”=>”O”,”П”=>”P”,”Р”=>”R”,
“С”=>”S”,”Т”=>”T”,”У”=>”U”,”Ф”=>”F”,”Х”=>”X”,
“Ц”=>”C”,”Ч”=>”CH”,”Ш”=>”SH”,”Щ”=>”SHH”,”Ъ”=>”'”,
“Ы”=>”Y”,”Ь”=>”",”Э”=>”E”,”Ю”=>”YU”,”Я”=>”YA”,
“а”=>”a”,”б”=>”b”,”в”=>”v”,”г”=>”g”,”д”=>”d”,
“е”=>”e”,”ё”=>”yo”,”ж”=>”zh”,
“з”=>”z”,”и”=>”i”,”й”=>”j”,”к”=>”k”,”л”=>”l”,
“м”=>”m”,”н”=>”n”,”о”=>”o”,”п”=>”p”,”р”=>”r”,
“с”=>”s”,”т”=>”t”,”у”=>”u”,”ф”=>”f”,”х”=>”x”,
“ц”=>”c”,”ч”=>”ch”,”ш”=>”sh”,”щ”=>”shh”,”ъ”=>”",
“ы”=>”y”,”ь”=>”",”э”=>”e”,”ю”=>”yu”,”я”=>”ya”,”«”=>”",”»”=>”",”—”=>”-”
);
since we are talking about changes that relate to other languages,
want to add about a file sf-postsupport.php
there is a lines
$htmlmsg .= '< p style=" f o nt-f am ily:Arial;padding:0 5px;">< a href="'.$newpost['url'].'">' . sprintf(__('Post: %s', "sforum"), '< /a ></ p >< div style="padding:2px 5px;">'.utf8_encode($post_content) ) . "</ div >";
and
$emessage .= sprintf(__('Post: %s', "sforum"), "\\r\\n" . utf8_encode($post_content) ).$eol.$eol;
function utf8_encode() breaks russian letters in the letters that are sent to subscribers
I changed them to:
$htmlmsg .= '< p style=" f o nt-family:Arial;padding:0 5px;"><a href="'.$newpost['url'].'">' . sprintf(__('Post: %s', "sforum"), '</a></p>< div style="p adding:2px 5px;">'.$post_content ) . "</ div >";
and
$emessage .= sprintf(__('Post: %s', "sforum"), "\\r\\n" . $post_content ).$eol.$eol;
because WP gives a strings in utf-8 and there is no meaning to convert from utf-8 encoding to utf-8 encoding
1 Guest(s)