iContact for WordPress

Download the widget from WordPress.org
This widget helps you install an iContact signup form on WordPress without any hassle. Don’t use iContact? You need it for this widget to work, so test drive it with a 15 day free trial.
Benefits of the iContact Widget
-
iContact Widget – the Best of Both Forms
The iContact Widget has the flexibility of the Automatic Signup Form: that you don’t need to deal with lots of HTML code, and when you update the form in iContact, simply re-save the widget, and your form will update. Your users won’t experience a Javascript loading delay, and all is good in the world. -
Improve the Code of iContact Forms
iContact forms are generated using imperfect HTML. The iContact Widget fixes this code. An example: the form has an input field with `name=redirect`, which should be `name=”redirect”`. The form corrects this, and 10 other HTML formatting issues. -
Define Custom Form Widths
The iContact form generator does not give you an option to change the width of the form. This widget allows you to define width in pixels or %. -
Define Custom Input Width
iContact forms have no default width, leaving the size of the text field up to the styling of the website’s theme. The iContact Widget allows you to set the size of inputs from 15 to 40 characters.
How to install
- Generate a signup form from iContact’s functional Signup Forms generator. Once completed, you are given two code options: Automatic Sign-up Form: (recommended) and a Manual Sign-up Form.
- Copy the Automatic Sign-up Form code
- Upload the iContact Widget to your website’s `wp-content/plugins` folder, or install it using WordPress’ Add New Plugin feature.
- Activate the plugin, then go to the Appearance > Widgets page
- Add the plugin to your sidebar by dragging it into the sidebar box.
- Paste the Automatic Sign-up Form code into the text area labeled “Automatic Sign-up Form Code.”
- Configure the other settings, and click “Save.”
- Your form will now be in your sidebar!
Common issues
- Fatal Error: Class ‘WP_Widget’ not found
This widget requires version 2.8 of WordPress. If you have any version previous to 2.8, this widget will not work. - Form does not update after making changes to the settings
To fix this issue, just hit save again until it displays properly. This will be addressed in future versions. – Fixed in Version 1.0.5
Next steps for the newsletter widget:
- Add HTTPS option to automatically switch form to secure mode – Version 1.0.1
- Add better error handling when there is no form code entered – Version 1.0.2
- Implement recommendations left in the comments! (leave some!)
Changelog
= 1.0.9 = * Should fix "The iContact file was not accessible for some reason." issue that was experienced by users with certain hosting configurations = 1.0.8 = * Fixed incompatibility for servers running PHP4 by adding `str_ireplace()` function definition = 1.0.7 = * Updated form to compensate for changed iContact javascript formatting (if your form shows `");` at the end of it, this will fix it) * Updated widget so that it will not load for users < WordPress 2.8, preventing errors * Improved wording for widget's code override option = 1.0.6 = * Added support for `curl` for servers that don't support `file_get_contents()` * Fixed issue where you had to save widget two times for it to update = 1.0.5 = * Added support for multiple widgets, and multiple instances of the same widget on a page * Improved iContact code validation by adding closing slashes to s * Fixed issue with multiple instances of same form preventing javascript validation * Added option to not display form in sidebar, if only using the shortcode * Changed shortcode structure to ``. Once configured, widget now provides a reference ID * Fixed shortcode bug that had inserted form before content, instead of where inserted in content. * Improved code to save update form on the first save = 1.0.4 = * Added `name=clientid` formatting cleanup = 1.0.3 = * Added missing closing tag to signup form. * Added widget description for the wp-admin Widgets page. = 1.0.2 = * Improved error handling, and prevented form from being shown until it works properly. * Added settings: Edit HTML capability, Change input width, Change Submit input text, Change form width = 1.0.1 = * Added PHP `file_get_content()` error handling * Added HTTPS form option = 1.0 = * Launched widget
Note: this widget is not managed or created by iContact; it’s by Katz Web Services, Inc. (KWS). KWS is not associated with iContact and iContact should not be contacted with any widget issues.
If you have problems with the widget, please leave feedback below.
If this widget does not work for you, use this iConctact Form tool instead and paste the generated code into a text widget.
Did this make your life easier? Was this information worth a buck?
Donate with PayPal (Much appreciated!)
Related posts:


