Forum Replies Created
-
AuthorPosts
-
March 6, 2015 at 4:17 pm in reply to: eMember – add custom field verification for registration #68925JeremyMember
Thanks for pointing me to the right place. Do you know where I could locate the javascript error checking code for the registration form also? Figure I would add it for those using a browser that supports javascript. I will hunt around for it later today after I have finished up the php code but if you could point me to the right file it would save me time hunting for it.
Here is a test snippet of code for those looking for a code example that come across this post,
// Check if user entered a valid registration code
$reg_code = $_POST;
if ($reg_code !== “1234”) {
$output .= ‘<span class=”emember_error”>Bad registration code. Go back and retry your registration code.</span>’;
$emember_config->set_stacked_message(’emember_full_registration’, array(‘type’ => ‘warning’, ‘message’ => $output));
return;
}
March 5, 2015 at 8:52 pm in reply to: eMember – add custom field verification for registration #68923JeremyMemberI would prefer to do the check in php as I don’t want to rely on javascript for the form checking. I just need help in figuring out what php file I need to add my code checking to.
March 4, 2015 at 10:47 pm in reply to: eMember – add custom field verification for registration #68921JeremyMemberNo email verification link would be used for registration.
Client wants to have each of its reps to have a unique registration code that they can hand out to customers. Then when the customer registers they will enter this registration code in the registration form in a custom field called “Registration Code”. When they hit submit i want to compare the value of that code with a database of valid codes (which I will do custom code for). If the code is a valid code then I will allow them to register, if not then throw an error letting them know it is not a valid code.
So we want it so you have to have a valid registration code to register on the site so I need to know where to find the registration processing code is to add this custom code in.
JeremyMemberSorry my question was typed out slightly wrong, should of been,
Is there anyway to find out if a post is protected wether the user is logged in or not?
-
AuthorPosts