Re: [Phpgedview-talk] Disabling Calendar
Brought to you by:
canajun2eh,
yalnifj
|
From: Dick M. <di...@fo...> - 2008-05-10 19:43:14
|
Dick Middleton wrote: > John Finlay wrote: >> So in this case, you should be able to remove the calendar by removing the calendar.php file from your site. > > You might also need to edit the toplinks.html file in your theme if the menu > item doesn't automatically > > go away after removing the file. > > The calendar disappears if I remove the section in toplinks.php - thanks for > that. What can I test so it only does it when nobody is logged-in? Actually a better solution, possibly, is to make getCalendarMenu return empty if the user is not logged in. That's more likely to work for all themes. I still would like to know what to test for that condition. Is it one of the $PRIV_* variables? Dick |