Conor, Have you installed the members app, and is it working? Can you tell me what you currently have working about the app.
Did you copy the templates from the app into perch templates?
Members is a pretty powerful app, and setup while fairly easy, can sometimes be a challenge. For this reason I always setup and test with the default sample files, then once I know it's all working I build it into my own pages.
So just give me a run down on what you have so far.
Last, could you please post your diagnostics report, just so we know your setup.
<perch:form id="profile" method="post" app="perch_members">
<div>
<perch:label for="first_name">First name</perch:label>
<perch:input type="text" id="first_name" required="true" label="First name" />
<perch:error for="first_name" type="required">Please add a your name</perch:error>
</div>
<div>
<perch:label for="last_name">Last name</perch:label>
<perch:input type="text" id="last_name" required="true" label="Last name" />
<perch:error for="last_name" type="required">Please add a your name</perch:error>
</div>
<div>
<perch:label for="email">Email</perch:label>
<perch:input type="email" id="email" required="true" placeholder="you@company.com" />
<perch:error for="email" type="required">Please add a your email address</perch:error>
<perch:error for="email" type="format">Please check a your email address</perch:error>
</div>
<div>
<perch:input type="submit" value="Save" />
<perch:input type="hidden" id="token" />
</div>
<perch:success>
<p>Your details have been updated.</p>
</perch:success>
</perch:form>
Although this doesn't seem to do anything with me.
This is the debug
Debug Message - Perch 3.0.8
[1]
SELECT * FROM perch3_members_sessions WHERE sessionID='4a59d5aa9fa761d6dd81b84eda88105c63ab4e9d' AND sessionHttpFootprint='b427fd106abd012bfb000f2d8f22520e41102d6d' AND sessionExpires>'2017-08-25 20:42:55' LIMIT 1
User is logged in
[1]
SELECT * FROM perch3_pages WHERE pagePath='/acnew/staff-portal.php' LIMIT 1
[33]
SELECT DISTINCT settingID, settingValue FROM perch3_settings WHERE userID=0
------------------------------ here mem ------------------------------
Array
(
[all] => profile
)
[2]
SELECT regionKey, regionHTML FROM perch3_content_regions WHERE regionPage='/acnew/staff-portal.php' OR regionPage='*' ORDER BY regionPage DESC
On another note would anyone know of a way for me to allow members to login using their date of birth and email address initially? They would then be forced to set a password. Then they would sign in as normal using email and password. I would like to create accounts for them all but not have to set a password for them but rather have them do this themselves after they receive an automated email from the system.
On another note would anyone know of a way for me to allow members to login using their date of birth and email address initially? They would then be forced to set a password. Then they would sign in as normal using email and password. I would like to create accounts for them all but not have to set a password for them but rather have them do this themselves after they receive an automated email from the system.
You will not be able to change to anything other then email for username. You can have them register password less, but to then to get back in the next time they will have to do a password reset. In password less registration perch sets up the user with a blank password and logs the user in, once the session ends the user would need to reset password to login again. (If I remember correctly)
Just have a registration form that replicates your requirements.
Your members can set the password themselves when they register. You can then make the new member require approval by admin before they can do anything else.
Yes to both questions. The default templates which shipped with members app has all this functionality in them (as working example).
Have you had a look at those examples?
I can put you a couple samples together.
Are you using Perch or Runway?
Hi Robert.
Any help you can provide is greatly appreciated. I am using Perch.
Conor, Have you installed the members app, and is it working? Can you tell me what you currently have working about the app.
Did you copy the templates from the app into perch templates?
Members is a pretty powerful app, and setup while fairly easy, can sometimes be a challenge. For this reason I always setup and test with the default sample files, then once I know it's all working I build it into my own pages.
So just give me a run down on what you have so far.
Last, could you please post your diagnostics report, just so we know your setup.
I have completed the setup and everything is working great. Just looking to add some more functionality. I have copied the templates.
How do I acquire the diagnostics?
Is this what you are looking for?
In upper right of admin is "settings" then on left is a tab "diagnostics" copy and paste the resulting report.
Got it!
Will allow you to update a profile
Any new fields you want to add to a member will have to be added to:
Awesome! Do you have any specific examples for this purpose? I wouldn't even know how to use perch_member_form('profile.html').
Do I need to modify any databases or does it perform this automatically?
Did you copy the "members" directory from the downloaded app to /perch/members?
As all the examples are in that directory. If you go to domain.com/members/index.php you should see the example page.
Ok, so...
I found the template for updating the profile..
Although this doesn't seem to do anything with me. This is the debug
On another note would anyone know of a way for me to allow members to login using their date of birth and email address initially? They would then be forced to set a password. Then they would sign in as normal using email and password. I would like to create accounts for them all but not have to set a password for them but rather have them do this themselves after they receive an automated email from the system.
You will not be able to change to anything other then email for username. You can have them register password less, but to then to get back in the next time they will have to do a password reset. In password less registration perch sets up the user with a blank password and logs the user in, once the session ends the user would need to reset password to login again. (If I remember correctly)
Just have a registration form that replicates your requirements.
Your members can set the password themselves when they register. You can then make the new member require approval by admin before they can do anything else.
Ok. Scrap that. It was just an idea.
Anyone know why my profile update form doesn't appear to work? Debug is above with the form template.
You're hitting a validation error on the form.
What do you mean by a validation error? I just copied and pasted the form as it is in the template..
It looks like either the member isn't logged in when this form is processed, or the CSRF tokens don't match. So the form isn't being processed.
Ok. So I know that the user is logged in because the user is me. So, how would I go about solving the other thing you mentioned?
Drew,
I am having the same problem ([all] => profile) How do you know this is a validation error?
Regards, Patricia