Load session, but do not show in user online

  • Thread starter Thread starter account8226
  • Start date Start date
A

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: .
 
Anyone ? I read files of code, I really don't find how to do it.
 
If its all members, can't you simply remove that section of the code, or do you want some members to show as online?

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 ?
 
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?
 
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?

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

Working like a charm :)(y) !

Thanks for the help :)
 
Top Bottom