It would be great to be able to style the online status differently if the user is offline or online as most social networks do. Right now in the span it generates class="author-pane-online-status" for online or offline conditions. Perhaps rendering the offline status as class="author-pane-offline-status" would do the trick, or adding an additional class value of "author-online" or "author-offline".

If there is another easy way to do this without changing the module , please let me know.

Thanks for the great module

Comments

stg11’s picture

Status: Active » Closed (fixed)

Never mind! I fixed it in the template as follows:

      <div class="author-pane-line author-pane-online">
        <span class="author-pane-online-icon"><?php print $online_icon; ?></span>
        <?php if ($online_status == 'Online') { ?>
        <span class="author-pane-online-status"><?php print $online_status; ?></span>
        <?php } else {  ?>
        <span class="author-pane-offline-status"><?php print $online_status; ?></span>
        <?php } ?>
      </div>