Login  Register

Re: How to add/edit emoticons, i.e. smileys

Posted by Hugo <Nabble> on Dec 22, 2011; 4:17am
URL: https://support.nabble.com/How-to-add-edit-emoticons-i-e-smileys-tp7114253p7117514.html

The link that Greg posted is correct and should replace that old broken link. That CSS solution still works, but it is not ideal. There is a much better solution that I want to explain now.

Customizing the list of smileys


You should change the smiley_table macro. Here is the current path:

reply › new_post › new_post › reply_form › message_control › editor_toolbar › editor_smiley_button › smiley_table

You can use the macro search to go directly to that macro. At the beginning of that code you will see a comment that says:
        You can edit the table below if you want to customize the list of smileys.
        Use the 'smiley' command just like in the default cases, but you can print the
        full URL of your smileys in the 'src' attribute. Example:
        <n.smiley name="My Smiley" src="http://domain.com/image.gif"/>

So basically you can edit that table and provide full URLs in the src attribute. The javascript around this feature is prepared for that change, so it should just work. You can try that solution and let us know if you still have issues.