Changeset 174440
- Timestamp:
- 11/17/2009 02:56:02 AM (16 years ago)
- Location:
- aweber-registration-integration/trunk
- Files:
-
- 3 edited
-
aweber-registration-integration.php (modified) (3 diffs)
-
readme.txt (modified) (5 diffs)
-
screenshot-1.jpg (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
aweber-registration-integration/trunk/aweber-registration-integration.php
r174025 r174440 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. 16 Version: 1.2.5 7 7 Author: GKauten 8 8 Author URI: http://www.gkauten.com … … 97 97 add_action("admin_menu", "aweber_registration_admin_init"); 98 98 99 function aweber_registration_admin_page() { ?>100 101 <?php102 // Credentials Form Submit103 if(isset($_POST["AWeber_Credentials"])) {104 // Update Settings105 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 }99 function 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 } 110 110 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 } 116 116 117 $message = "Your information has been saved!";118 }117 $message = "Your information has been saved!"; 118 } 119 119 120 // Settings Form Submit121 if(isset($_POST["AWeber_Settings"])) {122 // Update Settings123 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 } 128 128 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 } 134 134 135 $message = "Your settings have been saved!";136 }135 $message = "Your settings have been saved!"; 136 } 137 137 ?> 138 138 … … 179 179 </table> 180 180 </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> 181 219 </div> 182 220 -
aweber-registration-integration/trunk/readme.txt
r174382 r174440 5 5 Requires at least: 2.8 6 6 Tested up to: 2.8.6 7 Stable tag: 1.2. 17 Stable tag: 1.2.5 8 8 9 9 Integrates the AWeber contact registration script into your WordPress user registration process. … … 16 16 visit their website (http://www.aweber.com) and sign up for one. 17 17 18 If you find this plugin useful, please donate. Donations help pay for my AWeber account which 19 allows me to continue supporting and improving this plugin as WordPress and Aweber continue 20 to evolve on their respective paths. 21 18 22 Special thanks to Guru Consulting Services, Inc. (http://www.gurucs.com) for their 19 23 original platform on which some of these functions derive. … … 24 28 1. Activate the plugin through the 'Plugins' menu in WordPress 25 29 1. Visit the 'AWeber Integration' sub-menu under the 'Settings' menu in WordPress 26 1. Enter the required information retrieved from your AWeber control panel 30 1. 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". 27 31 1. The plugin will now automatically integrate with the WordPress registration process unless your settings reflect otherwise. 28 32 … … 38 42 If you wish to turn off the plugin temporarily, you can use the built in setting found in the 'AWeber Integration' menu. 39 43 44 = Are the registered users shown on the Registered Users screen the same as in my AWeber account? = 45 46 Probably 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. 47 However, 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 48 inconsistency 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 49 without having to go to AWeber to find out. 50 40 51 == Screenshots == 41 52 … … 43 54 44 55 == Changelog == 56 57 = 1.2.5 = 58 * Added Registered Users section to administration. 45 59 46 60 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.