This topic contains 1 reply, has 2 voices. Last updated by Jason (Lead Developer) 3 years, 11 months ago.
Topic Author | Topic |
---|---|
Posted: Saturday Jan 19th, 2013 at 4:00 pm #38325 | |
I’m hoping you can please let me know how I can edit the user_field data for a member. Right now all I can find information on is retrieving the field I need using:
But I need to know how I can edit this field using PHP. Here’s a little more info on what I’m trying to accomplish here… I’ve had to create a new workflow for membership signups because the email with the link for the user to set their password almost always ends up in the users spam folder. So to get around it I am forcing users to create a free account first and created a new registration form field using S2Member > General Options > Registration/Profile Fields & Options. Then I put some code in my theme header that redirects them to the appropriate ccBill payment page if they are s2member_level_0 AND have chosen a particular member level. So now, a user creates their account, signs in, and then they’re immediately directed to the ccBill payment page. They pay the fee and then there account is upgraded. No issues with emails ending up in the spam folder. So far, so good… The problem lies in the fact that if they cancel their membership they are demoted to level 0 again. And they would still be entitled to login as a free subscriber to access certain content. BUT, they won’t be able to because my redirect script will again detect that they are level 0 AND have chosen a member level, so they’ll be redirected back to ccBill to pay again. Thank you in advance for your help! |