User Status v1.0

Release Notes

User Status overlays status icons on profile images, giving an easy way to
identify online users, new users, and more.


        * Unzip the file to the elgg/mods/ directory.
        * Go to your Elgg tools administration section, find the new mod, and
          enable it.
        * Customize the settings if desired.

        * Enabling too many icons will start looking weird.  4 is about the max
          right now.

        * Concept based upon "Online Mark" plugin by Dirk Pelzer.


v1.0 (March 18, 2009)
        * Initial release.

  • Another Great plugin! Installed easily and works great!

  • i like this concept a lot.  While searching for new icons for this plugin, I had an idea ... (see link below) Being able to set  moods throughout the day using these icons as an inspiration.  They would lay over a profile photo, similar to this plugin.  Just a unretated thought. :)

  • @David, I like _that_ concept a lot ;)

    The way I've designed the icon displays this wouldn't be too difficult to implement.

    I'll look into doing that sometime soon...

  • Great job

    Is this option only available for people that are loged in, is there a way to make it public


  • It's public already....I could later add support for only logged in users, I suppose....

  • Your talent is shining through. ...Yes, I think support for only logged in would be good, but not required. Some users/site owners, however, think that this is more private information, that visitors (who knows who they could be or where they are from??) have no right to see whether or not their members are logged in.  ...Also, do you want your boss knowing your are logged into a site while at work?!  :-)  Just kidding.  :-)  :-P

  • Excuse me but where are the settings? I use the latest 1.5 version of Elgg and when enabling your plugin nothing happens. No icons, no settings.

  • Hi Brett,

    excellent work!

    As opposed to the online_mark plugin your plugin seems not to overwrite the userdetails.php, which many plugins do. So it seems to be save for further mod intallations without conflicts.

    I like to view the online status in real time. That means I don't like to see the status icon when the offline periode has not been exceeded but the user already logged off. So I did a little hack in the user_status\views\default\user_status\online.php:

    I replaced

    if (time() - $last_action < $timeout) {


    //get data of guid
    $options = get_data("select last_action, code from ".$CONFIG->dbprefix."users_entity WHERE guid=".$vars['entity']->guid);
    foreach ($options as $option)
       $code .=$option->code;

    if (!empty($code) AND time() - $last_action < $timeout) {



    HiTo81 aka Dirk Pelzer

  • @DragonX - The settings are in the standard place for plugins: in Administration / Tool Administration / user_status.  There will be no icons unless they are enabled through this page first.

    @HiTo81 - I'm not sure exactly what this code is meant to do.  It works to immediately expire people who have logged off for you?  $code would always be populated because you're concatting last_action and code from the users table and last_action should always return something unless it's a new user.  I ran a test on my copy and there were 25 out of 4000 users in which both code and last_action were empty.  This would be a very nice addition, but I'm not sure it's working as expected.  Could you point me to your inspiration for using the code field to check if someone has logged off?  Thanks for the input!

  • Maybe my last post was a little bit confusing. I'll try to explain with a cleaner command:

    get_data("select code from ".$CONFIG->dbprefix."users_entity WHERE guid=".$vars['entity']->guid);

    I tried (beside your check if user running out of time) to check if the code-field is empty or not. Because it seems that per user the field elggusers_entity.code is filled when user is logged in and empty when the user is logged off. Am I wrong?

  • @HiTo81 - Ok I see what's going on.  I mistakingly thought get_data() was returning an array of the row instead of an array of arrays of rows.  Nice touch--I'll add this to the next version ;)

  • @Brett  I have enabled the plugin like any other plugin. And there are NO plugin specific settings visible to me anywhere. So what is wrong?

  • @antifmradio - It should work anywhere below plugins that would modify the icons or CSS for the icons.  Put it at least below the profile plugin.

    @Draonx - If there are no plugin settings it sounds like the plugin is not installed correctly.  Please make sure that you have extracted the entire directory structure into your elgg/mod/ directory.

  • @Brett  That was the problem. I had to reinstall the plugin and then the settings link appeared. Thanx. Works perfectly! Great plugin!

  • @ Brett, This pluggin works great  like all your other pluggins.

    But there are some small problems, think its due to css. have a look


    • image
    • image(files)
    • image
    Could you fix it?
    Thank you :)
  • @Prem -- Please send me a link to your site.  I can't duplicate this on my copy and I need to be able to see exactly what CSS is causing he problem.

  • @ Brett, i tested it in my localhost only, My production Elgg site is not yet upgraded to 1.5. So i will get in touch with you after upgrading to 1.5. Thanks for your Support :)

  • I uploading the mod and enabled it.  But instead of graphics it just says "online" ?? what am I doing wrong? Thank you

  • @fantome2024 -- Make sure that the whole of the archive has been fully extracted.

  • i'm having the same problem as prem, i have elgg 1.5 installed and small online green dot is off. how can i fix it?

  • Just an update--I've tracked down why the images display incorrectly on the messages pages and am trying to clever up a solution...

  • Great brett, waiting for it.

  • One more suggestion, after the time out in minutes for online users, lets change the icon colour to yellow, or orange. That avoids confusion.

    are you planning to release a new version.

    Sorry for my bad english.


  • image

    Hi brett small bug with the status icons displayed in the latest activity ... any known fix ?


Elgg Core Developer


  • Category: Tools
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 5208
  • Recommendations: 3

Other Projects

View Brett's plugins