Page 1 of 1

Edit My Profile

PostPosted: April 20th, 2011, 11:34 am
by denvert
I'm using the pro widget and have a couple of quick questions regarding the "edit my profile" link.

1) Is there a way to turn off the pop-up window and have it go to the normal profile page? This setting in the general page "Redirect Members away from the Default Profile Panel?" isn't doing anything when I change the settings.

2) Also would like to edit the form if possible, it just says "New Password ( only if you want to change it )" and two lines below without prompt to put in password again.

thanks

Re: Edit My Profile

PostPosted: April 21st, 2011, 12:48 am
by Jason Caldwell
Thanks for the excellent questions.
denvert wrote:1) Is there a way to turn off the pop-up window and have it go to the normal profile page? This setting in the general page "Redirect Members away from the Default Profile Panel?" isn't doing anything when I change the settings.

Yes, in the Pro Login Widget under Appearance -> Widgets -> s2Member Pro Login Widget, you can take out the Replacement Code %%automatic%% and put in a custom URL of your own; which could point to the default WordPress Profile editing panel if you prefer.
SNAG-0023.jpg
SNAG-0023.jpg (17.28 KiB) Viewed 133 times

2) Also would like to edit the form if possible, it just says "New Password ( only if you want to change it )" and two lines below without prompt to put in password again.

Oh, I thought you didn't want to use the s2Member panel?
Which panel are you referring to?

Re: Edit My Profile

PostPosted: April 25th, 2011, 1:21 pm
by denvert
I was assuming that I would have it not open in the pop up but just in the browser and the same text would show up. Does that make sense. I'm not sure what I would put in the "my-custom-profile-page" for them to edit the profile.

Re: Edit My Profile

PostPosted: April 25th, 2011, 3:47 pm
by Cristián Lávaque
This may help: WP Admin -> s2Member -> API / Scripting -> Member Profile Modifications. :)

Re: Edit My Profile

PostPosted: April 26th, 2011, 11:42 pm
by Jason Caldwell
Cristián Lávaque wrote:This may help: WP Admin -> s2Member -> API / Scripting -> Member Profile Modifications. :)

Yea, you'll create a new Page, and put this inside it.
[s2Member-Profile /]

That Shortcode generates a Profile Modification panel. So then, you can use the link to your Page, as your Profile Editing Page. This gives you complete control over things.

Re: Edit My Profile

PostPosted: May 12th, 2011, 2:53 pm
by toddz88
Using that shortcode places the Member Profile edit panel on my page, but then how can we control it's contents.. what appears in the profile edit panel (other than the settings that enable/disable/hide my custom registration fields)?

Looking at s2member/profile.inc.php, I do see several hooks available. Is that what you mean about having complete control? Can you give a simple example of how to use them, in this context.

My goal would be to HIDE all fields EXCEPT one of my Custom Registration Fields (a checkbox called "User Agreement"), to allow the member to simply accept the agreement (click the checkbox, and then the submit button), without being confronted with all the other fields that are not relevant to this page/task.

thanks! -todd