Forum Discussion
VarunGrazitti
11 years agoBoss
@Puljac - You can use the following snippet, you can make the changes as per your requirement.
<#attempt>
<#assign onlineStatus = rest("/users/id/${author.id}/sessions/online/latest")>
<#recover>
<#-- Cat. not there -->
</#attempt> <#assign isRegistered = onlineStatus.user_session.@null /> <#if (isRegistered?has_content) > <#assign registeredString = "Offline"/> <#assign registeredClass = "Offline" /> <#else> <#assign registeredString = "Online" /> <#assign registeredClass = "Online" /> </#if>
You can register for our Webinar on lithium, follow the link in the signature.
Related Content
- 5 years ago
- 2 years ago