Quote from: ejcross at Aug 25, 2007, 01:08 PM
I need help with this!
I am newer to MODx, and am wanting to use PPP for a couple of sites as I like the functionality it seems to have to be able to create fields, etc.
Can someone explain to me in relatively simple terms how PPP works with eForm to make things happen? I am digging into the PHP coding side of both of these snippets in an effort to learn PHP and mySQL, so any help here would be greatly appreciated.
One question that I have is the email functionality for eForm. Does PPP rely on that for anything?
Thanks in advance for any simple explainations of how these two work together!
One site that I am creating right now is for my church and they want a "members profile" area. This area would allow our members, via secured login for members only (webusers), to modify their own profile information, and view the other profiles. I would like to be able to allow them to browse, search by name, zip, etc., and possibly even be able to print the contents of the members directory to keep at home (or export as .pdf). I know these are maybe big plans, but not sure where to start or how to figure this out.
Like I said, I am newer to PHP and am using these two snippets to help me learn more about it.
IIRC, EForm is used to set data to the fields created by PPP (the custom ones), as well as the default MODx values. Just think of it like this --- instead of having data sent to an e-mail, it’s sent to your MySQL database with EForm. This is also why you need to set HTML in EForm’s snippet call, so Bios/Signature/etc.’s don’t show up as a walloftext’D in PPP.
I know that it talks about how to show all of the users in one of PPP’s documentation files. You can even set it so, let’s say, you can show everyone ZIP by having a custom field in PPP named zipcode (I forget if MODx has a default field for this or not), then put zipcode in the PPP memberlist call (you’ll understand when you look at the docs). My website shows off this ability, so if you want to see how it does it in action, just check out our userlist, and that should give you a good visual idea of how it’s supposed to work.
I dunno if there’s a way to make a .pdf right now, but printing shouldn’t be that hard by using TemplateSwitcher to change to a printer-friendly template+CSS.
I hope that helped you out.