Plugin Directory

Changeset 174440


Ignore:
Timestamp:
11/17/2009 02:56:02 AM (16 years ago)
Author:
GKauten
Message:
 
Location:
aweber-registration-integration/trunk
Files:
3 edited

Legend:

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

    r174025 r174440  
    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.1
     6Version: 1.2.5
    77Author: GKauten
    88Author URI: http://www.gkauten.com
     
    9797add_action("admin_menu", "aweber_registration_admin_init");
    9898
    99 function aweber_registration_admin_page() { ?>
    100 
    101   <?php
    102     // Credentials Form Submit
    103     if(isset($_POST["AWeber_Credentials"])) {
    104       // Update Settings
    105       if(isset($_POST["awr_form_id"]) && $_POST["awr_form_id"] != "") {
    106         update_option("awr_form_id", $_POST["awr_form_id"]);
    107       } else {
    108         update_option("awr_form_id", "");
    109       }
     99function aweber_registration_admin_page() {
     100  global $wpdb;
     101 
     102  // Credentials Form Submit
     103  if(isset($_POST["AWeber_Credentials"])) {
     104    // Update Settings
     105    if(isset($_POST["awr_form_id"]) && $_POST["awr_form_id"] != "") {
     106      update_option("awr_form_id", $_POST["awr_form_id"]);
     107    } else {
     108      update_option("awr_form_id", "");
     109    }
    110110     
    111       if(isset($_POST["awr_unit_name"]) && $_POST["awr_unit_name"] != "") {
    112         update_option("awr_unit_name", $_POST["awr_unit_name"]);
    113       } else {
    114         update_option("awr_unit_name", "");
    115       }
     111    if(isset($_POST["awr_unit_name"]) && $_POST["awr_unit_name"] != "") {
     112      update_option("awr_unit_name", $_POST["awr_unit_name"]);
     113    } else {
     114      update_option("awr_unit_name", "");
     115    }
    116116     
    117       $message = "Your information has been saved!";
    118     }
     117    $message = "Your information has been saved!";
     118  }
    119119   
    120     // Settings Form Submit
    121     if(isset($_POST["AWeber_Settings"])) {
    122       // Update Settings
    123       if(isset($_POST["awr_disabled"]) && $_POST["awr_disabled"] != "") {
    124         update_option("awr_disabled", "true");
    125       } else {
    126         update_option("awr_disabled", "false");
    127       }
     120  // Settings Form Submit
     121  if(isset($_POST["AWeber_Settings"])) {
     122    // Update Settings
     123    if(isset($_POST["awr_disabled"]) && $_POST["awr_disabled"] != "") {
     124      update_option("awr_disabled", "true");
     125    } else {
     126      update_option("awr_disabled", "false");
     127    }
    128128     
    129       if(isset($_POST["awr_opt_in"]) && $_POST["awr_opt_in"] != "") {
    130         update_option("awr_opt_in", "true");
    131       } else {
    132         update_option("awr_opt_in", "false");
    133       }
     129    if(isset($_POST["awr_opt_in"]) && $_POST["awr_opt_in"] != "") {
     130      update_option("awr_opt_in", "true");
     131    } else {
     132      update_option("awr_opt_in", "false");
     133    }
    134134     
    135       $message = "Your settings have been saved!";
    136     }
     135    $message = "Your settings have been saved!";
     136  }
    137137  ?>
    138138   
     
    179179      </table>
    180180    </form>
     181    <h2><?php _e("Registered Users", "aweber_registration"); ?></h2>
     182    <p>This is a list of the registered users on your site who also requested to be signed up with AWeber. Please keep in mind that the list here may not reflect the list in your AWeber control panel since users must also confirm their intent to register in a separate email sent by AWeber.</p>
     183    <table class="widefat fixed" cellspacing="0">
     184      <thead>
     185        <tr class="thead">
     186          <th scope="col" id="username" class="manage-column column-username" style="">Username</th>
     187          <th scope="col" id="name" class="manage-column column-name" style="">Display Name</th>
     188          <th scope="col" id="email" class="manage-column column-email" style="">E-mail</th>
     189          <th scope="col" id="registered" class="manage-column column-name" style="">Registered On</th>
     190        </tr>
     191      </thead>
     192      <tbody id="users" class="list:user user-list">
     193        <?php
     194          $users = $wpdb->get_results("SELECT $wpdb->users.user_login, $wpdb->users.display_name, $wpdb->users.user_email, $wpdb->users.user_registered FROM $wpdb->users, {$wpdb->prefix}aweber_registrations WHERE $wpdb->users.user_email = {$wpdb->prefix}aweber_registrations.email");
     195          if($users) :
     196            foreach($users as $user) { ?>
     197              <tr>
     198                <td class="username column-username"><strong><?php echo $user->user_login; ?></strong></td>
     199                <td class="name column-name"><?php echo $user->display_name; ?></td>
     200                <td class="email column-email"><a href='mailto:<?php echo $user->user_email; ?>' title='e-mail: <?php echo $user->user_email; ?>'><?php echo $user->user_email; ?></a></td>
     201                <td class="name column-name"><?php echo date("F jS, Y", strtotime($user->user_registered)); ?></td>
     202              </tr>
     203            <?php } ?>
     204          <?php else: ?>
     205            <tr class="alternate">
     206              <td class="username column-username" colspan="4"><i>There are not currently any registered users.</i></td>
     207            </tr>
     208          <?php endif; ?>
     209      </tbody>
     210      <tfoot>
     211        <tr class="thead">
     212          <th scope="col" id="username" class="manage-column column-username" style="">Username</th>
     213          <th scope="col" id="name" class="manage-column column-name" style="">Display Name</th>
     214          <th scope="col" id="email" class="manage-column column-email" style="">E-mail</th>
     215          <th scope="col" id="registered" class="manage-column column-name" style="">Registered On</th>
     216        </tr>
     217      </tfoot>
     218    </table>
    181219  </div>
    182220 
  • aweber-registration-integration/trunk/readme.txt

    r174382 r174440  
    55Requires at least: 2.8
    66Tested up to: 2.8.6
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.5
    88
    99Integrates the AWeber contact registration script into your WordPress user registration process.
     
    1616visit their website (http://www.aweber.com) and sign up for one.
    1717
     18If you find this plugin useful, please donate. Donations help pay for my AWeber account which
     19allows me to continue supporting and improving this plugin as WordPress and Aweber continue
     20to evolve on their respective paths.
     21
    1822Special thanks to Guru Consulting Services, Inc. (http://www.gurucs.com) for their
    1923original platform on which some of these functions derive.
     
    24281. Activate the plugin through the 'Plugins' menu in WordPress
    25291. Visit the 'AWeber Integration' sub-menu under the 'Settings' menu in WordPress
    26 1. Enter the required information retrieved from your AWeber control panel
     301. Enter the required information retrieved from your AWeber control panel. This information is found after clicking "Get HTML" for the form you wish to use, and then selecting the "Raw HTML Version".
    27311. The plugin will now automatically integrate with the WordPress registration process unless your settings reflect otherwise.
    2832
     
    3842If you wish to turn off the plugin temporarily, you can use the built in setting found in the 'AWeber Integration' menu.
    3943
     44= Are the registered users shown on the Registered Users screen the same as in my AWeber account? =
     45
     46Probably not. The Registered Users section allows you to see which of your members elected to register with your AWeber account when they signed up with your website.
     47However, since AWeber also sends a confirmation email before submitting the user's information, there is a chance they might not have signed up, thus creating an
     48inconsistency between your AWeber control panel, and WordPress users screen. This feature is intended to give you an idea of how many users have elected to register
     49without having to go to AWeber to find out.
     50
    4051== Screenshots ==
    4152
     
    4354
    4455== Changelog ==
     56
     57= 1.2.5 =
     58* Added Registered Users section to administration.
    4559
    4660= 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.