[pmwiki-users] setting $Author with $AuthId as prefix

2007-01-21 Thread Kathryn Andersen
Hello folks. One of the wikis I administrate, I am using AuthUser, but only with a limited number of users, for security reasons. Each user-id+password is given to a limited set of people (one user for each authorized group, such as "people on Project A" and "people from company XYZ"). It's set

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread marc
Kathryn Andersen said... > This is what I've done: > > include_once("$FarmD/scripts/author.php"); > include_once("$FarmD/scripts/authuser.php"); > # The author is prepended with the authId > # To make this easier, use '-' as a separator > # AuthId-Author >

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread Patrick R. Michaud
On Mon, Jan 22, 2007 at 05:24:41PM +1100, Kathryn Andersen wrote: > include_once("$FarmD/scripts/author.php"); > include_once("$FarmD/scripts/authuser.php"); > # The author is prepended with the authId > # To make this easier, use '-' as a separator > # AuthI

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread Tegan Dowling
Kathryn, when you've confirmed this works, would you consider adding it to the site, as a recipe or as notes on the existing AuthUser page? Also, something to check for: In my experience of trying to use AuthUser, I found that on a **site** with AuthUser enbled, but **pages** configured to allow

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread Kathryn Andersen
On Mon, Jan 22, 2007 at 10:00:07AM -0600, Patrick R. Michaud wrote: > Simply be sure to also (re)set $AuthorLink when changing $Author: > > include_once("$FarmD/scripts/author.php"); > include_once("$FarmD/scripts/authuser.php"); > $Author = "$AuthId-" . preg_replace('/^[^-]*-/', '', $

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread Kathryn Andersen
On Mon, Jan 22, 2007 at 12:17:19PM -0600, Tegan Dowling wrote: > Kathryn, when you've confirmed this works, would you consider adding it to > the site, as a recipe or as notes on the existing AuthUser page? > > Also, something to check for: In my experience of trying to use AuthUser, I > found th

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-22 Thread Kathryn Andersen
On Mon, Jan 22, 2007 at 12:17:19PM -0600, Tegan Dowling wrote: > Kathryn, when you've confirmed this works, would you consider adding it to > the site, as a recipe or as notes on the existing AuthUser page? Done. I've added to http://www.pmwiki.org/wiki/PmWiki/AuthUser (I considered adding it to

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-23 Thread marc
Patrick R. Michaud said... > On Mon, Jan 22, 2007 at 05:24:41PM +1100, Kathryn Andersen wrote: > Simpler is: > > include_once("$FarmD/scripts/author.php"); > include_once("$FarmD/scripts/authuser.php"); > $Author = "$AuthId-" . preg_replace('/^[^-]*-/', '', $Author); > > > - the Rece

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-23 Thread Patrick R. Michaud
On Tue, Jan 23, 2007 at 10:49:43AM -, marc wrote: > Patrick R. Michaud said... > > Simply be sure to also (re)set $AuthorLink when changing $Author: > > > > include_once("$FarmD/scripts/author.php"); > > include_once("$FarmD/scripts/authuser.php"); > > $Author = "$AuthId-" . preg_r

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-23 Thread Kathryn Andersen
On Tue, Jan 23, 2007 at 07:08:52AM -0600, Patrick R. Michaud wrote: > On Tue, Jan 23, 2007 at 10:49:43AM -, marc wrote: > > Isn't there a glitch with the hyphen after $AuthId? Won't Author be > > displayed, and recorded in RecentChanges, as > > > > Fred- > > Yes, you're correct (good cat

Re: [pmwiki-users] setting $Author with $AuthId as prefix

2007-01-24 Thread Patrick R. Michaud
On Wed, Jan 24, 2007 at 12:48:34PM +1100, Kathryn Andersen wrote: > On Tue, Jan 23, 2007 at 07:08:52AM -0600, Patrick R. Michaud wrote: > > On Tue, Jan 23, 2007 at 10:49:43AM -, marc wrote: > > > Isn't there a glitch with the hyphen after $AuthId? Won't Author be > > > displayed, and recorded