Katz Web Services is a
{ 7 trackbacks }
{ 62 comments… read them below or add one }
Is there any way to modify the width of the widget? I tried modifying the Displayed HTML Form Code table width, but even though I save it won’t remember the change. It keeps reverting back to the default 260.
You need to update the configured form on the iContact site, then re-save the widget.
I will be adding the ability to edit the form in future iterations of the widget.
Hope that helps!
Sorry if I’m missing something, but the configured form only seems to allow me to copy the generated code. I don’t see how I can edit it.
That feature does not exist in this version of the widget, but I am planning on implementing that down the line.
Hi Zorak, that feature is now in version 1.0.2 of the widget. Thanks for the suggestion!
I’ve tried to use widget w/o success – sure it’s my inexperience. In Editing Plug-in window where your code says “Paste the Automatic Sign-up Form code below.”, I hit Enter to insert a line and pasted the form code. It doesn’t appear on the blog after I Activate. What am I doing wrong?
Try not hitting Enter first…? What version of WordPress are you using? You need 2.8 for it to work.
I’m using Ver. 2.8.2 and tried with w/o hitting Enter but it still doesn’t show up. Could it be because I am using an imported template? The template had a sign-up button on the sidebar but it is not there upon uploading to WP and doesn’t appear in the list of widgets to be activated.
The original template’s sign-up widget does not appear. The iContact one does (once activated) but cannot be “dragged and dropped” to activate it on the blog sidebar. When I try, a new browser tab opens, the sign-up form appears, the bottom status bar says “Stopped” but the upper tab status is stuck on “Loading.” When I return to the WP Widgets panel, it has not moved to the activated right side but remains in the inactivate, available listing.
I’m not sure exactly what is going on…but try upgrading to the newly released version of the widget (1.0.2) and see if that fixes the issue. If not, please let me know.
Also, the iContact widget won’t integrate into any pre-existing signup buttons or forms; it will only add a new form that looks like the one you generated using the iContact signup form generator.
Thanks, Zach. I did upgrade to the new version of the widget. It can now be dragged over and I’ve pasted in the code from the iContact form generator but it still doesn’t show up in the sidebar when I view the site. Any other ideas?
TIA!
Just to confirm, you should be pasting the “Automatic Sign-up Form” code, not the “Manual Sign-up Form” code.
If you are, and it’s not working, could you please email me the code you are pasting?
I’ve uploaded the icontact.php file to my plugins folder, then tried to activiate it but it gives me this:
Fatal error: Class ‘WP_Widget’ not found in /var/www/vhosts/irishcelticjewels.com/httpdocs/celtic-wedding/wp-content/plugins/icontact.php on line 66
How do I fix this?
The widget requires a minimum of WordPress 2.8. Upgrading to 2.8 will fix that issue!
With the upgrade, it’s working now but it appeared to need me to go all the way out to the Dashboard and come back in again. Thanks for your help!
Hey there, how do I remove the ‘email marketing by icontact’ text link?
I tried deleting it in the automatic code but it’s still there?
You can edit the code of the widget to achieve this, by deleting line 54 to line 60 (starting with
$attr = attr();and ending with$comment; }).Please note that this is the only way that I benefit from creating, maintaining and improving this widget. If you are planning on removing the link, please consider making a donation.
FWIW, I’m on 2.8.3, and whenever I installed this widget, my widget page kind of breaks. When the plugin is active, none of my widgets are dragable (AJAX seems to be broken) and the sidebars don’t show up. When I deactivate the plugin, all my other widgets work fine.
I’m using the Atahualpa 3.4.1 theme, which may be related.
I am running 2.8.3, and I am not having that issue. What other plugins are you using?
I am having the same problem. Usng 2.8.3. Even when I disable ALL other plugins this still seemingly breaks the “Ajax” as whall explained. I am getting the problem exactly as he expresses it :s …..
-Luke
Works great, thank you
I keep on getting an error with putting in the automatic form
I am changing the size of the box within the widget but that’s it.
I have seen it online before but now for whatever reason I’m getting this error so it’s not showing. Any thoughts?
thanks
Please email me the code so I can debug. The signup form is working on your site, though — I just signed up.
Thank you for such great information. Quick question: can icontact sign up form (from their website) be used as widget in free wordpress.com blog? (that is …not on wordpress.org)
Thanks!
Amy
Hi Amy, unfortunately, the widget can not be used on WordPress.com websites….
Sorry!
Hello,
I have 2 question
I have Thesis 151 and i want to add the icontact form at the bottom of every post. How can i do that?
and i want to replace the multymedia box with the icontact form. How can i do that?
Thanks for your help
getyourownbuisness.com
Hi Pierre,
If you edit the theme’s
custom_functions.phpfile (in the custom folder), add this code:// START CODE function kwd_add_icontact() { $form = '[icontact id=1]'; // the id should be the id of the iContact widget (it will tell you after you've saved it) $form = do_shortcode($form); if($form) { echo $form;} } add_action('thesis_hook_after_post', 'kwd_add_icontact'); // END CODEThat should do it!
Hi the widget is selectable and draggable but when I insert the automatic signup code I get the following error..
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in D:\hshome\twospires\fermanaghphotos.com\wp-content\plugins\icontact-widget\icontact.php on line 252
Any ideas appreciated, Thnx
The widget works by getting the external iContact javascript file and using that as the basis for the form. It would seem that your server does not allow that external file access.
Please contact your host and ask that
file_get_contents()be enabled on your account. I will do what I can to find alternatives in future versions.Thanks Zack – I’ll do that and let you know how I get on.
Zack, this was the response from my hoster
Good morning
allow_url_fopen is disabled on all our servers to remove a remote file inclusion vulnerability through badly written scripts.
If you wish to include remote files then you must use PHP’s curl functions.
Hi,
I want to install this in a header, but it won’t work – I simply get the [icontact] back. In the page itself, it works fine. is there a way to use in the header? I am not using a sidebar for this particular site but want to include the form on every page – hopefully at the top!
Thanks,
Kathy
Man, I just can’t get this figured out. I’m got the latest version of WP and and when I “activate” the plugin and go to the “widgets” screen, it doesn’t allow me to drag and drop. I see others going through the same issue, but have not seen a solution?
Please help!
Hi Adam, do you see any errors in the page’s source code?
I’ve got the same problem as Adam and the others. I use Icontact for several of my clients and this would be an excellent plugin to have, but ever time I activate it I can’t drap and drop anything on my widgets screen. Any help would be greatly appreciated.
Thanks!
@Kerry – Just to check, are you using WordPress 2.8 or above?
Hi everyone, sorry that this recent release hasn’t been working well for all parties. You can try to Downgrade to version 1.0.5 until I release a fix.
I’ll have it fixed shortly though. Thanks!
Zack,
Is the fix version 1.0.7 or are you still working on it? Just did an upgrade and having the same issue.
Should be I just go back to .05?
Thanks,
Adam
FYI
The checkbox option for making code changes works in reverse:
Don’t overwrite changes to HTML code
Use only if you are going to edit the generated code. This will prevent
changes in the settings. Uncheck to change form settings!
You have to check it in order to change form settings. Leaving it unchecked prevents you from making changes.
Hi Zack,
Having a problem getting the widget to work. Having installed & activated it, I go to “Add” it to the sidebar on the WP Widgets control panel. I get this error:
Fatal error: Call to undefined function: str_ireplace() in /path/to/site/wp-content/plugins/icontact-widget/icontact.php on line 254
So, I can’t even add the widget to the sidebar.
I’m using WP 2.8.4; ver 1.0.7 of the iContact widget.
Thanks.
Bob
Hi Bob,
Very helpful! Thanks –
str_ireplaceis only PHP5, which I didn’t know at the time….I will update that tomorrow.Thank you for reporting the error!
Hi Bob,
I’ve just uploaded a new version (1.0.8) of the plugin that fixes the PHP 4 incompatibility. It should fix the issue. Thank you for reporting the error!
I tried using 1.0.5; same error except on line 244
Hi,
Just upgraded to 1.0.8. The Displayed HTML Code field in the widget setup shows, “The iContact file was not accessible for some reason.”. I believe I followed the instructions properly. Any help here? Is this a bug with the widget or my brain?
cg
Hi,
I get the same error message as Chris Green and the Widget does not display.
Any feedback on this yet?
Hi Alec, are you using GoDaddy hosting?
If not, please tell me what hosting service you use, PHP version, etc. if possible.
Hi there…
Thank you for making this product… I have WordPress 2.84 automatically installed via godaddy hosting… I can drag it to the sidebar, but when I do, it states: “The iContact file was not accessible for some reason.” Any ideas?
Thank you.
Bill
Did you make sure you entered in your iContact code properly? Let me know, and please email me your form’s code to info@katzwebservices.com.
Thank you for getting back to me… it’s really just a matter of pasting the code into the widget app as it shows up in the column, right? I’m sending you the code.
Thanks again.
Bill
Thank you so much for your personal help. It works well… just some minor tweaks and I’ll be opening my website soon. Thanks again.
Bill
Zack,
Thanks for not giving up! The widget is working great now with ZERO effort or complications.
Great work!
Adam King
Hi Zack, I called Icontact about an opt-in form and they directed me to your site! Good for you!!
I’m having a small problem: when i input info into my form and hit enter the 404 error page comes up. How do I get past that?
Thanks for the form and I will send some money. It’s amazing that Icontact don’t take the time to make this form themselves. DUH!
Oh well, their loss. Your gain!
The problem is that your form is configured so that upon a successful signup, users are redirected to a page on your website that doesn’t exist. (
/Thank_You_.php). Changing that setting in iContact is how to fix that issue.You will need to re-save the iContact Widget after updating your form code.
If you’re technical, you can also edit the HTML generated by the widget and update the part of the code that is
<input type="hidden" name="redirect" value="http://www.thebusinesscoachformoms.com/Thank_You_.php" />Then, check the box that says “don’t overwrite changes to HTML code”.Thks for your time. Sorry that I had to bother you, but just my typing the question to you seem to have generated the answer in my subconscious because when I woke this a.m. the answer came to me.
Or maybe you transported the answer to me just by looking into it….hmmm!
In any case. THANK YOU! And much success to you!
Lady T
Hi everyone-
I just installed the Icontact widget on my wordpress blog. I am currently using the Thesis_16 theme. I have pasted the code from Icontact Automatic Sign-Up Form but I keep getting the following error:
“There was an error processing the form code you entered into the “Automatic Sign-up Form Code” field.”
I am not sure what the issue is… it seems like it should be as simple as cut and paste. Am I missing something?
I don’t see what’s the benefit of using this plugin when I can simply use the Text widget for the same effect? Am I missing something?
This seems like a pretty cool widget to have, not sure if I would want to buy it though. Wouldn’t hurt to do the trail I suppose.
does this work on wordpress.com blogs too?
can I use Icontact on WP.com, at all?
Unfortunately, you can’t have either javascript or forms in WordPress.com blogs.
You can use this tool to convert the iContact form from javascript to HTML, but that won’t even help.
I am trying to send information to both WP database and iContact at the same time. The standard iContact widget does not seem to allow for this. Is there an existing, effective method to achieve this results…I.E. Customer submits form information, Customer receives confirmation email, information is saved in WP DB, Information is also sent to iContact account.
Please Advise and Thanks in Advance.
This widget won’t do that. That functionality is a job for scripts using the iContact API, and I am currently developing a plugin structure to do that, but am not done with it. I’ll let you know when it’s ready.
I see you can embed the form in a post or page but can I use multiple icontact forms? I.e. one for consumers and one for vendors within a membership type environment?
Thanks.
The page embed [iContact id=X] is not working. The form is working fine in the sidebar and emails are posting to icontact list. But, I don’t want this on the sidebar. I want the form in the post.
Thanks for your help.