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.
lifeguard

Twemoji

by lifeguard, Last updated on 3 months ago in Modifications and Requests - 9
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?
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:
Lead Developer of PHP-Fusion
Developer Tweet: https://twitter.com/phpfusion_tweet
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 / 27 Downloads]
PHP-Fusion Development Manager
Web Designer/Developer: GitHub
V9.03 already fully supports Emoji
PHP-Fusion Development Manager
Web Designer/Developer: GitHub
Will now be possible in next 8 version as well since we go with utf8mb4 overall. No point in mixing.
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Please read and comply with the Code of Conduct

(¯`·._.·(¯`°·._.·°º*[ Project Manager ]*º°·._.·°´¯)·._.·´¯)
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