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

Advice needed on making my community "private"

discoian

Active member
#1
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?
 

Brogan

XenForo moderator
Staff member
#2
You can edit the phrase: login_required

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

ragtek

Guest
#3
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');
    }