<span class="q">Kathryn, w</span>hen you've confirmed this works, would you consider adding it to the site, as a recipe or as notes on the existing AuthUser page?<br><br>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 login via the non-AuthUser, native authentication, based on the password alone (set by
config.php or page attr or group attr), someone logging in by clicking a (v2.1.26 syntax) [[{$Name}?action=login | Login]] link, and using their miscellaneous username plus the password, would be successfully logged in, but left hanging, looking at the
Site.AuthForm, instead of being returned to ?action=browse. Even expert users get confused and think their login has failed, when they're not returned to ?action=browse.<br><br>Just a heads up -- something to confirm isn't happening, or else that you find a work-around, if it does.
<br><br>Tegan<br><br><div><span class="gmail_quote">On 1/22/07, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Jan 22, 2007 at 05:24:41PM +1100, Kathryn Andersen wrote:<br>> include_once("$FarmD/scripts/author.php");<br>> include_once("$FarmD/scripts/authuser.php");<br>> # The author is prepended with the authId
<br>> # To make this easier, use '-' as a separator<br>> # AuthId-Author<br>> if ($Author) {<br>> if (strstr($Author, '-') != false) {<br>> $auth_split = explode('-', $Author, 2);
<br>> $Author = $AuthId . '-' . $auth_split[1];<br>> } else if ($Author != $AuthId) {<br>> $Author = $AuthId . '-' . $Author;<br>> } else {
<br>> $Author = $AuthId;<br>> }<br>> } else {<br>> $Author = $AuthId;<br>> }<br><br>Simpler is:<br><br> include_once("$FarmD/scripts/author.php");
<br> include_once("$FarmD/scripts/authuser.php");<br> $Author = "$AuthId-" . preg_replace('/^[^-]*-/', '', $Author);<br><br>> - the Recent Changes page says that the change was made by "Kathryn".
<br>> (bad)<br>> ...<br>> So why isn't the "userid-Kathryn" being used in the Recent Changes page<br>> in case A?<br><br>The RecentChanges pages use $AuthorLink (not $Author) for<br>generating the attributions in each entry. $AuthorLink is
<br>set by author.php -- which for a first-time login is happening<br>before the $AuthId manipulations a bit later.<br><br>Simply be sure to also (re)set $AuthorLink when changing $Author:<br><br> include_once("$FarmD/scripts/author.php");
<br> include_once("$FarmD/scripts/authuser.php");<br> $Author = "$AuthId-" . preg_replace('/^[^-]*-/', '', $Author);<br> $AuthorLink = "[[~$Author]]";<br><br>Pm<br><br>
_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users
</a><br></blockquote></div><br>