apaunovski
Forum Replies Created
-
How about premium listings with extended features? Does the plugin allow payments?
Hello,
The listings do have locations.
Each listing has an address. The directory allows for the selection of listings by city.
Ah, you are talking about a PHP function.
I am talking about pure JavaScript running in the user’s browser, replacing characters.
This is the schema. ANSI database conversion schema
function transliterate(word){ var answer = ""; var a = {} a["Ё"]="YO";a["Й"]="I";a["Ц"]="TS";a["У"]="U";a["К"]="K";a["Е"]="E";a["Н"]="N";a["Г"]="G";a["Ш"]="SH";a["Щ"]="SCH";a["З"]="Z";a["Х"]="H";a["Ъ"]="'"; a["ё"]="yo";a["й"]="i";a["ц"]="ts";a["у"]="u";a["к"]="k";a["е"]="e";a["н"]="n";a["г"]="g";a["ш"]="sh";a["щ"]="sch";a["з"]="z";a["х"]="h";a["ъ"]="'"; a["Ф"]="F";a["Ы"]="I";a["В"]="V";a["А"]="a";a["П"]="P";a["Р"]="R";a["О"]="O";a["Л"]="L";a["Д"]="D";a["Ж"]="ZH";a["Э"]="E"; a["ф"]="f";a["ы"]="i";a["в"]="v";a["а"]="a";a["п"]="p";a["р"]="r";a["о"]="o";a["л"]="l";a["д"]="d";a["ж"]="zh";a["э"]="e"; a["Я"]="Ya";a["Ч"]="CH";a["С"]="S";a["М"]="M";a["И"]="I";a["Т"]="T";a["Ь"]="'";a["Б"]="B";a["Ю"]="YU"; a["я"]="ya";a["ч"]="ch";a["с"]="s";a["м"]="m";a["и"]="i";a["т"]="t";a["ь"]="'";a["б"]="b";a["ю"]="yu"; for (i = 0; i < word.length; ++i){ answer += a[word[i]] === undefined ? word[i] : a[word[i]]; } return answer; }
Pure character replacement taking place entirely in the user’s browser.
Depends on the code you put in the function. Without knowing which forms plugins you want your solution to work with we won’t be able to help you because we don’t know where the data is stored in the database.
Why would you ever work with the DB itself?
The point is that the JavaScript, which runs in the user’s browser, will intercept the <input> of the user BEFORE it enters the database. So, we shouldn’t care where the input goes once it has been transliterated by the browser prior to entering the DB.
The point is through the use of JavaScript, to transfer the overhead to the user. Otherwise, it doesn’t make sense.
Actually changing the encoding to ANSI or whatever is inadvisable.
Yes, I know that an ANSI database will have only 256 characters to work with…
That’s the point.
I learned that ANSI characters take probably 0.5 – 1 byte. And Unicode is a bit more complex, on the other hand.
Therefore, it makes sense to me to do the following:
1. Let the user enter Unicode on the Front-End.
2. onSubmit, a JavaScript transforms the User’s input to Romanized characters.
3. The input from above enters the database as Roman letters and symbols.When a user opens the website
1. WordPress pulls from the database the Romanized characters
2. JavaScript runs in the browser (I have it) and translates the Front-End of the site back to the native Unicode Alphabet script of my target users.My users know nothing about this. To them, the site functions normally, in their native tongue.
To me, the ANSI database is way faster and smaller and less resource-intensive.
I transfer basically the Unicode overhead to the users’ browsers through the use of Transliteration and JavaScript.
What do you think?
document.forms.all.onsubmit=function() { //Transliteration takes place };
Will this work?
Thank you.
I am looking for a universal solution… I wish I had a WordPress plugin, which could attach my Transliteration javaScript to any <TEXTAREA> fields on my website.
So, that when users submit the form containing the <TEXTAREA>, the script will transliterate the contents of the <TextArea> and only after this will the form be submitted and the romanized Unicode Alphabet characters will enter the database in place of the user’s original input made in Unicode Alphabet symbols.
Forum: Plugins
In reply to: [Essential Real Estate] Video not showingHi, I resolved most of the JavaScript errors and only one remains…
(index):806 Uncaught TypeError: $this.perfectScrollbar is not a function at setScroll ((index):806) at callback ((index):725) at S4._.p.Rg (places_impl.js:formatted:934) at places_impl.js:formatted:968 at places_impl.js:formatted:495 at Qn.e [as i] (places_impl.js:formatted:139) at Object.c [as _r6kg75] (common.js:66) at PlaceService.FindPlaces?1m6&1m2&1d-33.91333476420598&2d151.1391504475523&2m2&1d-33.82350323579403&2d151.24733955244756&2sbg-BG&6sschool&29e3&36m1&2e1&1032e0&callback=_xdc_._r6kg75&key=AIzaSyBHqfo4NaguaL3eaqgluY1nacf-Wk7tw04&token=79554:1
I think it’s connected with the Google Map integration of the plugin… I may be wrong, though.
What do you think?
It was mod_security messing it up…
Thank you.
Strange thing is if open an incognito window and go to https://ayurvedaprodukti.com/test/eysencks-personality-inventory-epi-extroversionintroversion/ I get no error initially…
When I try to solve the test, though I get an immdeiate error and then any page I vist on the site throws 403