Quote from: ejcross at Sep 10, 2007, 09:55 PM
Dr. Scotty,
This snippet looks really promising for a couple of projects that I am working on right now, so a few questions to guide me in playing around with it.
I am looking to use this to login/logout of a members area that will contain a profile of the member and their family. Does this snippet allow for additional people to be listed, such as kids, spouses, etc? I would be using just a single login for the family or individual, so each person would not need their own login.
Absolutely! using the
&customFields parameter you can add additional columns you the WebLoginPE table (the default table name is `web_user_attributes_extended` but you can override that with &customTable). You could call WebLoginPE with this parameter:
&customFields=`spouse,children,family_motto` &profileTpl=`familyProfileChunk`
In familyProfileChunk you would have, in addition to any other fields you want the user to specify
...
<input type="text" name="spouse" value="[+user.spouse+] />
<input type="text" name="children" value="[+user.children+]" />
<input type="text" name="family_motto" value="[+user.family_motto+]" />
...
Quote from: ejcross at Sep 10, 2007, 09:55 PM
Will this snippet allow for the family to modify their own profile and then be able to browse other profiles, maybe search by name, address, phone or zip code?
Yes, anyone with the Username/Password can modify the profile if they want.
Search is a good Idea. I will work it in to the snippet. I don’t think [!AjaxSearch!] is gonna find that stuff?
Quote from: ejcross at Sep 10, 2007, 09:55 PM
Thanks for any direction with these, and as I begin playing around with this, I’m sure I’ll be back with more questions and maybe some advice or solutions!
Your welcome, and I look forward to hearing from you.
-sD-
Dr. Scotty Delicious, Scientist DFPA.