You are here: Home » AWeber Super Simple

AWeber Super Simple

(Reading time: 7 – 12 minutes)

At Burning Man, work resumes Sept 9 2009.


Making AWeber Super Simple work for you is easy: activate the plugin, get your AWeber list settings correct, it will work!

If you don’t want to use it, simply deactivate it.

Very easy.

>>>NOTE: AWeber Super Simple plugin is under current development, and has been released for examination and testing by experienced coders. If you are a total beginner, this plugin is not yet for you. Please bookmark this page and check back later. Or, go ahead and install the plugin, and watch the summary description. When it’s ready, the summary description will say so. PLUGIN USER IS RESPONSIBLE FOR ALL USE OF THIS PLUGIN

NO WARRANTY EXPRESS OR IMPLIED

All that being said, it’s working sweetly for me.

There are a couple of bugs, which occur with the plugin installed and activated. If the AWeber settings are correct, the user will be signed up for AWeber regardless of the options settings:

  1. If the Newsletter box is visible and unchecked, user preference is ignored. Bug.
  2. If the Newsletter box is not visible, the user will still be signed up anyway. Bug. Definitely.

>>>UPDATE 8/28/2009: Work on AWeber Super Simple will resume after I get back from Burning Man on Sept 9, 2009.

>>>UPDATE 8/22/2009: More cleanup in the back end. Cases for registration worked out:

  1. Has Aweber, has blog: send to Already subscribed page.
  2. (Done) Has Aweber, no blog: send to Already subscribed page, register for blog.
  3. No Aweber, has blog: register for AWeber.
  4. (Done) No Aweber, no blog: register for both.

Plugin database table may be necessary for reimplementing AWeber comment registration. Not sure yet.

Lee Binder hacked a personal patch to disable opt-in check box while still registering for AWeber list. This will be implemented in the future as an “Automatic” or “Blind” signup. Will probably require explanatory text, set by administrator, informing users they will be getting signed up and to expect a confirmation email.

The Already Subscribed option works well, it would be nice to split the redirect to send the registrant to that page (or a new subscriber page) along with the login page. Suggestions welcome.

The current behavior of “blind” is to register for AWeber. This is a bug.

The next frontier is handling cases where the user opts out of registering. This currently a bug, user is signed up whether newsletter box is checked or not.

>>>UPDATE 6/29/2009: Version 0.1.2 now implements meta_onlist (i.e., already subscribed users). If user option isn’t set, list reverts to blog login redirect.

>>>UPDATE 6/21/2009:

Please test according carefully to instructions below before deploying to production use!

  1. Version 0.1.1 tagged and uploaded to WordPress.org.
  2. More code cleanup.
  3. Tested to work agreeably with ST Captcha and Login LockDown (LL has a probably harmless redirection bug).

>>>UPDATE 6/16/2009:

  1. Version 0.1 tagged and uploaded to WordPress.org.
  2. More code cleanup, redundant password functions removed.

>>>UPDATE 6/15/2009:

  1. Massive clean up and code reorganization is underway. At least 300 lines of bogus/useless code has been removed.
  2. Behavior issues are close to being dealt with.
  3. Next uploadable version will be hosted at wordpress.org. The repository is named and ready to go, still want to fix a few more issues before committing the initial public version.

Get AWeber signups on blog registration

AWeber opt-in option

AWeber opt-in option

AWeber Super Simple allows a person to sign up for your AWeber autoresponder at the same time they register for your WordPress blog. The code is derived from an existing plugin that didn’t work in a way useful for me.

NOTE: AWeber Super Simple is working well for me, but is an alpha version! I’m releasing into the wild for feedback. Use it at your own risk. Let me know what does and doesn’t work. Version 0.2 should be ready for prime time.

Download

AWeber Super Simple has just been uploaded to wordpress.org.

You can also install from your plugin browser through the administration interface.

How it works

Aweber Super Simple administration options page

Aweber Super Simple administration options page

