Hi there,
this is my first plugin, hope you like it!
Description: This plugin marks users with a green "(online)" lable (in user details and when listing) if they're online.
Online means, user is logged in (detected by elggusers_entity.code) AND was active in a defined time.
Installation: Unzip and place in mod directory. Activate through Tools Administration. There are admin settings for the time in sec. in which the users have to be active.
Greetz,
Dirk
Changes v 0.2
{$CONFIG->dbprefix} added in SQL-query
View HiTo81's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Thank you.
It works great. Good work. :-)
Could you explain in more detail where I should see the label? I can't see anything...
Great, It's working fine.. I would suggest to add a blinking photo instead of text to this plugin would be great!
Thanks for the efforts
@Dahaniel - you should see it near to the profile photo on the right!
@Dahaniel.
I had the same problem until I just saved the settings in admin panel (online-mark settings)
is there the otopn to click on the online-user and chat with him just like in Facebook??
@Eitanb3 - Not yet. Someone is maybe working with it, no one knows. Else you could try :-)
Awesome plug-in! It works great! It would be nice to see a little online icon on top of the profile picture (or next to it) instead of text though. Pictures are always better than words. :)
Here... I figured it out. If you want to display an image instead of text, just change the line that says:
"<font color=\"green\"> (online) </font>"
to:
"<img class=\"user_mini_avatar\" border=\"0\" alt=\"online\" align=\"top\" height=\"16\" width=\"16\" src=\"" . $vars['url'] . "mod/online_mark/graphics/online_mark.gif\" />"
You will need to create a 32x32 image and save it under online_mark/graphics/online_mark.gif. You cann use mine if you'd like:
You can see this modified plug-in in action on my Elgg-powered site: http://oakpages.com.
Regards,
Gabriel Monge-Franco
Security+ Certified Professional
http://gabriel.mongefranco.com
Oh right... I forgot. :) That line is in online_mark\views\default\profile\listing.php and online_mark\views\default\profile\userdetails.php
Hi folks and thx for your comments!
@Gabriel thanks for the online pic.
I tried to work in your suggestions in the v 0.3. Let's have a look!