• 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

A

account8226

Guest
#1
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: .
 
A

account8226

Guest
#4
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 ?
 

Slavik

XenForo moderator
Staff member
#5
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?
 
A

account8226

Guest
#6
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.png

Working like a charm :)(y) !

Thanks for the help :)