Forums  ›  Dolphin 6.1  ›  Troubleshooting
 

Block Entire Site?

I'm trying to find a way to block all content on my site from non-members. I know I can block things like profiles and blogs, but you can still see group posts (if they're not hidden) and forum posts. I just want all content blocked from non-members. Anyone know how I can do this? I'd be grateful for the help!

thanks,

sivle

Hello Sivle,

I wrote this article that should be of use for what you are trying to do:
Prevent access to pages by non-members or guest visitors

Basically you are just changing:
if ( !( $logged['member'] = member_auth( 0, false ) ) )

To:
if ( !( $logged['member'] = member_auth( 0, true ) ) )

Check out the link above it's fairly simple. If a page don't have the particular code on it that you don't want a guest to see you can usually just add it to the page. Just be sure to backup any file before you edit first just in case.

To prevent visitors from viewing your forums find and open:
yoursite.com/orca/xml/design.php

Then same as in the guide you will find this on design.php:

if ( !( $logged['admin'] = member_auth( 1, false ) ) )
{
if ( !( $logged['member'] = member_auth( 0, false ) ) )
{
if ( !( $logged['aff'] = member_auth( 2, false ) ) )
{
$logged['moderator'] = member_auth( 3, false );
}
}
}


Just change to:
if ( !( $logged['admin'] = member_auth( 1, false ) ) )
{
if ( !( $logged['member'] = member_auth( 0, true ) ) )
{
if ( !( $logged['aff'] = member_auth( 2, false ) ) )
{
$logged['moderator'] = member_auth( 3, false );
}
}
}


Save and re-upload. Then refresh page as a visitor/not logged in. And you wont be able to access the forums anymore as a guest.

Excellent! Thanks, that's perfect.