Private Site

Private Site 1.2.0

No permission to download
I've done them (steps 6-7) :(
And it is hidden for the guests. I found this post

Could this be an issue that users are in fact registered and this is why I see such behavior? Do you see such behavior on your private sites or it is only me?

Ahh yes - you might want to add && $xf.visitor.user_state == 'valid' to the display criteria for menu items and widgets to hide them from users who are not in the valid state.

Note that this will also hide these elements for users from members whose email has bounced or who are waiting for email confirmation after changing their email address.

I've updated the addon to hide the What's New and New Posts buttons from members without a valid user_state and updated the instructions in the tutorial to include the user_state check for various menu items and widgets.

Thanks for bringing this to my attention @xTriz - this is an improvement to the addon and tutorial and I've implemented it on my own sites.
 
Note that this will also hide these elements for users from members whose email has bounced or who are waiting for email confirmation after changing their email address.
Great, exactly what is needed. Thank you so much :)
Updated my forum as well, looks awesome :)

P.S: Small thing that I'm not sure could be a part of this add-on, but anyway I'll describe and you'll decide :) :
If the guest clicks on a link to a post that is hidden, assuming they found it somewhere on the Internet, the 403 will be shown with the Registration form. Could this be auto-routed to the main page with the nice home-page message for guests?
 
Last edited:
This addon may be the preference of some forum administrators, but hiding the content from visitors also means hiding the content from search engines.
 
This addon may be the preference of some forum administrators, but hiding the content from visitors also means hiding the content from search engines.
If it is a private forum for a specific group and not open to the general public (say, a corporate support forum for customers only or something), then hiding the content from visitors and search engines is a legitimate goal. Even on my site, I hide a few specific nodes from non-registered, but they are ones we don't need or want indexed anyhow.
 
If it is a private forum for a specific group and not open to the general public (say, a corporate support forum for customers only or something), then hiding the content from visitors and search engines is a legitimate goal. Even on my site, I hide a few specific nodes from non-registered, but they are ones we don't need or want indexed anyhow.
You can only hide one or a few forums, that's great..!
 
This addon may be the preference of some forum administrators, but hiding the content from visitors also means hiding the content from search engines.

Yes, that is exactly the point - to hide the content from anyone who is not a member, including search engines.

The name of the addon kind of makes that explicit - this is for private sites that are not intended to be used by anyone else.

This is not about hiding one or two discussion forums - you don't need this addon for that. This is for hiding the entire site other than the login and registration pages.

I run a few of these sites now:
  • Real Estate Buyers Agents Association of Australia is an industry association - they use their private forum for sharing ideas and for supporting each other in their work, plus for administrative matters regarding their association, for education and events. Only paid members of REBAA can access the site.
  • Nothern Suburbs Little Athletics Centre is an athletics club for kids - they use their private forum for sharing announcements and information about what's happening in the club, for age group managers to discuss matters with their athletes, and for the committee to discuss things with age group managers. It is also used as a photo sharing site for photos of the kids competing. Only NSLAC members and their families can access the site.
  • I also run a private photo sharing site for a group of families who get together regularly - we share photos of our kids and families from meetups and trips we do together.
 
Last edited:
Back
Top Bottom