[pmwiki-users] wildcard user name in authuser

Jon Haupt jhaupt at gmail.com
Tue Mar 21 09:51:20 CST 2006

When this page was moved from Cookbook/AuthUser, it appears that
several changes were made including this.  The section called "Setting
the Author Automatically" shows quite a different method than this -
perhaps you could try that method?

and notes that after 2.1.b26 the author is automatically set by default...


On 3/21/06, Neil Herber <nospam at eton.ca> wrote:
> At 2006-03-21  09:25 AM -0600, Jon Haupt is rumored to have said:
> >I don't think you can just do $Author = $AuthId.  I'm pretty sure in
> >order to set the Author to be the same as AuthId you need to use
> >something more along the lines of
> >
> >## Enforce author tracking
> >if ($action == 'edit') @session_start();
> >if ($_SESSION['authid'][0]) $Author=$_SESSION['authid'][0];
> >
> >And you could do this at another moment other than edit, I think.
> >
> >Jon
> You may be right, Jon, but then the docs are wrong:
> http://www.pmwiki.org/wiki/PmWiki/AuthUser
> near the bottom.
> I actually don't need to forbid changes to $Author, I just want to
> set it to the login for user convenience.
> Would be nice to know how to do both.
> Neil
> Neil Herber
> Corporate info at http://www.eton.ca/
> Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
> Tel: (613) 829-4668

Jon Haupt
Fine & Performing Arts Librarian
Iowa State University
152 Parks Library
Ames, IA 50011
jhaupt at iastate.edu

More information about the pmwiki-users mailing list