Changeset 177374
- Timestamp:
- 11/27/2009 03:28:23 AM (16 years ago)
- Location:
- aweber-registration-integration/trunk
- Files:
-
- 2 edited
-
aweber-registration-integration.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aweber-registration-integration/trunk/aweber-registration-integration.php
r176805 r177374 4 4 Plugin URI: http://www.gkauten.com/aweber-registration-integration 5 5 Description: Integrates the AWeber contact registration script into your WordPress registration process. Users are seamlessly added to your AWeber account during registration on your site, either by request or silently. If you do not yet have an AWeber account, you will need to <a href='http://www.aweber.com/?323919'>go here</a> and sign up for one. 6 Version: 1.2. 66 Version: 1.2.8 7 7 Author: GKauten 8 8 Author URI: http://www.gkauten.com … … 86 86 } 87 87 if(get_awr_option("awr_opt_in") === false) { 88 add_option("awr_opt_in", " false", "", true);88 add_option("awr_opt_in", "true", "", true); 89 89 } 90 90 } … … 262 262 /************************************/ 263 263 264 function register($id) {264 function awr_register($id) { 265 265 global $wpdb, $optin; 266 266 … … 275 275 if(get_awr_option("awr_opt_in") == "true" && $optin == true) { 276 276 // Opt-In Accepted - No Action Needed 277 } else {277 } elseif(get_awr_option("awr_opt_in") == "true" && $optin == false) { 278 278 // Opt-In Declined 279 279 return; … … 303 303 } 304 304 305 add_action('user_register', ' register');306 307 function opt_in() {305 add_action('user_register', 'awr_register'); 306 307 function awr_opt_in() { 308 308 if(get_awr_option("awr_opt_in") == "true" && (get_awr_option("awr_disabled") == "" || get_awr_option("awr_disabled") == "false")) { ?> 309 309 <p><input type="checkbox" name="awr_opt_in" id="awr_opt_in" class="input" <?php if(isset($_POST["awr_opt_in"]) && $_POST["awr_opt_in"] != "") { echo("checked=\"checked\""); } ?> tabindex="99"/> … … 312 312 } 313 313 314 add_action('register_form', ' opt_in');315 316 function check_opt_in($login, $email, $errors) {314 add_action('register_form', 'awr_opt_in', 10, 0); 315 316 function awr_check_opt_in($login, $email, $errors) { 317 317 global $optin; 318 318 if(get_awr_option("awr_opt_in") == "true") { … … 327 327 } 328 328 329 add_action('register_post', ' check_opt_in', 10, 3);329 add_action('register_post', 'awr_check_opt_in', 10, 3); 330 330 331 331 /************************************/ -
aweber-registration-integration/trunk/readme.txt
r176805 r177374 5 5 Requires at least: 2.8 6 6 Tested up to: 2.8.6 7 Stable tag: 1.2. 67 Stable tag: 1.2.8 8 8 9 9 Integrates the AWeber contact registration script into your WordPress user registration process. … … 63 63 == Changelog == 64 64 65 = 1.2.8 = 66 * Resolved some functionality concerns with the Opt-In feature. 67 * Renamed some functions for increased unique nature to prevent possible problems with other plugins. 68 65 69 = 1.2.6 = 66 70 * Updated to coincide with updates made to the HTML form code generated from the AWeber control panel.
Note: See TracChangeset
for help on using the changeset viewer.