Once the coding is finished (it’s pretty close now), the Aweber Super Simple plugin will work as follows:

  • Blog administrator has the option of displaying an opt-in checkbox on the blog registration form.
  • If the opt-in checkbox is displayed, the administration can choose the default values, checked or unchecked.
  • On user registration:
    • If the checkbox is checked when the user registers, the user will receive an opt-in invitation from AWeber.
    • If the checkbox is unchecked, the user doesn’t get an opt-in email.
  • If the user is already registered, and the checkbox is checked, user gets an opt-in email.
  • If the user is NOT already registered on the blog, but IS on the opt-in list, the user is registered, then redirected to an “Already Subscribed” page instead of the login page.

Testing

>>>NOTE: This section is not called “Using.” There is no “Using” section yet, not until Version 0.2. If you are a total beginner, this plugin is not yet for you. Please bookmark this page and check back later. Or, go ahead and install the plugin but don’t use it. Just watch the summary description. When it’s ready, the summary description will say so.

The current testing process is not difficult, but it is a bit tedious. Three browsers are involved:

  • Chrome: Logged in to a locally hosted WordPress site. NOTE: If you run your testing on localhost, you may need to install and configure an SMTP server as well. This is not difficult, there is plenty of information on the web. Handles WordPress user and plugin management.
  • Firefox: Logged in at AWeber, use for checking subscription information.
  • Safari: Represents a user registering for your website.

The test cycle runs about like this:

  1. (Chrome) Install and activate plugin.
  2. (Chrome) Add your list information on the options page (screenshot coming). Make sure to check the box allowing the user to sign up as well.
  3. (Safari) Register a new user for your blog. Make sure the sign up check is checked.
  4. Check your admin email to see whether the user got signed up.
  5. Check the email address for the user, who should be getting two emails:
    1. WordPress email: Check to make sure the log in works.
    2. AWeber email: click on the confirmation link. NOTE: It may take up to 3-4 minutes to process the registration email at AWeber. There isn’t anything you can do about this. Pay attention, sit and wait until it’s done. If it’s been longer than a few minutes, you can assume something didn’t work correctly.
  6. (Firefox) Check AWeber to make sure the new user is added to the list.
  7. At this point, you are done, but you will need to “clean up” a little bit to test again.
    1. (Chrome) Delete the new user using the WordPress administration panel.
    2. Unsubscribe the news user either by deleting from the subscription list on the AWeber site (Firefox, surest way), or by clicking the “Unsubscribe” link at the bottom of the first followup email. If you click the unsubscribe link, make sure to actually unsubscribe from the list when AWeber opens your subscription web page.
    3. IMPORTANT: (Chrome) Deactivate, then reactivate the AWeber Super Simple plugin using the Plugin -> Installed web page interface. This is a mis-implementation left over from the original code, and is high on the priority list for fixing.
    4. Now you should be ready to continue testing from Step 3 above.

Roadmap

  • Version 0.4:
    1. Smart deactivation
    2. i18n? Let me know…
  • Version 0.3: More style for registration box, check into conflict with more captcha boxes and other registration tools.
  • Version 0.2:
    1. Get rid of database table. It should not be necessary.
    2. Rewrite plugin class in better style using B2Template for initialization structure.
    3. Massive code cleanup to bring plugin up to WordPress 2.8 standards.
  • Version 0.1: Initial functionality

ChangeLog

  • Version 0.1.2 [6/29/2009] meta_onlist user option implemented for “Already Subscribed.”
  • Version 0.1: All initial functionality should be in.

Known issues

  • The options are not deleted when the plugin is uninstalled. This may be a feature for some people. It is very helpful during testing to retain options while cycling activation and deactivation.
  • Known fail if someone is removed from the blog, then re-registers. This is going to be tedious to deal with, but it mostly affects testing. The work-around for testing is to deactivate, then reactivate the plugin. Deactivation drops the plugin’s table, reactivation creates a new, empty table.
  • Possible double registration, but this might be an issue with how I set up my SMTP server and php.ini on localhost. What it looks like: the registrant gets two registration emails. The first has the valid password, the second has a different, invalid password.

