Advice needed on making my community "private"


Active member
I am looking to launch a completely private community in the next few weeks. I've pretty much got it all set up how I want it after almost 4 months of configuration, tweaks and so on.

I've basically turned off any sort of guest access but the problem is that if a guest tries to access my community it shows an "error" page "you need to be logged in to do that".

Is there any way I can make this error a little bit more friendly i.e. instead of error just show a different message and the login boxes?


XenForo moderator
Staff member
You can edit the phrase: login_required

Phrases support HTML so you can insert links to the login page, etc.


Do you mean the message "You do not have permission to view this page or perform this action."

I'm not sure if this would work, but you could try to overwrite XenForo_ControllerPublic_Abstract::responseNoPermission with the event system
public function responseNoPermission()
        return $this->responseReroute('XenForo_ControllerPublic_Error', 'RegistrationRequired');