<br>
<br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Message: 12<br>Date: Fri, 02 Sep 2005 16:10:48 +0100
<br>From: &quot;Rob Fisher&quot; &lt;<a href="mailto:Rob@robfisher.freeserve.co.uk">Rob@robfisher.freeserve.co.uk</a>&gt;<br>Subject: [pmwiki-users] UserAuth<br>To: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br>Message-ID: &lt;<a href="mailto:op.swhdsakpnv96mi@phoenix.mshome.net">op.swhdsakpnv96mi@phoenix.mshome.net</a>&gt;<br>Content-Type: text/plain; format=flowed; delsp=yes;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;charset=iso-8859-15<br><br>I'm trying to add user authentication to my public wiki, so that guests
<br>can read the pages, but only I can edit them.<br><br>I have successfully installed the UserAuth recipe, and have created the<br>.htpasswd file which contains my user name and password.&nbsp;&nbsp;When I try to<br>edit a page I get prompted for my username and password, which are
<br>successfully processed.&nbsp;&nbsp;So far so good!<br><br>I now want to make the system a little more sophisticated so that the Edit<br>(History and Upload) links are only visible once a user is logged in.&nbsp;&nbsp;It</blockquote><div>
<br>
Look at the CMS recipes. There is one designed to work with UserAuth
that works perfectly in that context. (See
<a href="http://www.gmtoolbox.org/Espace">http://www.gmtoolbox.org/Espace</a>; <a href="http://www.ualrsba.com">http://www.ualrsba.com</a>)<br>
<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">would also be nice to add a specific Login link, and even better to have<br>one that automatically changed to Logout if the user was already logged
<br>in.&nbsp;&nbsp;I must admit that as a newcomer to PmWiki I am finding the help in<br>the cookbook rather hard to follow.</blockquote><div><br>
UserAuth does this. There is a specific link you may add to the Skin.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here come the questions...!<br><br>1) There seem to be two recipes that handle user authentication...
<br>UserAuth and AuthUser.&nbsp;&nbsp;What is the difference?&nbsp;&nbsp;Which is more newbie<br>friendly!?</blockquote><div><br>
AuthUser is meant to be the de facto user authentication for PmWiki.
UserAuth is an order authentication system recipe that is fairly
popular. I mostly use UserAuth but do also use AuthUser in a couple of sites I manage.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2) Using UserAuth-Admintool I see the users that I defined, but any<br>alterations that I make causes the error... &quot;Notice: userauth htpasswd
<br>file is not writable in...&quot; What access rights need to be assigned to<br>.htpassword? (At present it is 644 -rw-r--r--)</blockquote><div><br>
chmod 666 .htpassword <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">3) The skin that I am using is Simple.&nbsp;&nbsp;This defines the Edit link in the<br>simple.tmpl
 file.&nbsp;&nbsp;Could someone give me a pointer as to how I can use<br>conditional formatting (ie hide the edit link) based upon the current<br>users.&nbsp;&nbsp;It confuses me as the HTML seems to be outside the scope of<br>PmWiki's conditional markup.
<br><br>The site URL is <a href="http://www.robfisher.info/Wolf">http://www.robfisher.info/Wolf</a><br>The username and password are both set to 'test' (without the quotes)<br><br>Thanks for any assistance you can give.&nbsp;&nbsp;This group has already been very
<br>kind, welcoming and helpful :)<br><br>Rob.<br><br><br><br><br>------------------------------<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">
pmwiki-users@pmichaud.com</a><br><a href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br><br><br>End of pmwiki-users Digest, Vol 3, Issue 11<br>*******************************************
<br></blockquote></div><br><br clear="all"><br>-- <br>Ben Wilson<br>&quot; Mundus vult decipi, ergo decipiatur&quot;