• Hi ! First of all, thanks for your great plugin.
    I have an issue with additionnal datafield (simple text and multiples lines text) : when we used emoji/emoticons, we have no field. We only have the upload file.
    It would be great if you can fix this issue.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, where do you put emoticons?

    Regards

    Nickolas

    Thread Starter nawashtokyo

    (@nawashtokyo)

    I made additionnal fields (simple line text for example) and for all fill with emoticons, i don’t receive message/answer if someone send me a message with an emoticon.

    Thanks

    Plugin Author nickboss

    (@nickboss)

    It seems that MySQL default character set cannot handle emoji characters.

    Here is a quick fix that will convert emojis into text representations:

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/emoji.min.js"></script>
    <script type="text/javascript">
    if(window.addEventListener) { window.addEventListener("load", wfu_tweak_emojis, false); }
    else if(window.attachEvent) { window.attachEvent("onload", wfu_tweak_emojis); }
    else { window["onload"] = wfu_tweak_emojis; }
    function wfu_tweak_emojis() {
    	var props = GlobalData.WFU[1].userdata.props;
    	for (var i = 0; i < props.length; i++) {
    		props[i].store = new Function('var value = GlobalData.WFU[1].userdata.codes[' + i + '].value(); var emoji = new EmojiConvertor(); emoji.colons_mode = true; value = emoji.replace_unified(value); document.getElementById("hiddeninput_1_userdata_" + ' + i + ').value = value;');
    	}
    }
    </script>

    Put the script inside the page where you have the plugin.

    Nickolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additionnal datafield issue’ is closed to new replies.