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

More
3 years 3 months ago #8711 by 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);
}
вот только не понятно где его применить в вашем модуле

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #8713 by EURO SMART
Проблема решена

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • Emeriosoft UAE
    • Do you want to turn your digital ambitions into reality? Emeriosoft UAE is the premier <!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}--> that can make it happen. We are providing email marketing services in UAE  ,SEO, social media marketing, content creation, and PPC campaigns, offering tailored solutions that elevate your brand's online presence. Our team of experts uses the latest technology and data-driven strategies to drive engagement, increase conversions, and boost visibility. With Emeriosoft UAE, transform your digital marketing efforts into a powerful engine for growth and success.
    • In WordPress / Plugins WordPress
    • webitsallaboutblogs
    • One of the types of inexperienced papaya salad, which is blended with raw crab marinated in fermented fish sauce, has been popular in many nations in Southeast Asia. Whilst Ah Shen changed into pretty advocated with the aid of a Thai friend, he put it into his mouth for the primary time and without delay vomited on his new shoes. It changed into extremely unforgettable. However, many Thais say that green papaya salad does not count number as ingesting inexperienced papaya salad without liberating crabs. It feels a bit like foreigners who do no longer understand the scrumptious taste of Hong Kong pungent tofu, or maybe durian. Absolutely everyone has one-of-a-kind tastes. Friends who're interested may additionally want to come back to Thailand to strive it.
    • In Component / JL TV
© 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: This email address is being protected from spambots. You need JavaScript enabled to view it.