Have edited and saved one. All smilies are inserted in database. It seems the happy place not large enough to hold 120 smilies. Anyway, its happy enough now.Weird, all mine show up.
Did you try editing and saving one? They should all be there then.
//find
.xenForoSkin span.mce_xenforo_code { background:url(@imagePath/xenforo/editor/code.png) no-repeat; }
//add after:
<xen:include template="editor_happyplace.css" />
//example:
.xenForoSkin span.mce_xenforo_media {background-position:-320px -20px}
.xenForoSkin span.mce_xenforo_quote {background-position:-220px 0}
.xenForoSkin span.mce_xenforo_code { background:url(@imagePath/xenforo/editor/code.png) no-repeat; }
<xen:include template="editor_happyplace.css" />
oh, it's big enough, see attachment. not sure what's wrong with yours though? I've got around 200 in there right now. Maybe something's a bit off or there's a conflict somewhere. Just sayin :0
View attachment 6937
Even more fun to use.Smilies are fun to collect
I do too.... have hundreds in folders on my pc.
Fatal error: Class 'XenForo_Captcha_Abstract' not found in /var/www/vhosts/domain.com/subdomains/xf/httpdocs/library/XenForo/ControllerPublic/Thread.php on line 420
/*
tinymce.create('tinymce.plugins.XenForoSmilies', {
{
return {
longname : 'XenForo Smilies',
author : '',
version : '1.0'
};
}
});
*/
I tried this edit and it did not do anything for me.Ok... to remove the smilie field from the editor you have to perform a file edit, being:
> js > tinymce > themes > xenforo > editor_template.js
Find and hide the following by wrapping PHP comments around it: /* code in here */
Code:tinymce.create('tinymce.plugins.XenForoSmilies', { addButtons : function (theme, tb) { var smilies = theme.settings.xenforo_smilies, controlManager = theme.editor.controlManager, editor = theme.editor, button, DOM = tinymce.DOM; if (typeof smilies === 'undefined' || smilies.length === 0 || smilies === {}) { return; } button = controlManager.createSplitButton('xenforo_smilies', { title : 'xenforo.smilies_desc', image : theme.settings.xenforo_smilies_menu_image, icons : false, onclick : function() { button.showMenu(); } }); button.onRenderMenu.add(function(menubutton, menu) { tinymce.each(smilies, function(smilie, smilieName) { menu.add({ title : '<img src="' + DOM.encode(smilie[1]) + '" /> ' + DOM.encode(smilie[0]), onclick : function() { editor.execCommand('mceInsertContent', false, '<img src="' + DOM.encode(smilie[1]) + '" alt="' + DOM.encode(smilieName) + '" class="smilie" data-smilie="yes" />' ); } }); }); // need this to run after the render has happend setTimeout(function() { var menuNode = DOM.get('menu_' + menu.id); if (menuNode) { $('.mceText[title]', menuNode).each(function() { $(this).attr('title', ''); }); } }, 50); }); tb.add(button); }, getInfo : function() { return { longname : 'XenForo Smilies', author : '', version : '1.0' }; } });
/*tinymce.create('tinymce.plugins.XenForoSmilies', {
addButtons : function (theme, tb)
{
var smilies = theme.settings.xenforo_smilies,
controlManager = theme.editor.controlManager,
editor = theme.editor,
button, DOM = tinymce.DOM;
if (typeof smilies === 'undefined' || smilies.length === 0 || smilies === {})
{
return;
}
button = controlManager.createSplitButton('xenforo_smilies', {
title : 'xenforo.smilies_desc',
image : theme.settings.xenforo_smilies_menu_image,
icons : false,
onclick : function() { button.showMenu(); }
});
button.onRenderMenu.add(function(menubutton, menu)
{
tinymce.each(smilies, function(smilie, smilieName)
{
menu.add({
title : '<img src="' + DOM.encode(smilie[1]) + '" /> ' + DOM.encode(smilie[0]),
onclick : function()
{
editor.execCommand('mceInsertContent', false,
'<img src="' + DOM.encode(smilie[1]) + '" alt="' + DOM.encode(smilieName) + '" class="smilie" data-smilie="yes" />'
);
}
});
});
// need this to run after the render has happend
setTimeout(function()
{
var menuNode = DOM.get('menu_' + menu.id);
if (menuNode)
{
$('.mceText[title]', menuNode).each(function()
{
$(this).attr('title', '');
});
}
}, 50);
});
tb.add(button);
},
getInfo : function()
{
return {
longname : 'XenForo Smilies',
author : '',
version : '1.0'
};
}
});*/
We use essential cookies to make this site work, and optional cookies to enhance your experience.