$profile = XN_Profile::current();
$IsOnline = $profile->__get('presence');
if (strtolower($IsOnline) == "online")
$IsOnline = true;
else
$IsOnline = false;
Tags:
Views: 1
class XG_PresenceHelper {
/**
* Returns whether to show the presence indicator for the given profile.
*
* @param XN_Profile The user's profile
* @return boolean Whether permission is granted
*/
public static function canShowPresenceIndicator($profile) {
return $profile->screenName == XN_Profile::current()->screenName || $profile->presence == 'online';
}
}
© 2026 Created by Ning Developer Admin.
Powered by