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.
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. |
Go into your Admin Panel. Click Settings --> Membership Levels Uncheck the box that says "Site is running in free mode" Click Save Changes |
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 |
In My case its also not working.... version 6.1.2
into memberships they have only tree access points they can vote , look at profiles ,polls Kids first |
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 ) ) ) 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'); if ( !( $logged['admin'] = member_auth( 1, 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 |
hm, looks fine :-) thx a lot! |
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 |
Any expert to confirm if above is applicable for 6.1.4? Or in which page this codes appear in 6.1.4? |