Changeset 996179
- Timestamp:
- 09/24/2014 04:22:40 PM (11 years ago)
- Location:
- agreeable/trunk
- Files:
-
- 2 edited
-
agreeable.php (modified) (9 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
agreeable/trunk/agreeable.php
r986028 r996179 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. 6 Version: 1.3. 56 Version: 1.3.6 7 7 Author: kraftpress 8 8 Author URI: http://kraftpress.it … … 35 35 36 36 /* Registration Validation Hooks */ 37 add_filter('registration_errors', array($this, ' ag_authenticate_user_acc'), 10, 2);37 add_filter('registration_errors', array($this, 'registration_validation'), 0, 2); 38 38 add_filter('bp_signup_validate', array($this, 'ag_authenticate_user_acc'), 10, 2); 39 39 add_filter('wpmu_validate_user_signup', array($this, 'ag_authenticate_user_acc'), 10, 3); … … 115 115 116 116 /* Plugin Stylesheet */ 117 wp_enqueue_style( 'agreeable-css', plugins_url('css/admin.css', __FILE__), '', ' 0.3.4', 'screen');117 wp_enqueue_style( 'agreeable-css', plugins_url('css/admin.css', __FILE__), '', '1.3.5', 'screen'); 118 118 119 119 } … … 132 132 133 133 } 134 135 function registration_validation() { 136 137 $errors = new WP_error(); 138 139 if(isset($_REQUEST['ag_type']) && $_REQUEST['ag_type'] == 'register' && $this->options['register'] == 1) { 140 141 if ( isset( $_REQUEST['ag_login_accept'] ) && $_REQUEST['ag_login_accept'] == 1) { 142 143 return $errors; 144 145 } else { 146 147 $errors->add('ag_login_accept', $this->options['fail_text']); 148 149 return $errors; 150 } 151 152 } else { 153 154 return $errors; 155 156 } 157 158 } 134 159 135 160 function ag_authenticate_user_acc($user) { … … 151 176 152 177 unset($_SESSION['ag_errors']); 153 178 154 179 return $user; 180 155 181 156 182 } else { … … 179 205 $result = $user; 180 206 207 $result['errors'] = $errors; 208 181 209 return $result; 182 210 … … 188 216 189 217 } else { 190 218 191 219 return $user; 192 220 … … 244 272 if ( isset( $_REQUEST['ag_login_accept'] ) && $_REQUEST['ag_login_accept'] == 'on' ) { 245 273 // Checkbox on, allow comment 274 do_action('agreeable_validate_user', $user, $_REQUEST['ag_type']); 246 275 return $comment; 247 276 } else { … … 316 345 echo '<div id="terms" class="mfp-hide">'.$terms_content.'</div>'; 317 346 echo $type == 'comments' ? '<br>':''; 347 318 348 } 319 349 -
agreeable/trunk/readme.txt
r990250 r996179 9 9 10 10 == Description == 11 Add an "agree to terms" check box to your login, registration, or comment forms, requiring users to agree. Tested with BuddyPress and Multisite. 11 Add an "agree to terms" check box to your login, registration, or comment forms, requiring users to agree. Tested with BuddyPress and Multisite. WooCommerce extension available. 12 12 13 13 = Features = … … 18 18 19 19 = Extensions = 20 * AgreeableLogin Records - Allows you to track user agreement by IP and username each time they log in. Learn more and purchase at: http://kraftpress.it/downloads/agreeable-records/21 * WooCommerce Integration- Integrates Agreeable's terms & conditions fields into Woocommerce login, registration, and checkout. Learn more and purchase at: http://kraftpress.it/downloads/agreeable-woocommerce/20 * Login Records - Allows you to track user agreement by IP and username each time they log in. Learn more and purchase at: http://kraftpress.it/downloads/agreeable-records/ 21 * WooCommerce - Integrates Agreeable's terms & conditions fields into Woocommerce login, registration, and checkout. Learn more and purchase at: http://kraftpress.it/downloads/agreeable-woocommerce/ 22 22 23 23 = Translations = … … 37 37 38 38 == Changelog == 39 40 = 1.3.6 = 41 * Fixed bug with user registration validation 39 42 40 43 = 1.3.5 =
Note: See TracChangeset
for help on using the changeset viewer.