[pmwiki-users] Easy way to prevent all editing
Randy
randy at brownragfilms.com
Sun Dec 9 03:50:31 CST 2007
Thanks Hans.
BTW, Commentboxplus is an awesome recipe. It strikes a great balance
between ease to use and functionality.
Randy
> -------- Original Message --------
> Subject: Re: [pmwiki-users] Easy way to prevent all editing
> From: Hans <design5 at softflow.co.uk>
> Date: Sun, December 09, 2007 2:19 am
> To: Randy <randy at brownragfilms.com>
> Cc: pmwiki-users at pmichaud.com
>
>
> Sunday, December 9, 2007, 2:12:12 AM, Randy wrote:
>
> > I've tried putting this in the config.php:
>
> > $HandleAuth['edit'] ='admin';
>
> > But that didn't prevent people from posting comments using
> > commentboxplus.
>
> commentboxplus by design allows posting of comments even if one has no
> edit access. There is no switch to disable this.
> You could either
> a) comment out the install_once line for commentboxplus.php,
> so it is not installed for your read only wiki.
> b) enclose the commentbox markup in a conditional markup, like:
> (:if auth edit:)(:commentbox:)(:ifend:)
>
> A third alternative may be to create your backup wiki not as a wiki, but
> as static HTML pages, using recipe
> http://www.pmwiki.org/wiki/Cookbook/ExportHTML
>
>
> ~Hans
More information about the pmwiki-users
mailing list