<HTML dir=ltr><HEAD><TITLE>Re: [pmwiki-users] php form generator</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText49289 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Dan,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I appreciate you going the extra mile in trying to help aide me in this situation.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Let me start with explaining what I need and then I'll say what I did.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I am in need of some authentication system that would allow my users to login and self-register.&nbsp; Right now what I think I would like to do is to have my users login with a general username and password that I set (such as name "opentoallusers" and password "fun").&nbsp; Then, if they want to edit any content, then they would have to register.&nbsp; Here is where my problems starts, because I need a lot of info on them such as username (they want to have show up as they are online), first and last name, address, e-mail, phone number and a couple other fields.&nbsp; All of the information they provide me would have to be stored in a place that only I (the administrator) could access or only they (the single user) could see.&nbsp; Additionally, I need an e-mail possibility, in which they would have to receive an e-mail confirmation from their sign up (in order to make sure their account is legit).&nbsp; Basically this is very standard stuff.&nbsp; When you register now-a-days you have to provide tons of fields of info and then you get an e-mail sent to you with a link that you click in order to finish the registration.&nbsp; That's what I need and I believe ZAP could provide.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>So, what I did was to download both the ZAP and ZAP toolbox recipes.&nbsp; I then added them into my config page.&nbsp; Afterwards, I&nbsp;followed the directions from <A class=urllink href="http://zapdoc.web-farm.org/" rel=nofollow><FONT face="Times New Roman" size=3>http://zapdoc.web-farm.org</FONT></A><FONT face="Times New Roman" size=3> where I created a <FONT color=#0000ff><FONT color=#000000>ZAP config page verbatum from the website&nbsp;(which it stated on that website I had to do for security reasons) and clicked on save.&nbsp; I then</FONT> </FONT>placed a link on my authuser page (the PMWiki page that shows up in order to login).&nbsp; This link went to a page that I created zap.login page at which I copied and pasted the member management information:</FONT></FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><PRE class=escaped>(:messages:)
(:zapform:)
(:zap login="":)
||Member Name: ||(:input text Member:)
||Password: ||(:input password Password:) (:input submit value="Login!":)
(:zapend:)
</PRE><PRE class=escaped>Afterwards, I placed a link on that page (zap.login) that would lead to a new page I called zap.register and copied this information:</PRE><PRE class=escaped>(:messages:)
(:zapform:)
(:zap datapage="Profiles.{$newmember}":)
||Member Name:%red%*%% ||(:input text Member:)
||Password:%red%*%% ||(:input password Password:)
||Real Name: ||(:input text RealName:)
||Email: ||(:input text Email:)
||Country: ||(:input text Country:)
||Gender: ||(:input select Gender Male:) (:input select Gender Female:) 
|| ||(:input submit value="Create Account":)
(:zap register="Email,Password,RealName,Country,Gender":)
(:zap login="auto":)
(:zapend:)
</PRE><PRE class=escaped>I did this so I could experiment with the ZAP login while still be able to login via PMWiki if things went wrong and play with the new user-registration.</PRE><PRE class=escaped>Unfortunately, it locked me completely out of PMWiki.  So, fortunately I had made a back-up copy before adding ZAP and tried a different registration system.</PRE><PRE class=escaped>I know I screwed up (probably in this case royally) since I'm a very novice user.  I have HTML coding experience and am trying to self-teach myself on PhP now, but I'm still lacking.</PRE><PRE class=escaped>Thanks for your help on this matter,</PRE><PRE class=escaped>Chris</PRE></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> fast4god@gmail.com on behalf of The Editor<BR><B>Sent:</B> Mon 9/8/2008 6:44 PM<BR><B>To:</B> Swift, Chris<BR><B>Cc:</B> pmwiki-users@pmichaud.com<BR><B>Subject:</B> Re: [pmwiki-users] php form generator<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Chris,<BR><BR>As you are having so much trouble getting support with this, I decided<BR>to download a version of PmWiki to my computer, installed<BR>ZAP/ZAPtoolbox, and cut and pasted the forms from the MemberMgmt page.<BR>&nbsp;No other customizations or other configurations. Plain vanilla<BR>install.<BR><BR>Besides forgetting I had to enable AuthUser, (which took a half hour<BR>of frantic debugging to remember), it worked perfectly.&nbsp; Could you<BR>explain exactly what problem you were having with ZAP?&nbsp; Perhaps I can<BR>debug a bit now that I have a copy of PmWiki on my computer.<BR><BR>Cheers,<BR>Dan<BR><BR><BR><BR><BR><BR>On Mon, Sep 8, 2008 at 9:58 AM, Swift, Chris &lt;Chris.Swift@eu.dodea.edu&gt; wrote:<BR>&gt; Dear all,<BR>&gt;<BR>&gt; So I'm still on my quest to find the right form to have my patrons<BR>&gt; self-register.&nbsp; I came across these 2 websites<BR>&gt; <A href="http://phpformgen.sourceforge.net/">http://phpformgen.sourceforge.net/</A> and <A href="http://www.phpform.org/">http://www.phpform.org/</A>.&nbsp; I browsed<BR>&gt; through both and found them quite intuitive.<BR>&gt;<BR>&gt; So, my question to our forum is, does anyone else have experience in dealing<BR>&gt; with these 2 websites?&nbsp; Would they be useful in creating a form for me that<BR>&gt; I could integrate into PMWiki quite easily (taking into account that I'm an<BR>&gt; extreme newb at programming)?<BR>&gt;<BR>&gt; Thanks,<BR>&gt;<BR>&gt; Chris<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; pmwiki-users mailing list<BR>&gt; pmwiki-users@pmichaud.com<BR>&gt; <A href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</A><BR>&gt;<BR>&gt;<BR></FONT></P></DIV></BODY></HTML>