aditinaphade
Forum Replies Created
-
Ok thanks a lot. and where I can write my js for the same? in functions.php correct?
Hello, we want to add one prompt(alert) on onclick function of that button by using JS.
So when user will click the button like ‘Login with Facebook’ , he will see a popup asking for a validation question.Hello can you just tell me, where will I find that ‘login with facebook button code’? In which file?
Thanks!
I understand. I will try this solution.
Thanks a Lot! I am grateful!Hello,
below is my code for my question which is already there in my functions.php. So how can I convert this into your code for that question?
add_action('um_after_register_fields', 'add_a_hidden_field_to_register'); function add_a_hidden_field_to_register( $args ) { //echo "<pre>"; //print_r($args); echo 'Please answer the question. When there is a problem what do you do? I give...<input type="text" name="yogi-security-question" id="field_id" value="" style="border-radius:10px;"/>'; if ( 'yogi-security-question' == $args->name ) { $value_yogi_security_question = isset( $_POST['yogi-security-question'] ) ? trim( $_POST['yogi-security-question'] ) : ''; $your_email = isset( $_POST['your-email'] ) ? trim( $_POST['your-email'] ) : ''; if (!preg_match("hiding this value", $value_yogi_security_question)) { $result->invalidate( $tag, "Are you sure this is the correct answer?" ); } else { $user = get_user_by( 'email', $your_email ); update_user_meta($user->ID, '_yogi', '1008'); } } return $result; }Yes it worked well. Thanks a ton.
Now I want to replace that question with my question and need to validate my answers.
my question is already there on my original register page https://orchidpearl.com/100m/wp-login.php?action=register
can I add that question code instead of fvrt color question code?
Many thanks Laszlo for your all help.
Hi Laszlo,
I have added that custom code of favorite color in functions.php in my development environment website.
https://orchidpearl.com/100m/wp-login.phpBut that favrt color question page is still not appearing before user login with facebook.
Please please help.
Thanks a Lot!
I can go with 1st option but can you please let me know that where I need to put that code to display that question?
in functions.php can I add that ? Like all those funtions?
please suggest. Suppose if I ask you to do this functionality for us then what are your charges for the same? Please let me know.
Thanks!