[pmwiki-users] Require Author broken?

Tegan Dowling tmdowling at gmail.com
Thu Apr 20 23:42:08 CDT 2006


On 4/20/06, Chris Lott <chris.lott at gmail.com> wrote:
> On 4/11/06, Tegan Dowling <tmdowling at gmail.com> wrote:
>
> > 1) As I said above, I'm not using any user-based authentication, but I do
> > still want the author cookie to work for my authors, so they don't have to
> > re-enter author name with every edit in the same session; a friend who knows
> > some php came up with this:
> >
> >     //Author cookie
> >     include_once("$FarmD/scripts/author.php");
> >     if($AuthId && !@$_COOKIE[$AuthorCookie]) {
> >     $Author = $AuthId; setcookie($AuthorCookie,
> >     $Author, $AuthorCookieExpires, $AuthorCookieDir);
> >     }
> >
> > This keeps the author name alive for the editing session, which is really
> > nice, but it turns out that it disables the RequireAuthor setting.
>
> I haven't setup anything like this in my installation, I DO use:
> $EnablePostAuthorRequired = 1;
>
> And the author field is retained during the editing session. But only
> the author field-- I assumed this was default behavior?? Seems to be
> working both browsers...
>
> c

Thanks for looking at it.  I

1) moved the line
$EnablePostAuthorRequired = 1;  above the cookie stuff, and

2) eliminated the new-style
http://www.pmwiki.org/wiki/Cookbook/AuthorContribution, and now my
wikis remember user-names.

Too bad about the author contributions.




More information about the pmwiki-users mailing list