Tips and Tricks HQ Support Portal › Forums › WP eMember › Registration Form Questions
- This topic has 15 replies, 3 voices, and was last updated 12 years, 11 months ago by admin.
-
AuthorPosts
-
December 4, 2011 at 12:43 am #4933travin69Member
Ok. I am very new to this emember system. I need the following functionality and need to know how to add it. I run a free site with different levels of membership, but all are free. This must remain as designed. I am using the register form shortcodes to make the forms.
1) I need to add check boxes that are required to be checked in order to allow a person to register. I am using the “custom field” settings to do this. Problem is I need to make add a hyperlink near the check box that can direct a user to the T&C page.
2) Is there any code that allows members to register for a membership using Gravity Forms plugin w/member registration plugin vice your form? That would make my life much easier. I see that there is the ability to use http post to create accounts. Please advise on how to use this.
3) How do I allow the plugin to automatically generate a password and email it to the new member so I can verify they are real?
4) How do I add the recaptcha to the registration form?
Thanks
December 4, 2011 at 1:25 am #39142PeterMemberHi,
If you’re new to eMember I highly recommend trying to take the time to go through our documentation which can be found here:
http://www.tipsandtricks-hq.com/wordpress-membership/
Now to your questions:
1) I need to add check boxes that are required to be checked in order to allow a person to register. I am using the “custom field” settings to do this. Problem is I need to make add a hyperlink near the check box that can direct a user to the T&C page.
That’s not possible via the settings as far as I’m aware. You can however add your link when you create your own “registration” page, ie, the page where you put the registration shortcode [wp_eMember_registration]. Then you can put a link at the bottom of your page going to your T&C page.
2) Is there any code that allows members to register for a membership using Gravity Forms plugin w/member registration plugin vice your form? That would make my life much easier.
I’m not sure I understand your question. As far as Im aware, Gravity forms are supported:
https://support.tipsandtricks-hq.com/forums/topic/gravity-forms-and-emember
3) How do I allow the plugin to automatically generate a password and email it to the new member so I can verify they are real?
The plugin does not automatically generate passwords but it can send emails to subscribers to confirm their email address. See the following tweaks:
4) How do I add the recaptcha to the registration form?
You can add a captcha by configuring the items in your eMember settings. Just click on the reCaptcha link. You will also need to get your API keys by following the link on that page.
December 4, 2011 at 5:37 am #39143adminKeymasterWe added an option in the plugin so you can show a Terms and conditions checkbox on the registration form. This will make it to where your members must agree to the terms and conditions before they can register. You can get a new build of the plugin from here to get this new option:
https://support.tipsandtricks-hq.com/update-request
After you update the plugin go to the “Registration Form Settings” section under the “pages/forms settings” menu and check the terms and conditions checkbox.
December 4, 2011 at 7:49 am #39144travin69MemberThanks for the weekend reply. My gravity forms question is this:
I like using Gravity Forms to make all my forms. I have a very unique set up for my site. I use s2member and emember to control my site. I currently use Gravity forms to do all my registrations for my site using the WP user registration system and s2member. Since emember does not use the WP user tables, I am stuck using your forms to register my members, which limits my ability to add and capture additional information that I need to capture. I noticed that emember has the ability to accept an http post to create a member. This means that I can use a gravity forms filter/hook to perform actions when a form is submitted (or in my case when a user is registered) and then just post the info in a http post and make an emember member as well.
Can you provide me the exact form of an http string I would need to post in order to add a member to the emember system via the http post method? I make 3 levels of members,Free, Seller and Buyer.
Thanks in advance,
Daniel
December 5, 2011 at 9:31 am #39145adminKeymastereMember has the ability to create WordPress users when a member signs up using the eMember’s registration form. More details here:
December 5, 2011 at 2:27 pm #39146travin69MemberI use this feature currently. It appears that emember can also accept an http post with information that will allow it to create/delete a member as well. I want to use this feature so I can integrate the Gravity Forms plugin with emember.
I looked for an article for this but didn’t see it. Can you give me some direction on how to format the http string?
Thanks,
Daniel
December 6, 2011 at 12:20 pm #39147adminKeymasterWe recently added this API to the plugin so haven’t created the official documentation for it. I will create a documentation for it within the next two days.
December 6, 2011 at 1:47 pm #39148travin69MemberThanks. Looking forward to it.
December 7, 2011 at 6:04 am #39149adminKeymasterAdded a documentation for this:
December 7, 2011 at 2:21 pm #39150travin69MemberBeautiful. Two questions:
Since I want to pass the username and password that is generated, does it matter which order they go in the http string? I am assuming that they go at the end of the string, username first, password second. I plan on using these variables: $username, $password.
Is this line required and what goes in it: $prepared_data = “?
Also, do I send the password before the hash or after the hash?
Thanks. Excellent work.
December 8, 2011 at 3:43 am #39151adminKeymasterThe order doesn’t matter. The prepared data when you want to pass the username and password should look like the following:
$prepared_data = “?secret_key=”.$secret_key.”&first_name=”.$first_name.”&last_name=”. $last_name.”&email=”.$email.”&membership_level_id=”.$membership_level_id.”&username=”.$username.”&password=”.$password;
December 8, 2011 at 5:18 am #39152travin69MemberGreat. This rocks. I will have the code soon that will allow Gravity Forms to interface with emember. I will post it once I have finished it and tested.
Thanks again.
December 10, 2011 at 3:42 am #39153travin69MemberOk. Here are my results so far:
API doesn’t seem to work for me. Here is my code I am using with Gravity Forms and your code combined. I put this in the fuctions.php file. Any help would be awesome.
// Add For Gravity Forms Post Submission
function gf_register_add_ons($user_id, $config, $entry, $user_pass)
{
//Check which gravity form was submitted and then execute the corresponding code if needed.
/* Only Execute the following code block for Gravity Form 1 (each Gravity Form your create has an ID so replace this number with the actual ID) */
/* TODO - Change 1 with the actual form ID */
if($form['id'] == 13)
{
$secret_key = "removed for security";
$first_name= $entry["13"];
$last_name= $entry["14"];
$email= $entry["15"];
$membership_level_id= "4";
$username= $entry["16"];
$password= $user_pass;
$prepared_data = "?secret_key=".$secret_key."&first_name=".$first_name."&last_name=". $last_name."&email=".$email."&membership_level_id=".$membership_level_id."&username=".$username."&password=".$password;
$get_url = "http://www.paylaterproducts.com/wp-content/plugins/wp-eMember/api/create.php".$prepared_data;
// Execute this GET Request
file_get_contents($get_url);
}
}
add_action("gform_user_registered", "gf_register_add_ons", 10, 3);December 10, 2011 at 7:32 am #39154adminKeymasterI don’t see how the following statement can ever be true.
if($form['id'] == 13)
The
$form
variable hasn’t been passed into this function? Please check with “echo” statements to make sure your code is behaving as you *think* it is.December 13, 2011 at 5:57 pm #39155travin69MemberWould you be so kind as to give me an example of putting an echo statement in my code? I edit the functions.php code on a live site and test it my actually registering a new user.
Thanks in advance
-
AuthorPosts
- You must be logged in to reply to this topic.