Re: [Phpgedview-talk] Disabling Calendar
Brought to you by:
canajun2eh,
yalnifj
From: John F. <Joh...@ne...> - 2008-05-12 14:59:30
|
Hi Dick, In the includes/menu.php, you will find a method in the MenuBar class called "getCalendarMenu". To disable the menu have that function return null when a user is not logged in. Something like this: if (!PGV_USER_NAME) return null; If the program they are using has a consistent "User-Agent" header then you can also try blocking it by adding it to the "$worms" array on line 104 of includes/session.php. --John > -----Original Message----- > From: php...@li... [mailto:phpgedview- > tal...@li...] On Behalf Of Dick Middleton > Sent: Saturday, May 10, 2008 1:43 PM > To: All About PhpGedView > Subject: Re: [Phpgedview-talk] Disabling Calendar > > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav > aone > _______________________________________________ > Phpgedview-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpgedview-talk |