Is it possible to add emoticons?

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.

4 answers

1 accepted

This widget could not be displayed.

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 :)

This widget could not be displayed.

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.

In Confluence 4.x, a macro like this should do it:

## Macro title: TrafficLight
## Macro has a body: No
## Body processing: No macro body 

<ac:image>
    <ri:attachment ri:filename="<insert here the filename of the image>">
        <ri:page ri:content-title="<insert here the name of the page the image is attached to>" ri:space-key="<insert here the name of the space the page resides in>"/>
    </ri:attachment>
</ac:image>

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

@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.

 

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

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
<ac:image>
    <ri:attachment ri:filename="<ConfIcon.PNG>">
        <ri:page ri:content-title="<Test>" ri:space-key="<SystemTest>"/>
    </ri:attachment>
</ac:image>

 

What I get is unknown attachment message as below.

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

Did I did anything wrong??

Many thanks,

Hsein

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

Hello Kristin,

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

Sorry, my mistake.. sad

Many thanks,

Hsein

You're welcome, Hsein. smile

This widget could not be displayed.

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

Cheers

This widget could not be displayed.

This 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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

477 views 6 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you