Prevent access from non-register users

how can i prevent non-member or non-register users to access the site?

I want to secure the site by only register users can login and browse/search/post or other activities with no hard link to any of share files.

Quote · 3 Jun 2008

Go into your Admin Panel.


Click Settings --> Membership Levels


Uncheck the box that says "Site is running in free mode"


Click Save Changes

Quote · 3 Jun 2008

hi,

in my case it doesn't seems to work...

I switched off Site is "running in free mode", and membership action of non-members is set to "make search" and "view profiles" only. But if I check the non member mode I can view photos, videos so on. It's not restricted.

Is there a plufin / module anywhere that checks the IP and count the access to photos or videos so after three times could appear a message "you must be registered to see more..." or similiar...??

thx in advance

empireblue

Quote · 30 Jun 2008

In My case its also not working.... version 6.1.2 
Its not into freemode but non registered can look everywhere...  not use the forum...

 

into memberships they have only tree access points they can vote , look at profiles ,polls

Kids first
Quote · 30 Jun 2008

If you want to prevent a non-member from viewing yoursite.com/viewPhoto.php for example you can add the following code:

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 );
}
}
}

This will prompt a non-member to login or register in order to view the page. Add it to whatever page you want to prevent access. Some pages will take a little exploring, depending on what all pages you add it to. If you add it to some pages that are pulling data from other areas.

Add it near the top such as:

require_once('inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'sharing.inc.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMediaView.php');

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 );
}
}
}

It might take a little experimenting but it does work. The "true" part is basically saying they have to be a member to see it. "False" would let them see it. Just add it to a page then test to make sure your not denying access to some external other content/page. Then try another don't want a non-member to see and test again. There are a couple of .php in the main directory that you don't want to add it to but not many.

gameutopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 1 Jul 2008

hm, looks fine :-) thx a lot!

Quote · 7 Jul 2008

you could also goto page builder nav then click on each of the top menu boxs and click the check box for either guests or members...    i think that might work as well

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 8 Jul 2008

Any expert to confirm if above is applicable for 6.1.4? Or in which page this codes appear in 6.1.4?

Quote · 2 Apr 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.