[dokuwiki] Re: question on meta data and feature request for enabling

Jason Keltz wrote:
> On 09/20/07 17:17, Michael Klier wrote:
> >salto wrote:
> >>Michael Klier wrote Tue, 18 Sep 2007 23:09:07 +0200
> >>
> >><I recently made a plugin "ClosedWiki", you`ll find it at the plugins 
> >>page.
> >>It allows you enable/disable actions for non-logged in users (it doesn`t
> >>disable the actions completely as the disable action config options does).
> >>ATM moment in only checks wether a users is logged in or not, but if
> >>requested, I could add another option to allow actions only for users 
> >>which
> >>are part of certain groups or even only the admin user.>
> >>
> >>It would be great if you could add an option to allow actions only for
> >>specified users/groups/admin!!
> >>Thanks very much in advance!
> >
> >Done, a new version is online. If you give it a try please give me some
> >feedback :).
> 
> I gave it a shot .. a few points:
> 
> 1) There's a bug in your plugin.  Right now, if I am in group admin and 
> some other group X, and X has not been added to the allowed_groups, then 
> I am denied.

I see what you mean, I`ll fix it as soon as I can.

> 2) Since you never really know by default which options the user wants 
> to close in their wiki, and which they wish to remain open, I wonder if 
> the default should be to leave everything "open".. That is, by 
> installing the plugin, you don't inherently change the behaviour of your 
> Wiki.  Only when you configure the plugin do you start to block access.

Hmmm, good point, will take that into account.

> 3) This last issue is one of aesthetics .. I'm not 100% sure how to 
> explain, but I'll give it a shot.  When you give the "permission denied" 
> error in your plugin, it is printed as a "status message" using the msg 
> function (in my case, highlighted with an exclamation point before the 
> error).  DokuWiki usually reports these types of errors at the top of 
> the window prior to the template.  Of course that's template dependent I 
> guess.  DokuWiki also has other errors like the "You don't have enough 
> access to edit this page" type that are simply printed inside the 
> context of the page, not above it, but they are never printed like the 
> status message -- they are just printed in the standard font...  Anyway, 
> this isn't a big deal, but I thought that I might mention it.

This is not template dependant. Actually I thought about that for a
while -  whether to display the action on top or in the center of the
wiki. I thought it would be better showing the error were a user would 
expect something to happen - the center of the page. I think over it
again.

> One last unrelated question which might interest others on the list -- 
> by adding the ClosedWiki plugin, my list of configuration options in the 
> configuration manager TOC now starts to go underneath the first 
> configuration manager setting (Wiki Title), so my last entry (a 
> template) is almost hidden... I guess it's tricky .. if you don't go 
> under it, you go over it, and I'm not sure that's the right decision 
> either!!  a neat future addition to the configuration manager would be 
> the use of tabs for the different sections.. right now, with lots of 
> plugins installed, the page gets to be very very long, and very 
> difficult to find the options that you're looking for.

I guess this is template dependent - which template are you using (and
which browser)?

Best Regards,
    chi

-- 
Michael Klier

mail:   chi@xxxxxxxxxxx
www:    http://www.chimeric.de
icq:    206179334
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Other related posts: