Wildfire Presence Macro

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

  1. You need to install the Wildfire Presence Service on your Wildfire server. (readme)
  2. 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

Status Indicator jnolen

Labels

repository_excluded repository_excluded Delete
repository_excluded_by_user_macro repository_excluded_by_user_macro Delete
plugin plugin Delete
user user Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. 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:

    <a href="jabber:$body"><img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" border="0" align="absmiddle"></a> <a href="jabber:$body">$body</a>
    

    The "absmiddle" will align the image with the text in a more aesthetic manner

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

    <a href="jabber:$body"><img src="http://chat.example.com:9090/plugins/presence/status?jid=$body" border="0" align="absmiddle"/> $body</a>
    

    Also - don't forget to close the img tag to mainain XHTML compliance.

    1. 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"/>&nbsp;${body}</a>
      
      1. 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.

        1. 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...?

          1. Mar 29, 2006

            Alain Moran says:

            Yes, unsuprisingly IE thinks that &nbsp means 'word wrap here' ... happy hap...

            Yes, unsuprisingly IE thinks that &nbsp means 'word wrap here' ... happy happy joy joy!

            1. Mar 29, 2006

              Guy Fraser says:

              What CSS property did we use to fix it?

              What CSS property did we use to fix it?

          2. 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;}

      2. 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"/>&nbsp;${body}</a>
        
        1. 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>
          
    2. 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.

      1. 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:

        <span style="white-space:nowrap;"> ...rest of html here... </span>
        
  3. 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:

    {wildfire}dhardiker@chat.atlassian.com{wildfire}

    results in:

    Status Indicator dhardiker@chat.atlassian.com