• It would be great if there were a built in checkbox I could enable or disable that gave me the option to enforce a check box to accept terms and conditions for users who register with the social plug-in.

    Something like;

    Do you want to enable a radio checkbox on alongside your social login?
    y/n

    Do you want to make your radio box mandatory or optional for new users?
    mandatory/optional

    Here is an html text box, please insert what you want for the title of your radio box?
    here the user could input something like, ‘I accept the terms and conditions of this site.’ And if html was enabled they could hyper link the user to a lightbox or another page with the actual t&c’s on it.

    That would be something NO OTHER STANDALONE SOCIAL LOGIN WIDGET currently has, I’ve checked.

    https://wordpress.org/plugins/wordpress-social-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, that would be really useful and cool!!

    Mel

    (@acvic)

    Added it for you no sense reinventing the wheel
    found this plugin and it does what you wanted Agreeable Plugin

    add_action('login_footer', 'wsl_login_scripts');
    
    function wsl_login_scripts(){
    	if( class_exists('Agreeable', true )  ){
    		$ag_fail_msg = get_option('ag_fail');
    		if (isset($ag_fail_msg) && $ag_fail_msg <> null && $ag_fail_msg <> ""){
    			//pass msg on
    		}else{
    			$ag_fail_msg = "You Must Accept The Terms To Login";
    		}
    		if( wp_script_is( 'jquery', 'done' ) ) {
    		echo "<script>
    			jQuery(document).ready(function($) {
    				$('.wp-social-login-provider-list a').click(function(e){
    					if ($('#ag_login_accept').is(':checked') == false){
    						e.preventDefault();
    						alert('". $ag_fail_msg. "');
    					}
    				});
    			});
    		</script>";
    		}
    	}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request | Checkbox to accept T&C’ is closed to new replies.