Is it possible to add emoticons?
Asked by Evelin:

Hi,

Is there a safe and easy way to add emoticons to Confluence, ideally with character combinations? We would create traffic light symbols, for instance.  
[](https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-add-emoticons/qaq-p/217837?attachment-id=11915){#link_118b3f64e633a0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/36827/1/image2016-3-11%2011%3A38%3A1.png){#display_118b3f64e633a0_0}


Answers:
author: Steve Thornhill
body: I've had a try at added them into both a default confluence install and a theme plugin with no success so far. I think it may be to do with the "magic" numbers created for each of the images when the product is initially built. I'm going to keep trying to find a way to do it though :)


author: Evelin
body: Hi Kirstin, thanks a lot for the macro. I tried this, and it works very well.

Cheers


author: Evelin
body: Thanks for the link. When I scrolled through the comments I found Sarah's remark that it's not possible to add emoticons to the Confluence emoticon panel. Maybe we can use a custom macro to insert some small image but I have no idea how this is done.

comments: author: Kirstin Seidel-Gebert
body: In Confluence 4.x, a macro like this should do it:

```
## Macro title: TrafficLight## Macro has a body: No## Body processing: No macro body &lt;ac:image&gt;    &lt;ri:attachment ri:filename="&lt;insert here the filename of the image&gt;"&gt;        &lt;ri:page ri:content-title="&lt;insert here the name of the page the image is attached to&gt;" ri:space-key="&lt;insert here the name of the space the page resides in&gt;"/&gt;    &lt;/ri:attachment&gt;&lt;/ac:image&gt;
```

You can find more information on how to create a custom user macro here: <https://confluence.atlassian.com/display/DOC/Writing+User+Macros>.


author: Hsein Han Kew
body: @Kirstin Seidel-Gebert. Thanks for the code but unfortunately, it does not work with Confluence 5.7.1.

Does anyone has an example that will work with Confluence 5.7.1? Thanks.


author: Kirstin Seidel-Gebert
body: Hello Hsein,

we're still on Confluence 5.5, but it should work there.  
I don't know why I wrote "Confluence 4.x" in my comment. This is probably a typo and should have been 5.x.

What problems do you have?

Cheers,  
Kirstin


author: Hsein Han Kew
body: Hello Kirstin,

Many thanks for your feedback and sorry for my late reply.I have added the ## @noparams because Confluence is complaining that the macro does not have any metadata configured.

```
## Macro title: TrafficLight## Macro has a body: No## Body processing: No macro body ## @noparams&lt;ac:image&gt;    &lt;ri:attachment ri:filename="&lt;ConfIcon.PNG&gt;"&gt;        &lt;ri:page ri:content-title="&lt;Test&gt;" ri:space-key="&lt;SystemTest&gt;"/&gt;    &lt;/ri:attachment&gt;&lt;/ac:image&gt;
```

What I get is unknown attachment message as below.

image2016-3-11 11:38:1.png

Did I did anything wrong??

Many thanks,

Hsein


author: Kirstin Seidel-Gebert
body: Sorry Hsein,

I can't see the attachment. But what I can see from the code you posted is that you kept the arrow brackets in the code. Try:  
`<ac:image>`  
` ``<ri:attachment ri:filename=``"`**ConfIcon.PNG**`"``>`  
` ``<ri:page ri:content-title=``"`**Test**`"` `ri:space-key=``"`**SystemTest**`"``/>`  
` ``</ri:attachment>`  
`</ac:image>`

The arrow brackets where only to indicate that this content has to be replaced. :smile:

Are you sure that your space ++key++ is **SystemTest**? Or is this rather the name of the space?

Cheers,  
Kirstin


author: Hsein Han Kew
body: Hello Kristin,

Thanks to your useful hints and tips, it works perfectly now.

Sorry, my mistake.. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

Many thanks,

Hsein


author: Kirstin Seidel-Gebert
body: You're welcome, Hsein. :smile:


author: Steffen Heller
body: This [page](https://confluence.atlassian.com/display/DOC/Using+Symbols,+Emoticons+and+Special+Characters "page")explains how to insert the standard emoticons and what their character combinations are. Knowing how to extend that with your own custom emoticons would be interesting for me as well.

comments: author: Stefan C.
body: Using Symbols, Emoticons and Special Characters {#toc-hId-1848715849}
---------------------------------------------------------------------

Page Not Found