<P>Is it possible to disable actions like rss, diff, atom etc, if user has no logged in yet ? <BR>I'd like to leave only browse, search and login enabled by default. I know that I can protect them but what I'm looking for, is to conditionally disable them not simply protect their access with password. <BR></P>
<P>I tried something like the the following in both skin.php and config.php ... <BR> $page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT); <BR> if (! $page['=auth']['admin']) {<BR> ## Allow only essential site-related actions. <BR> $Actions_allowed = array('browse','print','search','login'); <BR> if (! in_array($action, $Actions_allowed)) { $action='browse'; } <BR> }</P>
<P>Unfortunately if didn't work. BTW I know how to disable actions in config.php but don't know how to do that conditionally, depending on user login status. I'd like to leave a basic set of actions enabled for all readers, and the rest only available to a single admin (me)</P>
<P>Any idea?</P>
<P>Thanks for your help</P>
<P>Ted</P><BR>
--
<p>___________________________________________________<br>Play 100s of games for FREE! <a href="http://games.mail.com/" target="_blank">http://games.mail.com/</a></p>