I had problems with this plugin Version 2.0.4 and the Asgaros forum:
At first no smilies in the dropdown then only some smilies.
Solved by adding ‘relative’ to line 42 in tinymce-smiley-button.php
'src_url' => apply_filters('smilies_src', includes_url('images/smilies/', 'relative'), '', site_url())
Reference:
https://developer.www.ads-software.com/reference/functions/includes_url/
Second parameter $scheme in includes_url defaults to null
and you will get your site URL ie http/https …
and the ‘relative’ address will get: /wp-includes/images/smilies/
Site URL is probably bad because my development site has directory privacy active.
]]>Hi @cople,
Now that the plugin works with the admin and front end editors, it’s still missing one last place where it would be great to have your smiley button, the post comments.
Other plugins are doing it like Kama WP Smiles or Native Emoji.
Would you consider adding your button there also?
It would be perfect.
Thanks!
]]>Hi Cople,
Thanks for this useful plugin!
But it currently works well only with the build-in classic WordPress editor.
If we uses other classic editors, front end editors from plugins, your CSS is not loaded and as a result 1/ your button is not displayed and 2/ if we click on the blank space, the 22 smilies are displayed oversized.
So could you add the support to front end editors like the Asgaros forums one?
The fix was found by Yworld here…
https://www.asgaros.de/support/topic/tinymce-smiley-button-asgaros-forum/#postid-2753
You just need to update the tinymce-smiley-button.php file to set to load the CSS for “wp_enqueue_scripts” and not only for “admin_enqueue_scripts”.
Basically you can just replace…
function mce_smiley_css() {
wp_enqueue_style('smiley', plugins_url('/plugin.css', __FILE__));
}
add_action( 'admin_enqueue_scripts', 'mce_smiley_css' );
…by…
function mce_smiley_css_admin() {
wp_enqueue_style('smiley', plugins_url('/plugin.css', __FILE__));
}
add_action( 'admin_enqueue_scripts', 'mce_smiley_css_admin' );
function mce_smiley_css_front() {
wp_enqueue_style('smiley', plugins_url('/plugin.css', __FILE__));
}
add_action( 'wp_enqueue_scripts', 'mce_smiley_css_front' );
Note the 2 “_admin” added to your original code to make clear about the role of the 2 pieces of code and the code added specifically for the front end editors.
Your support would be greatly appreciated by users of many plugins! ??
P.S.: if you update the plugin, maybe you can credit Yworld in the Changelog. He should appreciate ??
]]>I have version 1.0.4. Does not work on WP 4.9.8
]]>Hi there,
thank you for your wonderful plugin, I have tried many plugins but your is so far the best.
I would like to ask you, I also installed the plugin called “TinyMCE Visual Editor Comment” to show a small editor in the comments for visitors. I would like to add there your smiley button as well.
I have tried to adjust the code in this plugin many ways but with no use. Is there any way how I could use some hook to add a smiley button to the TinyMCE editor in comments?
Thanks very much for help
Regards
Barbara
Hi,
first of all very helpful and easy to use plugin!
My question is if there’s any way to rearrange the order of the smilies in the visual dropdown list (in post editor after you press the smiley select).
It’s because I have a ton of emoticons installed in my wordpress, not just the standard ones. They all show up fine with this plugin, but in a seemingly random order. Would like to restructure their order in the smiley select.
If you tell me how to change order of the default smilies it’ll probably work the same way for my smilies.
I suppose I must change something in this plugin’s code or somewhere in wordpress code. Just can’t figure out what specific code to change.
Thanks guys!
]]>Now it is broken with v4.7.2. Popup stops pop.
]]>Hi,
Not working for me.
I get the following error when I try and click on the smiley icon.
plugin.js?wp-mce-4403-20160901:2 Uncaught ReferenceError: _smileySettings is not defined
at t.getHtml (plugin.js?wp-mce-4403-20160901:2)
at t.renderHtml (tinymce.min.js?ver=4403-20160901:9)
at t.renderHtml (tinymce.min.js?ver=4403-20160901:8)
at t.renderTo (tinymce.min.js?ver=4403-20160901:9)
at t.showPanel (tinymce.min.js?ver=4403-20160901:12)
at t.<anonymous> (tinymce.min.js?ver=4403-20160901:12)
at t.i [as fire] (tinymce.min.js?ver=4403-20160901:8)
at t.fire (tinymce.min.js?ver=4403-20160901:8)
at HTMLDivElement.t (tinymce.min.js?ver=4403-20160901:8)
at e (tinymce.min.js?ver=4403-20160901:2)
at HTMLDivElement.m (tinymce.min.js?ver=4403-20160901:2)
getHtml @ plugin.js?wp-mce-4403-20160901:2
renderHtml @ tinymce.min.js?ver=4403-20160901:9
(anonymous) @ tinymce.min.js?ver=4403-20160901:8
renderTo @ tinymce.min.js?ver=4403-20160901:9
showPanel @ tinymce.min.js?ver=4403-20160901:12
(anonymous) @ tinymce.min.js?ver=4403-20160901:12
i @ tinymce.min.js?ver=4403-20160901:8
fire @ tinymce.min.js?ver=4403-20160901:8
t @ tinymce.min.js?ver=4403-20160901:8
e @ tinymce.min.js?ver=4403-20160901:2
m @ tinymce.min.js?ver=4403-20160901:2
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4 XHR finished loading: POST “https://www.war59312.com/wp-admin/admin-ajax.php”.
send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4
ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4
j @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
(anonymous) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5 XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&f…%2Ctype%2Cunread%2Cbody%2Csubject%2Ctimestamp%2Cmeta%2Cnote_hash&number=10”.
send @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5
ajax @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5
receiveMessage @ (index):243
(anonymous) @ (index):249
dispatch @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:4
r.handle @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:4
??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5 XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&f…%2Ctype%2Cunread%2Cbody%2Csubject%2Ctimestamp%2Cmeta%2Cnote_hash&number=10”.
send @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5
ajax @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:5
receiveMessage @ (index):243
(anonymous) @ (index):249
dispatch @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:4
r.handle @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:4
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4 XHR finished loading: POST “https://www.war59312.com/wp-admin/admin-ajax.php”.
send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4
ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:4
j @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
k @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
m @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
(anonymous) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:5
dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:3
r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,qu…:3
Thanks,
Will
]]>hi there
i have a theme controlling the WordPress tinymce icons like (bold) will show bold icon
i try to use Emoticons but i confident
do you know to insert the Emoticons or call theme by script
Hi
I changed my emoticons with wordpress.com versions here:
https://github.com/iseulde/new-smileys
Now if I use your plugin, in the tooltip of the shortcode in editor, all emoticons have broken link.
Do you have any solution?
Thanks
]]>