Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Hi, it me again ... sorry smile

is there an easy way to implement this https://github.com/twitter/twemoji ?
maybe by a plugin or something?

I see something to add javascript, but with my knowledge i can not make it so, that it works.
can somebody help me with this?

4 replies

echo '<script src="https://twemoji.maxcdn.com/2/twemoji.min.js"></script>';
echo '<script>twemoji.parse(document.body);</script>';

Chan attached the following image:
Insert these lines somewhere here https://github.com/php-fusion/PHP-Fus...t.php#L154

echo '<script src="https://twemoji.maxcdn.com/2/twemoji.min.js"></script>';
echo '<script>twemoji.parse(document.body);</script>';

But whole database must be in utf8mb4, because basic utf8 does not support emojis.

Convert whole DB to utf8mb4
ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;

If it does not work so every table needs to be converted separately
ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Before converting, make sure you have a DB backup!

// Edit: I wrote a simple script for that
RobiNN attached the following file:
convert_db_collation.zip [810Bytes / 50 Downloads]
V9.03 already fully supports Emoji
Will now be possible in next 8 version as well since we go with utf8mb4 overall. No point in mixing.
author lifeguard
forumModifications and Requests - 9
replies5 posts
viewed432 times
activeLast updated on 7 months ago


Started by lifeguard lifeguard - 5 posts
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, lifeguard, RobiNN