Private Site

XF2 Addons Private Site 1.1.0
The easy way to hide everything is to simply deny "View" permission to Unregistered members

Compatible versions
2.1, 2.2
For a private site where no forum content is visible to guests, the easy way to hide everything is to simply deny "View" permission to Unregistered / Unconfirmed users.

However, the end result is a little messy as guest visitors get presented by an unhelpful error message "You must be logged-in to do that" and a login form, and the page returns a 403 (Forbidden) error.

This simple addon provides an alternative approach with a cleaner and more elegant outcome.

The following UI changes are made by installing this addon:
  • a customisable message is displayed to guests below the site title
  • hides the "New posts" button for guests and anyone without a valid user_state
  • hides the "What's new" link from the header on mobile devices for guests and anyone without a valid user_state
Hides "new posts" button:

Hides "What's new" header link on mobile:

Displays a customisable message to guests below the site title:

There are a few other customisations that should be made to clean up a private site to make this addon work as expected - a tutorial has been provided describing the steps required to obtain the optimal outcome for guests viewing a private site:

Configuration steps:

1. change user permissions

To use this addon, you must change your user permissions to allow Unregistered / Unconfirmed users access to view the site (but not the content).

As per the tutorial (see step 4) - use Quick set to set all permissions to "Never" for Unregistered / Uncofirmed users:


Then set the "View" permission to "Yes" so they can see the site (but no content).


Now guests can see the forum home, but no content.

2. install this addon

3. customise (or remove) guest message in options

4. tidy up navigation and widget display for guests

Follow instruction in the tutorial.

End result:

The end result of installing this addon and following the tutorial steps is a nice clean interface for guests visiting a private site:

  • Like (+1)
Reactions: JohnSpartan
Author FateKid
5,910 pts
1.1.0 Version
0.00 star(s) 0 ratings Average Rating (0)

More files from FateKid

Customize Your XenForo 2 Community

Private Site provides ultimate customization to your XenForo 2 community website! Enjoy powerful features that make your site stand out. Combine this add-on with XenForo 2 styles from our site and kickstart your online community now.

Why Download Our XenForo 2 Add-ons?

  • Easily enhance the quality of your XenForo online community.
  • Expand your XenForo 2 functionality with thousands of unique options.
  • Create unbelieveable user-experiences with advanced features.

Explore Other Resources

Are you looking for something different? Explore our thousands of unique and special XenForo 2 add-ons, available to download right now. FateKid shared this wonderful resource to you for free, so remember to share your appreciation by liking the resource and reviewing it.

Get started today and make your next project truly unique.

Top Bottom