• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Check whether the author is online

bloh

New Member
Showcase
Is it possible to check whether the author is online?
<xen:if is="{$item.user_id} IS ONLINE"> ?
 
No.

I do fetch user data (xf_user and xf_user_option) via joins to the item record, however its not a fully prepared user record (which would have session data in it IIRC). Im not sure if I can add a mini prepare method that would add that or not, I'd have to do some R&D by seeing what the prepareUser method is doing for that. I won't be adding the overhead of fully preparing the author record tho, the RM doesn't even do that and it is a core xf addon.
 
Back
Top