hove am i doing this wrong
trying to show if user is online from owner_block
have been playing with this for hours now and still can't get it to show result for other users
p.s. sorry for my bad english
$user_online = get_user($guid);
if($user_online->last_action > time() - 300) {
$body = "<div class=\"status status-online\"></div>";
} else {
$body = "<div class=\"status status-offline\"></div>";
}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.
- ezisLV@ezisLV

ezisLV - 0 likes
You must log in to post replies.ok so i was wrong of being wrong
code works but only inside of profile
but why ?