Community Support Forums — WordPress® ( Users Helping Users ) — 2011-02-27T03:51:21-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=839 2011-02-27T03:51:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=839&p=7216#p7216 <![CDATA[Re: Custom registration form]]> can you tell where this code should go and in which file?
Also should there be one registration page or another one for paid members?

Would really appreciate your help. My membership is almost ready except for this.

Statistics: Posted by adrianlee — February 27th, 2011, 3:51 am


]]>
2010-09-25T03:24:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=839&p=3477#p3477 <![CDATA[Re: Custom registration form]]> I dug into the codes and found the best solution.


Here is the code to check if the user has made payment or not. If paid, it will set role of Leve 4 , else Level 1.

If anyone wants complete register page code, just let me know. i can help you.
Thanks a lot S2 member Team. You folks made it easier. Thanks a lot.

Code:
$myuser_id = wp_create_user( $uname, $password, $remail );
if($myuser_id){
$new_user = new WP_User($myuser_id);
if(ws_plugin__s2member_check_register_access()){$new_user->set_role("s2member_level4");
echo 'You have successfully registered as Paid member :)'; }
else{$new_user->set_role("s2member_level1");
echo 'You have successfully registered as Free Member.. :)';
}
}

Statistics: Posted by geekz — September 25th, 2010, 3:24 am


]]>
2010-09-23T14:23:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=839&p=3441#p3441 <![CDATA[Custom registration form]]> I want to create another form for registration of paid members and only after successful paypal transaction they can see this registration page.

Still Unresolved Problem :



Requirements :

1. There will be two registration forms.


2. First registration form is for free members and can be accessed by anyone.


3. Second registration form is for paid members and can be accessed only after making the payment through the paypal generated button.




Question
I am unable to make the second type of registration form.
I want the users to reach the registration page or be able to see the registration page only after they make payment for the membership using the paypal button. Is there a way to do this???

Statistics: Posted by geekz — September 23rd, 2010, 2:23 pm


]]>