Would the following work from the command line for a session? ?action=$EnableNotify = 0
With the config.php file set to $EnableNotify = 1, I would hope this would only reset it for the particular session. One too many equals I am sure but this would act as a nice session toggle if it would work. John Morris > Message: 10 > Date: Fri, 13 Jul 2007 06:44:37 -0700 > From: "H. Fox" <[EMAIL PROTECTED]> > Subject: Re: [pmwiki-users] Notify List "switch" > To: "Patrick R. Michaud" <[EMAIL PROTECTED]> > Cc: pmwiki users <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 7/12/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: >> On Thu, Jul 12, 2007 at 03:35:21PM -0700, John Morris wrote: >> > >> > It would be really nice to have a "from the browser" on/off/on toggle >> > or >> > switch of some method. >> >> It could be done via: >> >> - a checkbox in the edit page >> - a browser cookie that is enabled/disabled by a link for the >> current session (e.g., ?notify=off and ?notify=on) >> - disabling notifications for edits by a given author name >> - other methods >> >> What do you think your preference would be...? > > I like the browser cookie / ?notify=[off|on] option, and would probably > use it. > > Would these work in a local configuration file? > > ## Enable notification for non-administrators only. > If (! CondAuth('$pagename, 'admin')) $EnableNotify = 1; > > ## Enable notification, exept if the user is logged in as "dcooke". > If (! $AuthId == 'dcooke') $EnableNotify = 1; > > ## Enable notificatin for every IP address except 127.0.1 . > If (! $_SERVER['REMOTE_IP'] == '127.0.0.1' ]) $EnableNotify = 1; > _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
