pequeno Posted May 8, 2018 Share Posted May 8, 2018 In invisionpower forum, the "Emoticons" category it is in first position but in my forum (IPS 4.3.1) is in last position (after "Flags"). How to move this category to the first position? Thanks. Link to comment Share on other sites More sharing options...
kodif Posted May 9, 2018 Share Posted May 9, 2018 Good question. Does anyone know the answer? Link to comment Share on other sites More sharing options...
JohnDar Posted May 12, 2018 Share Posted May 12, 2018 This is being requested on my site too. Link to comment Share on other sites More sharing options...
IDG Posted May 15, 2018 Share Posted May 15, 2018 Same here, our users just asked for this! Link to comment Share on other sites More sharing options...
pequeno Posted May 26, 2018 Author Share Posted May 26, 2018 Does anyone know how to do it? Link to comment Share on other sites More sharing options...
BomAle Posted May 26, 2018 Share Posted May 26, 2018 try to add this into includeJS template <script type="text/javascript"> ;( function($, _, undefined){ "use strict"; ips.controller.mixin('custom', 'core.global.editor.emoticons', true, function () { this.around('_buildEmoji',function (fn, emoji, tone, search) { var reOrderEmoji = {}; _.each(Object.keys(emoji).sort(function(a) { if(emoji[a].length && emoji[a][0]['code'].startsWith('custom-') ){ return 0; } return 1; }),function(k) { reOrderEmoji[k] = emoji[k]; }); return fn(reOrderEmoji,tone,search); }); }); }(jQuery, _)); </script> Tested but if anyone have issue inform us Link to comment Share on other sites More sharing options...
pequeno Posted May 29, 2018 Author Share Posted May 29, 2018 Sorry, but doesn’t work. On 5/26/2018 at 7:56 PM, BomAle said: try to add this into includeJS template <script type="text/javascript"> ;( function($, _, undefined){ "use strict"; ips.controller.mixin('custom', 'core.global.editor.emoticons', true, function () { this.around('_buildEmoji',function (fn, emoji, tone, search) { var reOrderEmoji = {}; _.each(Object.keys(emoji).sort(function(a) { if(emoji[a].length && emoji[a][0]['code'].startsWith('custom-') ){ return 0; } return 1; }),function(k) { reOrderEmoji[k] = emoji[k]; }); return fn(reOrderEmoji,tone,search); }); }); }(jQuery, _)); </script> Tested but if anyone have issue inform us Link to comment Share on other sites More sharing options...
BomAle Posted June 4, 2018 Share Posted June 4, 2018 I see a strange behaviour... when code try to read "emoji" object it will reorder badly the keys... I think this is a bug but before annouce it mention staff @Daniel F @bfarber @Rikki Link to comment Share on other sites More sharing options...
The Old Man Posted June 4, 2018 Share Posted June 4, 2018 Does anyone find that the custom emoticons that appear at the top of the selector list seem to be randomly set or change after you create a new group or reorder your custom emoticons? I created a new category called Creatures and it appears at the top of the selector box, even though in AdminCP its halfway down the page of categories. Is this what you are referring to? Link to comment Share on other sites More sharing options...
DSystem Posted June 4, 2018 Share Posted June 4, 2018 On 5/29/2018 at 6:39 PM, pequeno said: Desculpe, mas não funciona. It worked perfectly here .... Link to comment Share on other sites More sharing options...
SRFA Posted August 26, 2018 Share Posted August 26, 2018 On 6/4/2018 at 2:38 PM, The Old Man said: Does anyone find that the custom emoticons that appear at the top of the selector list seem to be randomly set or change after you create a new group or reorder your custom emoticons? I created a new category called Creatures and it appears at the top of the selector box, even though in AdminCP its halfway down the page of categories. I have exactly the same problem! I don't use emojis (my database is not yet converted to utf8mb4), I only have various categories of custom emojis. I checked the emo_set_position column in core_emoticons table of my database, and the values are totally in line with the category order as displayed in the ACP. However on the site (when loading emoticons from the selector list in editor), it is all randomly messed up. I'll let you know if I find a workaround. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.