Changeset 864949
- Timestamp:
- 02/25/2014 09:23:14 PM (12 years ago)
- Location:
- agreeable
- Files:
-
- 4 added
- 2 edited
-
tags/0.2.3 (added)
-
tags/0.2.3/agreeable-options.php (added)
-
tags/0.2.3/agreeable.php (added)
-
tags/0.2.3/readme.txt (added)
-
trunk/agreeable.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
agreeable/trunk/agreeable.php
r859423 r864949 4 4 Plugin URI: http://wordpress.org/extend/plugins/agreeable 5 5 Description: Add a required "Agree to terms" checkbox to login and/or register forms. Based on the I-Agree plugin by Michael Stursberg. 6 Version: 0.2. 26 Version: 0.2.3 7 7 Author: buildcreate 8 8 Author URI: http://buildcreate.com … … 14 14 $dbregister = get_option('ag_register'); 15 15 $dbfail = get_option('ag_fail'); 16 16 17 17 global $bp; 18 18 … … 59 59 echo '<div style="clear: both; padding: .25em 0;" id="terms-accept" class="terms-form">'; 60 60 if(isset($bp)){do_action( 'bp_login_accept_errors' );} 61 echo '<label style="text-align: left;"><input type="checkbox" name="login_accept" id="login_accept" /> <a title="'.get_post($dburl)->post_title.'" class="thickbox" target="_BLANK" href="#TB_inline?width=600&height=550&inlineId=terms">'.$dbtermm.'</a></label> </div>';62 echo '<input type="hidden" value="'.$type.'" name="ag_type" /> ';61 echo '<label style="text-align: left;"><input type="checkbox" name="login_accept" id="login_accept" /> <a title="'.get_post($dburl)->post_title.'" class="thickbox" target="_BLANK" href="#TB_inline?width=600&height=550&inlineId=terms">'.$dbtermm.'</a></label>'; 62 echo '<input type="hidden" value="'.$type.'" name="ag_type" /></div>'; 63 63 echo '<div id="terms"><div>'.$terms.'</div></div>'; 64 64 } … … 79 79 display_terms_form('register'); 80 80 } 81 82 echo '<script>'; 83 echo ' 84 jQuery(document).ready(function($){ 85 if($("#theme-my-login")) { 86 $("#theme-my-login #terms-accept").insertBefore("#theme-my-login .submit"); 87 } 88 }); 89 '; 90 echo '</script>'; 91 81 92 } 82 93 83 94 // As part of WP login form construction, call our function 84 add_filter ( 'login_form', 'login_terms_accept' );85 add_filter ( 'register_form', 'register_terms_accept');95 add_filter( 'login_form', 'login_terms_accept' ); 96 add_filter( 'register_form', 'register_terms_accept'); 86 97 add_action('bp_before_registration_submit_buttons', 'register_terms_accept'); 87 98 99 100 add_action( 'plugins_loaded', 'bcrm_form_hooks'); 88 101 89 102 function ag_widget_terms_accept() { … … 98 111 echo ' 99 112 jQuery(document).ready(function($){ 100 $(".widget_bp_core_login_widget #terms-accept").insertBefore("#bp-login-widget- rememberme");101 $(".widget_bp_core_login_widget #bp-login-widget-form").nextAll(".terms-form"). hide();113 $(".widget_bp_core_login_widget #terms-accept").insertBefore("#bp-login-widget-form .forgetmenot"); 114 $(".widget_bp_core_login_widget #bp-login-widget-form").nextAll(".terms-form").remove(); 102 115 }); 103 116 '; -
agreeable/trunk/readme.txt
r859423 r864949 32 32 33 33 == Changelog == 34 35 = 0.2.3 = 36 * Fixed issue with BuddyPress login widget no validating 37 * Fixed issue with Theme My Login additional fields coming AFTER the checkbox 34 38 35 39 = 0.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.