Поле текст(добавить свитчер)

Больше
3 года 9 мес. назад #8711 от EURO SMART
Добрый день.
хотелось бы добавить свитчер для поля текст в фильтре(что бы если человек ошибся раскладкой то искало бы все равно как надо)
пример кода свитчера
function textswitch ($text)
{
   $str_search = array(
   "й","ц","у","к","е","н","г","ш","щ","з","х","ъ",
   "ф","ы","в","а","п","р","о","л","д","ж","э",
   "я","ч","с","м","и","т","ь","б","ю"
   );
   $str_replace = array(
   "q","w","e","r","t","y","u","i","o","p","[","]",
   "a","s","d","f","g","h","j","k","l",";","'",
   "z","x","c","v","b","n","m",",","."
   );
   return str_replace($str_replace, $str_search, $text);
}
вот только не понятно где его применить в вашем модуле

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Больше
3 года 9 мес. назад #8713 от EURO SMART
Проблема решена

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Работает на Kunena форум

Последнее с форума

    • virtual phone
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell...
    • в Component / JL TV
    • gothotnews
    • For cervical spondylosis, taking chinese medicinal drug orally can achieve normal inner and external treatment. If it is a symptom of blockage and ache, we will deal with the outside attack of wind,...
    • в Component / JL Mail
    • best seo company
    • One crisp autumn afternoon, while playing near the house, Emma noticed something shiny half-buried in the dirt. She dug it up and found an old, ornate key with intricate designs. Excited, she...
    • в Component / JL Mail
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.