1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Load session, but do not show in user online

Discussion in 'XenForo Development Discussions' started by account8226, Jan 5, 2013.

  1. account8226

    account8226 Guest

    Hello,

    I would like to load the user's session on my add-on page (to make like usergroup checking).

    But I don't want to user to be in the online members list (like if he was invisible on this specific page only).

    Any idea ?

    Best regards :sick: .
     
  2. account8226

    account8226 Guest

    Anyone ? I read files of code, I really don't find how to do it.
     
  3. Slavik

    Slavik XenForo Moderator Staff Member

    If its all members, can't you simply remove that section of the code, or do you want some members to show as online?
     
  4. account8226

    account8226 Guest

    Hey, thanks for your awnser.

    I would like anyone who go on that page I made (with a new PAGE_CONTAINER, actually empty) no to appear online.

    In fact, I would like to do exactly as the admin.php from the XenForo core, admins that are in the admin panel are not online on the forum. Even if they are active on the panel, I would like do the same for my page o_O .

    What "section" of code are you talking about ?
     
  5. Slavik

    Slavik XenForo Moderator Staff Member

    Oh I get it.

    so for exmaple, if your homepage is www.domain.com

    Your custom script is at domain.com/mything

    If someone visits domain.com/mything they will not show online at domain.com?
     
  6. account8226

    account8226 Guest

    Exactly, and here is the awnser ! I found it after so many times !

    Here is the function I have to add in my public controller :
    PHP:
    public function updateSessionActivity($controllerResponse$controllerName$action) {}
    This was in ControllerAdmin/Abstract.php :
    6bedc6effc58e1adbb403cfeabecadf7.png

    Working like a charm :)(y) !

    Thanks for the help :)
     

Share This Page