Menu
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Advertise
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Forums
Cannabis Cafe
Toke N Talk
New and Improved TnT Foodie thread
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Members who reacted to message #4206
All
(11)
Like
(7)
Love
(4)
Dec 22, 2022
farmerfischer
Well-Known Member
·
From
mars pluto Saturn
Messages
8,141
Reaction score
19,521
Points
388
Dec 22, 2022
BarnBuster
Virtually Unknown Member
Messages
17,371
Reaction score
56,175
Points
388
Dec 22, 2022
Nutty sKunK
Well-Known Member
Messages
5,154
Reaction score
8,339
Points
388
Dec 21, 2022
curious2garden
Well-Known Mod
·
From
SoCal
Messages
47,356
Reaction score
218,419
Points
388
Dec 21, 2022
Metasynth
Well-Known Member
·
From
Atop a mountain of dix
Messages
17,266
Reaction score
44,388
Points
388
Dec 21, 2022
ISK
Well-Known Member
Messages
4,424
Reaction score
9,118
Points
338
Dec 21, 2022
lokie
Well-Known Member
·
From
the great state of CONFUSION.
Messages
12,454
Reaction score
61,250
Points
388
Dec 21, 2022
DarkWeb
Well-Known Member
Messages
23,478
Reaction score
128,858
Points
388
Dec 21, 2022
BobBitchen
Well-Known Member
·
From
In da garden
Messages
7,918
Reaction score
45,419
Points
388
Dec 21, 2022
xtsho
Well-Known Member
Messages
26,125
Reaction score
65,284
Points
388
Dec 21, 2022
raratt
Well-Known Member
·
66
·
From
NorCal
Messages
26,826
Reaction score
169,327
Points
388
Loading…
Loading…
Forums
Cannabis Cafe
Toke N Talk
New and Improved TnT Foodie thread
Top
// Add this to your XenForo extra.js template or include in a separate JS file // 1. Basic Twemoji Implementation $(document).ready(function() { // Load Twemoji library $.getScript("https://unpkg.com/twemoji@14.0.2/dist/twemoji.min.js", function() { // Function to replace native emojis with Twemoji function replaceTwemoji() { // Parse the DOM to replace emojis twemoji.parse(document.body, { folder: 'svg', ext: '.svg', callback: function(icon, options) { // Exclude certain characters if needed switch (icon) { case 'a9': // © copyright case 'ae': // ® registered trademark case '2122': // ™ trademark return false; } return ''.concat(options.base, options.folder, '/', icon, options.ext); } }); } // Initial replacement replaceTwemoji(); // Watch for new content (like when loading new posts) $(document).on('xf:layout', function() { replaceTwemoji(); }); // 2. Modify the XenForo emoji picker to use Twemoji if (XF.EmojiCompleter) { // Override the default emoji completer XF.EmojiCompleter = XF.extend(XF.EmojiCompleter, { insertEmoji: function(shortname) { // Call the original method to insert the emoji this.__super(shortname); // After insertion, replace with Twemoji setTimeout(function() { replaceTwemoji(); }, 10); } }); // Replace emojis in the picker $(document).on('shown.bs.dropdown', '.js-emojiContainer', function() { setTimeout(function() { twemoji.parse(document.querySelector('.js-emojiContainer'), { folder: 'svg', ext: '.svg' }); }, 50); }); } }); }); // 3. Add CSS for proper emoji display $(document).ready(function() { // Add CSS for emoji styling $("