Plugin Directory

Changeset 177374


Ignore:
Timestamp:
11/27/2009 03:28:23 AM (16 years ago)
Author:
GKauten
Message:
 
Location:
aweber-registration-integration/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aweber-registration-integration/trunk/aweber-registration-integration.php

    r176805 r177374  
    44Plugin URI: http://www.gkauten.com/aweber-registration-integration
    55Description: 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.6
     6Version: 1.2.8
    77Author: GKauten
    88Author URI: http://www.gkauten.com
     
    8686    }
    8787    if(get_awr_option("awr_opt_in") === false) {
    88       add_option("awr_opt_in", "false", "", true);
     88      add_option("awr_opt_in", "true", "", true);
    8989    }
    9090  }
     
    262262/************************************/
    263263
    264 function register($id) {
     264function awr_register($id) {
    265265  global $wpdb, $optin;
    266266 
     
    275275  if(get_awr_option("awr_opt_in") == "true" && $optin == true) {
    276276    // Opt-In Accepted - No Action Needed
    277   } else {
     277  } elseif(get_awr_option("awr_opt_in") == "true" && $optin == false) {
    278278    // Opt-In Declined
    279279    return;
     
    303303}
    304304
    305 add_action('user_register', 'register');
    306 
    307 function opt_in() {
     305add_action('user_register', 'awr_register');
     306
     307function awr_opt_in() {
    308308  if(get_awr_option("awr_opt_in") == "true" && (get_awr_option("awr_disabled") == "" || get_awr_option("awr_disabled") == "false")) { ?>
    309309    <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"/>
     
    312312}
    313313
    314 add_action('register_form', 'opt_in');
    315 
    316 function check_opt_in($login, $email, $errors) {
     314add_action('register_form', 'awr_opt_in', 10, 0);
     315
     316function awr_check_opt_in($login, $email, $errors) {
    317317  global $optin;
    318318  if(get_awr_option("awr_opt_in") == "true") {
     
    327327}
    328328
    329 add_action('register_post', 'check_opt_in', 10, 3);
     329add_action('register_post', 'awr_check_opt_in', 10, 3);
    330330 
    331331/************************************/
  • aweber-registration-integration/trunk/readme.txt

    r176805 r177374  
    55Requires at least: 2.8
    66Tested up to: 2.8.6
    7 Stable tag: 1.2.6
     7Stable tag: 1.2.8
    88
    99Integrates the AWeber contact registration script into your WordPress user registration process.
     
    6363== Changelog ==
    6464
     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
    6569= 1.2.6 =
    6670* 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.