Info

Category: tools
Licence: GNU General Public License (GPL) version 2
Updated: 64 days ago
Downloaded: 1605

Releases

Latest: 1.0

Previous releases:
None

Images

More projects by Brett:

0

Recommendations

Summary:

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

Full description:

User Status

Gives status icons an overlay showing if they're currently online or new users.

Release notes:

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

**INSTALLATION**

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

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

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

**CHANGES**

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

Another Great plugin! Installed easily and works great!

The Father 366 days ago

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 Moon 366 days ago

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

Brett 366 days ago

Great job

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

thanks

ash 366 days ago

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

Brett 366 days ago

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

Ukr Programmer 365 days ago

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.

DragonX 365 days ago

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

with

//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) {

 

Greetz,

HiTo81 aka Dirk Pelzer

HiTo81 365 days ago

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

Brett 365 days ago

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 365 days ago

@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 365 days ago

any particular position this should be listed in whle ENABLED in the Admin Tools?

 

antifmradio 364 days ago

also when installed i see it says

Warning: This plugin does not specify a compatible Elgg version.

antifmradio 364 days ago

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

DragonX 364 days ago

@ Dragonx

look at the ADMIN TOOLS screen

 scroll down til you see the plugin in the list where you ENABLE/ DISABLE it

next to the plugin name you should see a link called SETTINGS

antifmradio 364 days ago

@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 364 days ago

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

DragonX 362 days ago

@ 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 354 days ago

@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 354 days ago

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

prem 351 days ago

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

fantome2024 351 days ago

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

Brett 350 days ago

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?

Cim @ Demyx.com 349 days ago

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

Brett 341 days ago