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

add_to_footer("
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 / 43 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
viewed398 times
activeLast updated on 6 months ago

Related

Twemoji
Started by lifeguard lifeguard - 5 posts

Hot Questions

C
Share on Facebook
Catzenjaeger - 42 posts
daimonbok1
My 2 cents on 9's forums list
daimonbok1 - 18 posts
C
Bootstrap Logo
Catzenjaeger - 19 posts
afoster
PHP Code Help
afoster - 28 posts
jjwichter
I moved Avatar system to 9
jjwichter - 18 posts
C
Slideshow HTML 5 for PHP Fusion 9
Catzenjaeger - 9 posts
You can view all discussion threads in this forum.
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.
Users who participated in discussion: Falk, Chan, lifeguard, RobiNN