1. 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

Discussion in 'Showcase Support' started by bloh, Jul 18, 2014.

  1. bloh

    bloh New Member Showcase

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

    Bob Developer Staff Member

    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.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.