If you do not want non-members viewing specific pages of your website, you can paste the following code into that php file.
Example: To not allow visitors to browse "People>All Members"
Edit the /browse.php
Add This :
//Check if Logged In
check_logged();
if(!isLogged()) {
login_form();
exit;
}
After This:
$_ni = $_page['name_index'];
This will present a login/join box instead like below:

You can do this with pretty much any "main" file. Just insert the code after something like $_page['name_index']; or the last require_once('PageName.php). May take some playing around. I can help if needed.
Chris

