DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Hide custom pages from non-members

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

 

Dolphin - Add search by country to Groups
Dolphin - Record user Name and ID with IP address

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Tuesday, 27 June 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image