DeeEmm

Pragmatism in code

Dolphin is not very good with permissions, as a result it is impossible to assign permissions to individual pages. So if you have created some custom pages for your site that you only want to display to logged in members, you will need the following hack...

Edit

viewPage.php

Find

$sPageName = process_pass_data( $_GET['ID'] );

Add underneath

(be sure to change YOURPAGE to the name of your page!!)

 

if ($sPageName == 'YOURPAGE' && !isMember()){
$oSysTemplate->displayAccessDenied ();
}else{

Find

} else {
   $oSysTemplate->displayPageNotFound();
}

Add Underneath

}

That's it.

 

 

Enjoy

/DM