Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-14T10:15:30-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6395 2011-05-14T10:15:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6395&p=15013#p15013 <![CDATA[Re: Member Profile Modification - edit one field only]]>

Statistics: Posted by Cristián Lávaque — May 14th, 2011, 10:15 am


]]>
2011-05-14T05:16:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6395&p=15007#p15007 <![CDATA[Re: Member Profile Modification - edit one field only]]> worked perfectly, thanks again Cristián.

Statistics: Posted by toddz88 — May 14th, 2011, 5:16 am


]]>
2011-05-12T17:47:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6395&p=14773#p14773 <![CDATA[Re: Member Profile Modification - edit one field only]]> usermeta table.

Code:
$s2member_custom_fields = get_user_option('s2member_custom_fields', $user_id); // An array.
 


https://codex.wordpress.org/Function_Re ... ser_option
https://codex.wordpress.org/Function_Re ... ser_option

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — May 12th, 2011, 5:47 pm


]]>
2011-05-12T14:31:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6395&p=14748#p14748 <![CDATA[Re: Member Profile Modification - edit one field only]]>
How can I update the value of a member's (s2m) Custom Registration Field, using php and a simple form in a theme template file?

Where and how is a user's s2m Custom Registration Field data stored?

thanks in advance, Todd

Statistics: Posted by toddz88 — May 12th, 2011, 2:31 pm


]]>
2011-05-12T03:29:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6395&p=14697#p14697 <![CDATA[Member Profile Modification - edit one field only]]>
Some of my members will have logins they did not get by using the payment form, where paying customers had to click a checkbox to indicate acceptance of the User Agreement.

When any user logs in, I am checking to see if his (s2m custom reg field) User_Agreement == 1. If yes, he goes on to the Login Welcome Page. If NO, he is redirected to a "User Agreement" page where he can read and accept the User Agreement, before being allowed to see the site content.

I need this User Agreement page to show that checkbox, enabled but unchecked, so the member can click it. And then of course a submit button to save the input and update that value in the user's profile in the database.

To figure this out, I tried figuring out the hooks in s2member/profile.inc.php, perhaps to use CSS to hide (display:none) all < tr > in the Profile Modification < table > and then unhide just the row I need (with my custom field in it), but couldn't figure out how to target just that row, or its contents. Also couldn't figure out how to use hooks to hide the other rows with php instead of css.

Any ideas how to approach this -- to allow a member to see and edit one custom reg field?

Otherwise, maybe I use a non-s2m field for this.. use a wp custom user field, which might be easier to accomplish this with. But then my paying members would not click to accept the User Agreement during payment, but rather upon initial login, along with these non-paying members.

Has anyone dealt with anything like this before? Thanks for any insights.

Statistics: Posted by toddz88 — May 12th, 2011, 3:29 am


]]>