Advice needed on making my community "private"

discoian

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?
 
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
PHP:
public function responseNoPermission()
    {
        return $this->responseReroute('XenForo_ControllerPublic_Error', 'RegistrationRequired');
    }
 
Top Bottom