| Note This macro has been superceeded by the Confluence IM Presence Plugin. |
Description
If you're using Jive Software's Wildfire Server, you display each Wildfire user's presence information inside Confluence.
Installation
- You need to install the Wildfire Presence Service on your Wildfire server. (readme)
- An administrator can then create a user macro on Confluence like this:
| Name | wildfire |
| Macro Has Body | yes |
| Template | <a href="jabber:$body" title="Online status for ${body}" style="white-space:nowrap;"> <img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" align="absmiddle" title="Status Indicator" alt="Status Indicator"/></a> <a href="jabber:$body" title="Online status for ${body}" style="white-space:nowrap;">${body}</a> |
Usage
Use the macro as follows:
{wildfire}jnolen{wildfire}
results in

Comments (13)
Mar 29, 2006
Guy Fraser says:
It would look nicer with this macro: <a href="jabber:$body"><img src=...It would look nicer with this macro:
The "absmiddle" will align the image with the text in a more aesthetic manner
Mar 29, 2006
Dan Hardiker says:
Any reason why there are two links? Why not just have it read (including Guy's p...Any reason why there are two links? Why not just have it read (including Guy's patch):
Also - don't forget to close the img tag to mainain XHTML compliance.
Mar 29, 2006
Guy Fraser says:
I seem to remember that linked images in Confluence don't have borders by defaul...I seem to remember that linked images in Confluence don't have borders by default so you might even be able to remove the border="0" from the image tag?
Also, for additional goodness, add a non-breaking space between the image tag and the body and also add a peppering of alt and title attrs for increased accessibility...
<a href="jabber:$body" title="Online status for ${body}"><img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" align="absmiddle" title="Status Indicator" alt="Status Indicator"/> ${body}</a>Mar 29, 2006
Dan Hardiker says:
Instead of a nonbreaking space, the standard way to do it now is through a CSS s...Instead of a nonbreaking space, the standard way to do it now is through a CSS style to prevent text wrapping, placed on the anchor tag.
Mar 29, 2006
Guy Fraser says:
Hmmm... Yes, I seem to remember that Alain found that certain browsers saw a non...Hmmm... Yes, I seem to remember that Alain found that certain browsers saw a non-breaking space as a great place to word wrap - Alain...?
Mar 29, 2006
Alain Moran says:
Yes, unsuprisingly IE thinks that   means 'word wrap here' ... happy hap...Yes, unsuprisingly IE thinks that   means 'word wrap here' ... happy happy joy joy!
Mar 29, 2006
Guy Fraser says:
What CSS property did we use to fix it?What CSS property did we use to fix it?
Mar 29, 2006
Alain Moran says:
we worked around the problem using the following: {span:style=white-space:nowrap...we worked around the problem using the following: {span:style=white-space:nowrap;}
Mar 29, 2006
Guy Fraser says:
Latest version, based on Al's note further in to the comments: <a href="jab...Latest version, based on Al's note further in to the comments:
<a href="jabber:$body" title="Online status for ${body}" style="white-space:nowrap;"><img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" align="absmiddle" title="Status Indicator" alt="Status Indicator"/> ${body}</a>Mar 29, 2006
Guy Fraser says:
Which of course means no nbsp is needed: <a href="jabber:$body" title="Onli...Which of course means no nbsp is needed:
<a href="jabber:$body" title="Online status for ${body}" style="white-space:nowrap;"><img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" align="absmiddle" title="Status Indicator" alt="Status Indicator"/> ${body}</a>Mar 30, 2006
Jonathan Nolen says:
Two links because safari at least has the annoying habit of underlining the empt...Two links because safari at least has the annoying habit of underlining the empty space between the image and the word. Looks awful.
Thanks for all the tweaks, guys.
Mar 30, 2006
Guy Fraser says:
Ah, I guess the border="0" is needed on the image As for the issue of the text...Ah, I guess the border="0" is needed on the image
As for the issue of the text wrapping, leaving the image at the end of one line and the text at the start of the next, would it be worth doing something like:
Mar 29, 2006
Dan Hardiker says:
If you are using this macro on here, you must place @chat.atlassian.com after yo...If you are using this macro on here, you must place @chat.atlassian.com after your username:
results in: