Re: [pmwiki-users] Block Link Creation from Group

2007-02-28 Thread Sivakatirswami
> I don't like the phrase "block link creations" -- it sounds > as though one is trying to prevent authors from adding links > to a page. I think we're trying to prevent the creation of new > pages. Yes... exactly... Sorry for my question being poorly phrased, though in the thrashing out of what

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 7:36:35 PM, Patrick wrote: > Sure, just change the CreateDisallowed function to redirect > to an error page instead of blocking the post. Ahh, yes. So to wrap this up for Sivakatirswami: array_unshift($EditFunctions, 'CreateDisallowed'); function CreateDisallowed($p

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 07:30:55PM +, Hans wrote: > Tuesday, February 27, 2007, 7:17:18 PM, Patrick wrote: > > > Yes, it should go at the beginning of the array: > > > array_unshift($EditFunctions, 'CreateDisallowed'); > > Thanks, this works. Now trying to save a new page in a disallowed

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 7:17:18 PM, Patrick wrote: > Yes, it should go at the beginning of the array: > array_unshift($EditFunctions, 'CreateDisallowed'); Thanks, this works. Now trying to save a new page in a disallowed group results in precisely nothing, i.e. the user hangs in the edit

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 7:05:27 PM, Dr wrote: > I've got a VarsityRoster group with a list of players on the > team. I want it so if Joe Player wants to make a player page for > themselves, all they need to do is put JoePlayer on the VarsityRoster page, > save and then click on JoePlayer and

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 06:03:15PM +, Hans wrote: > Tuesday, February 27, 2007, 5:18:57 PM, Patrick wrote: > > An easy way is to create > > an $EditFunction that disallows creating new pages: > > .. > > I tested this by putting into config.php: > > $EditFunctions[] = 'CreateDisallowed'; >

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Dr Fred C
Hmmm..  I'll have to check as I've got several pmwiki's and farms located across several domains, with several 2.x versions.  I haven't had a chance to upload the latest version (2.1.27) I've downloaded to all of the sites.  I'll put that project on a front burner and maybe that will fix some o

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Tegan Dowling
On 2/27/07, Dr Fred C <[EMAIL PROTECTED]> wrote: > > I've got a VarsityRoster group with a list of players on the > team. I want it so if Joe Player wants to make a player page for > themselves, all they need to do is put JoePlayer on the VarsityRoster page, > save and then click on JoePlayer and

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 5:18:57 PM, Patrick wrote: > An easy way is to create > an $EditFunction that disallows creating new pages: > .. I tested this by putting into config.php: $EditFunctions[] = 'CreateDisallowed'; function CreateDisallowed($pagename, $page, $new) { global $Enable

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Dr Fred C
  I've got a question on a somewhat similar topic.  It seems something that may be covered elsewhere in documentation, but I can't find it.   While in Group1, is there a way to force any NewPage created while editing a page in Group1 to automatically be Group1/NewPage without having to enter

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 04:57:57PM +, Hans wrote: > > Sivakatirswami's question was about blocking new page creations from > an existing group. To me, it's not really clear what the original question is asking. His question doesn't say "an existing group", it says "any group": How c

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 3:05:30 PM, Patrick wrote: > In Site.EditForm, add the following (pick a suitably appropriate message): > (:if ! exists {*$Group}.RecentChanges :) > This will create a new group called "{*$Group}" -- are you sure you > want to do this? > (:if:) This ma

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Tegan Dowling
On 2/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > > I can also write this up as a recipe (to be installed from a local > > > customization file), and we could also provide a "confirm creation of new > > > group" checkbox that the author must check before the page/group is > > > created.

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 09:13:27AM -0600, Tegan Dowling wrote: > On 2/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > I can also write this up as a recipe (to be installed from a local > > customization file), and we could also provide a "confirm creation of new > > group" checkbox that th

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Tegan Dowling
On 2/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > I can also write this up as a recipe (to be installed from a local > customization file), and we could also provide a "confirm creation of new > group" checkbox that the author must check before the page/group is > created. Yes please - t

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 09:05:30AM -0600, Patrick R. Michaud wrote: > In Site.EditForm, add the following (pick a suitably appropriate message): > > (:if ! exists {*$Group.RecentChanges} :) Sorry, that should be (:if ! exists {*$Group}.RecentChanges :) Pm __

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Tue, Feb 27, 2007 at 02:48:12PM +, Hans wrote: > Tuesday, February 27, 2007, 2:41:42 PM, Scott wrote: > > I think that a warning would be a wonderful idea (at least as an > > option) because it is too easy to forget about groups when you create > > a page like [[Drinking coffee/tea]] and y

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Tegan Dowling
On 2/27/07, Hans <[EMAIL PROTECTED]> wrote: > > But how should PmWiki "know" that this is undesired and you don't want > a group "DrinkingCoffee"? I think we start asking too much of it. On http://www.pmwiki.org/wiki/Cookbook/LimitWikiGroups, there's a method that has the wiki check to see if Link

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Tuesday, February 27, 2007, 2:41:42 PM, Scott wrote: > I think that a warning would be a wonderful idea (at least as an > option) because it is too easy to forget about groups when you create > a page like [[Drinking coffee/tea]] and you get a totally unexpected > result. But how should PmWiki

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Scott Connard
> Tegan Dowling wrote: > On 2/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >> On Sun, Feb 25, 2007 at 12:42:57PM -1000, Sivakatirswami wrote: >> >>> How can one block creation of new pages in any group >>> >>> where, for example, {$Group} = TODO* >>> >> >> If you're wanting to limit the c

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Tegan Dowling
On 2/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sun, Feb 25, 2007 at 12:42:57PM -1000, Sivakatirswami wrote: > > How can one block creation of new pages in any group > > > > where, for example, {$Group} = TODO* > > If you're wanting to limit the creation of groups, see > http://www.p

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Patrick R. Michaud
On Sun, Feb 25, 2007 at 12:42:57PM -1000, Sivakatirswami wrote: > How can one block creation of new pages in any group > > where, for example, {$Group} = TODO* If you're wanting to limit the creation of groups, see http://www.pmwiki.org/wiki/Cookbook/LimitWikiGroups . Pm ___

Re: [pmwiki-users] Block Link Creation from Group

2007-02-27 Thread Hans
Sunday, February 25, 2007, 10:42:57 PM, Sivakatirswami wrote: > How can one block creation of new pages in any group > where, for example, {$Group} = TODO* Try this in config.php: $page = PageVar($pagename, '$FullName'); $group = PageVar($pagename, '$Group'); if(preg_match("/^TODO(.*)$/i", $gro

[pmwiki-users] Block Link Creation from Group

2007-02-25 Thread Sivakatirswami
How can one block creation of new pages in any group where, for example, {$Group} = TODO* ?? Sivakatirswami www.himalayanacademy.com ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users