More Plugins

Check out all of my plugins:

  • Microformat your recipes on WordPress with hRecipe.
  • Learn how to implement internationalization (i18n) with this really simple Demo Plugin i18n.
  • AWeber Super Simple helps you snag registered users for your AWeber confirmed opt-in mailing list, right when they register.
  • Demo Plugin Database is about the simplest possible database plugin anyone could write. If you’re having trouble getting your database code to work properly, start from this plugin and work forward.

{ 6 comments }

Dr Wordpress! June 16, 2009 at 10:16 am

Comments are very welcome! I have time to work on AWeber Super Simple through end of June 2009.

Mark Wilkinson July 31, 2009 at 11:12 pm

Hey, thanks alot, how do i get you software to work on my page, actually i’m looking for the registration form, and how to set up the members section of my page, thanks alot in advance

Dr Wordpress! August 1, 2009 at 8:31 am

You do understand you need an AWeber list first, right?

Lee Binder August 14, 2009 at 1:22 am

Hi Dave,

thanks for this awesome plugin. It works 100% in WP 2.8.4. I left 5 ***** at its site over at WP http://wordpress.org/extend/plugins/aweber-super-simple (was the first one to do that, amazingly).

For my client’s blog http://www.caryandwendyvalentine.com I duplicated the wp-login.php –> wp-register.php because I also want to keep the wp-login.php pretty much the way it is for log-ins as usual, adapted the wp-register.php to fit into the sidebar, swapped all instances of wp-login.php inside of it with wp-register.php, and included it via iframe (after trying to make a includable php out of the wp-register.php, which failed).

Then the log-in would only generate the WP login email. I then went into your aweber.class.php and in line 215 changed

$location = get_option(’siteurl’).”/wp-login.php?checkemail=registered”;

to

$location = get_option(’siteurl’).”/wp-register.php?checkemail=registered”;

Now the login via wp-register.php connects to Aweber again and has their system create the confirmation email. But no email from WP arrives (yes, I check the spam filter). The really strange thing is that, when I delete the newly created but never logged-in user in the WP control panel and then register again with the same email address, the wp-register.php DOES create the usual WP username & pw email …. (and as expected Aweber does not send out a second email to the same email address).

I am stuck here now. Basically I would want both, the original wp-login.php + my modded wp-register.php to both exist and work independently. I would very much appreciate if you could help us with that. You can look at the wp-register.php here: http://caryandwendyvalentine.com/wp-register.php_

A workaround I could very well imagine which would probably require much less of your time would be to use a downsized version of the wp-login.php, include that one via iframe into the sidebar, re-mod your aweber.class.php back to original, and mod the appropriate code in one of your plugin’s php files to only display the check-box + “Yes, sign me up” in the wp-login.php, but NOT in the wp-register.php since it does then not connect to Aweber anymore.

So if you could let me know for now how to either only show the option in the wp-login.php and hide it in any other php which calls the login function, or how to hide it completely as a total and blunt workaround, that would be really really great and make my head steam less again .. :-|

I hope you read this, and thank you very much in advance,
Lee Binder

Dr Wordpress! August 14, 2009 at 8:12 am

@Lee –

I like what I think you’re trying to do here, not sure if I completely understand it yet (not enough caffiene yet).

I’m definitely willing to work with you on this, for free, if you’re willing to commit to some collaboration time and share the results.

Typically, it takes me a couple of hours to make the context switch (read code, reread code, do a couple of test runs), then probably the rest of the day to implement what you want. I’ll spend the time to implement it cleanly, to allow what you want to do as a user option.

We’re going to need to chat about it. I sent you an email, we’ll connect up on Skype or similar.

Lee Binder August 25, 2009 at 11:29 am

Great Dave, thanks for all the current updates – thumbs up :) !

Comments on this entry are closed.

{ 1 trackback }