subscribe2

February 17, 2005 10:30pm 305 comments

Announcing subscribe2!

This plugin provides a comprehensive subscription management system for WordPress blogs. Visitors can subscribe and unsubscribe through a convenient web-based form. All requests require confirmation by email.
Administators can configure the email template used for new post notifications, as well the messages used for (un)subscription requests. Admins can also subscribe or unsubscribe users, as well as send out an email to all confirmed subscribers.

Download subscribe2-2.1.4.tar.gzDownload subscribe2-2.1.4.zip

This version integrates with the new WordPress 1.5 admin bar, while preserving backward-compatibility with WordPress 1.2.This plugin now requires WordPress 1.5 or above.
You will also want to make sure you resolve bug 902!

Notable changes:

  • A README!
  • Automatic installation!
  • More customizable!
  • Theme support!
  • Web-based administration for almost everything!

Once you extract the files and activate the plugin, you'll need to create a link somewhere pointing toward subscribe.php. You can manually edit your index.php (or sidebar.php or footer.php), or you could use the WordPress Links manager.

All user requests require a reponse to a confirmation email, to thwart hooligans trying to (un)subscribe people against their wishes. Those darned hooligans...

Thanks to aalex and BigJibby from #wordpress on irc.freenode.net for their troubleshooting assistance. Thanks also to everyone who's contributed to the development of WordPress.

UPDATE: I realized I had forgotten to update the permalink in the plugin's description field to point to this entry. While fixing that, I realized that I had also made a rather serious mistake in how I handle 1.2 users. I've fixed that as well, and am releasing version 1.5.1 to correct it. If you downloaded 1.5, please re-download 1.5.1!

UPDATE: Thanks to some great feedback, I've released version 1.5.2. The new features include: admin notification upon successful (un)subscribe confirmation, support for a comma-seperated list of categories that should not trigger an email announcement, and some general clean-up. The download links were moved up to the top of this post, and all updates will be appended down here at the bottom. Thanks for the feedback, and please keep it coming!

UPDATE: Version 1.5.3 fixes a minor oversight with the application of the CSS in the admin section. Prior versions applied the CSS to all admin pages, when they should have only included it on the Subscribers management page. subscribe.php is now theme-aware, too, for WordPress 1.5 users. It should pick up your header and footer, allowing you to better integrate the subscription page with your site.

UPDATE: Version 1.5.4 fixes a stupid mistake in 1.5.3 which would break WordPress 1.2 blogs. Sorry about that.

UPDATE: Thanks to Morgan for spotting a problem with the name and address used to send notification emails. Fixed. Also fixed is proper handling of blank or invalid data being submitted to subscribe.php.

Update Version 2.0.3: This is the long-awaited update! All messages are now controllable through the plugin's Manage screen. I've also tidied up options storage in the database, along with a few minor tweaks. Finally, this version includes a subscribe2.po file if you want to translate the administration screens to your native language.

If you're upgrading, you will probably want to RESET your options to the defaults, and then re-define them according to your tastes.

Update Version 2.0.4: Thanks to MarcoB for spotting a typo which broke sending excerpt-only messages. Fixed!

Update Version 2.0.5: Added strip_tags to plaintext email delivery, to remove HTML from post content included in the mail. Also added a check against the post's date to suppress notification of future-dated posts.

UPDATE Version 2.0.6: added Content-Type text/plain for plaintext mail delivery -- thanks Toto. Added manual override for batch delivery on Dreamhost (or other hosting providers). See the README for additional details about the new batching functionality. Many thanks to Wade Emmert and Joe Mezzanini for their patience and their assistance in testing this new functionality.

UPDATE Version 2.0.7: I incorrectly entered a comment in the 2.0.6 source (/ instead of //) which broke version 2.0.6 -- version 2.0.7 fixes this. Sorry about that.

UPDATE Version 2.0.8: Version 2.0.7 had two major mistakes. First, batch mode was incorrectly set to be the default mode of operation. Second, if less than one batch (30 subscribers) of recipients was present, nothing happened. Version 2.0.8 correctly sets the default mode of operation to non-batched mode; and it also correctly handles batching mode with less than 30 subscribers.

UPDATE Version 2.0.9: I've added the ability to supply a subject line for emails delivered to all subscribers through the Manage interface. If you don't care about this feature, there's no need to upgrade.

UPDATE Version 2.1.1: I finally figured out localization, and have modified both subscribe2.php and subscribe.php to support gettext translations. If you translate this plugin, please send me the .po and .mo files for your locale, and I'll make them available in the Subversion repository for others to download!

UPDATE Version 2.1.2: very minor tweak, to allow for translatable text on the HTML form buttons. You only need to download this if you plan on making a translation file.

UPDATE Version 2.1.4: This version (finally) gets right the use of the author's or admin's display name when sending update notifications. Also included are additional translation tweaks. German and Spanish translations are available! Thank you Michael and maira, respectively.

UPDATE Version 2.1.5: I am closing comments on this post. Please see the subscribe2 2.1.5 announcement for details. From now on, new releases will get new posts -- 260 comments is too many! ;)


Comments so far: Atom feed of the comments for this post

  1. Anthony 2005-02-18 21:46:31

    Thanks for doing this. Just a couple of questions.
    The link in the confirmation email seems to be wrong - it directs people to www.mysite.com/blog/blog/subscribe.php rather than mysite.com/blog/subscribe.php. Any idea why?
    Also, would it be possible to add a function to not notify for certain categories? I have a kind of "Asides" category that people really don't need to be notified about! Thanks.

  2. skippy 2005-02-18 22:44:37

    I'm not sure why the subscribe link is wrong, but I'll look into it. Thanks for the heads-up.

    As for categories, yes I could add an exclusion option. But as soon as I do that, someone else will pop up and say "You know, I really don't want these two categories to trigger email announcements..." and before you know it I'll need a complete list of categories with checkboxes to control which categories do and do not trigger email notifications!

    I'm not opposed to making that interface, mind you; it'll just take a while.

  3. indi 2005-02-19 05:29:22

    Looks like an excellent plugin. I'm reporting a bug I had for reference, but it's a plugin conflict, hence not your problem. I have the Subscribe to Comments plugin and it gives the following conflict.

    Fatal error: Cannot redeclare maybe_add_column() (previously declared in REALPATH/wp-content/plugins/subscribe-to-comments.php:252) in REALPATH/wp-content/plugins/subscribe2.php on line 169

    Going to deactivate Subscribe to Comments and see

  4. indi 2005-02-19 06:56:07

    works if you activate subscribe to comments after this plugin, but subscribe to comments doesn't seem to work on 1.5 anyways

    thanks again for a great plugin

  5. skippy 2005-02-19 09:16:29

    Thanks for the notice, Indi. I'll adjust the s2_install() function to check whether upgrade-functions.php has already been included before trying to include it. Basically, change the linerequire_once (ABSPATH . '/wp-admin/upgrade-functions.php');toif (! function_exists('maybe_add_column')) {
    require_once (ABSPATH . '/wp-admin/upgrade-functions.php');
    }

    Anthony:
    The portion of the code that generates the link used in the confirmation email(s) looks like this:$link = get_settings('siteurl') . $_SERVER['PHP_SELF'] . "?x=" . $x;which first gets the base URL of your blog, as defined in your Options page. The $_SERVER['PHP_SELF'] is the name of the currently executing script, inlcuding path. So the quick fix would be to simply edit s2_send_confirmation() to look like this:if ('add' == $action) {
    // send an email with a link to confirm their address
    $x = "ax" . md5($email) . "x" . $id;
    $link = get_settings('siteurl') . "subscribe.php?x=" . $x;
    $body = str_replace("LINK", $link, $message['add_confirm_email']);
    } elseif ('delete' == $action) {
    // send an email with a link to confirm their address
    $x = "dx" . md5($email) . "x" . $id;
    $link = get_settings('siteurl') . "subscribe.php?x=" . $x;
    $body = str_replace("LINK", $link, $message['delete_confirm_email']);
    }
    I had used the variable in case someone wanted to rename the subscribe.php file, for any reason. What I should do is call basename($_SERVER['PHP_SELF']), to strip the path info.

    Thanks to both of you for the info. I'll fix it up and make a 1.5.2 release this weekend.

  6. Anthony 2005-02-19 10:26:53

    Better, but now it leaves out a slash! It directs to mysite.com/blogsubscribe.php
    And now I even have another request for some future release. Would it be possible to have the plugin notify me when somebody subscribes?
    Thanks for the quick response.

  7. skippy 2005-02-19 10:29:11

    Just put a forward slash in front of subscribe.php: get_settings('siteurl') doesn't include any trailing slash. Sorry for the oversight.

    Sure, I can add a notification to you, the blog owner, when someone subscribes or unsubscribes. I assume you'd only want it on a confirmed operation, and not just every (un)subscribe request?

  8. Anthony 2005-02-19 14:17:22

    Ok, I've installed 1.5.2. I've subscribed, unsubscribed, posted to two different categories I didn't want to send notifications for, and one I did, and everything worked perfectly. Thank you! Well, the permalink used the post id rather than the post slug, but it worked and that's what counts.
    Now if only it were easier to style the subscribe page, maybe integrate it with a theme? But great work - a definite boon. Thanks for updating so quickly!

  9. skippy 2005-02-19 14:56:16

    I'm using get_permalink(), which should construct a permalink for you based on your rewrite rules, but I'll double-check that portion soon.

    I still haven't upgraded to WP 1.5, so I'm still fuzzy on theme support. It's definitely on my todo list!

    Thanks again for all your help.

  10. Ruby Sinreich 2005-02-27 17:38:18

    I had a problem with this trying and failing to call my sidebar.php (I don't have one defined), but I commented that bit out and it displays fine. Now to see if it works... ;} (Using WP 1.5)

    Thanks for another great plugin, Skippy!

  11. Anthony 2005-02-27 18:23:34

    Just upgraded - great theme support! Cheers!

  12. skippy 2005-02-27 18:28:40

    Thanks Ruby and Anthony, for the feedback. Themes present a unique challenge, since different themes will use different theme elements (sidebar, header, footer, etc). There's only so much I can do to integrate this with every possible theme.

  13. Morgs 2005-02-28 06:56:54

    Thanks Skippy for this plugin.

    Just a couple of questions:

    1. Can I use this plugin to send HTML emails?
    2. I put the subscriber.php file in the main dir (.net.au/subscriber.php) not in the wp-content/themes/default/ folder. Where should I have put it? It works for me in the main directory but I had to lay with things a bit to get my header to show etc. Noticed that this plugin is supposed to support themes. Where should I have put the file and how best/easiest could I have used the file?

  14. Morgs 2005-02-28 08:06:08

    Oh, and how do I manage which categories trigger notifications?

    Thanks

  15. skippy 2005-02-28 08:39:51

    Morgs:

    1. I personally dislike HTML email, so didn't include it in subscribe2. You can send HTML emails, but you'll need to modify the headers sent by the mail command. Check the PHP mail() documentation, and the user comments for working examples.

    2. subscribe.php should live in your WordPress document root (the directory in which you'll find wp-admin, wp-include, and wp-content).

    3. Theme support is provided. subscribe.php should pick up your active theme from the WordPress database. It then includes header.php, sidebar.php, and footer.php. If you're not using those, or if you've renamed them, you'll need to edit subscribe.php to accomodate your theme.

    4. All categories trigger a notification, by default. You can control this by editing wp-content/plugins/subscribe2.php. Look for the following line:// a comma-seperated list of categories that SHOULD NOT generate an email
    $categories_to_skip = "";
    Provide a comma-seperated list of category IDs you want to exclude. Any new post that is in any of the excluded categories will not trigger an email.

    Feel free to email me, if you still need help!

  16. Morgs 2005-03-01 08:05:54

    Thanks Skippy,

    That explains things a bit better for me. I agree with you on the HTML email thing, it's just that I am doing a website for my girlfriends small business, and she well wants the email sent out to look 'Pretty' - women.

    Anyhow, I am going to ask on IRC and the Wordpress forums and see if I can't find someone to give me a hand implementing it. Had a go myself, but my limited PHP knowledge (only up to chapter 3 in my PHP book) didn't get me far.

    I will send you what ever we come up with. Thanks again. Great plugin.

  17. Morgs 2005-03-02 06:33:05

    OK, now I have a bug I think. I am using the subscribe.php file and the navbar you might be familiar with from the Binary Bonsai site. My navbar is showing but when I click on a link it tries to go to: http://www.cherryblossom.net.au/subscribe.php?page_id=7 instead of http://www.cherryblossom.net.au/?page_id=7 Any ideas on how to fix this?

  18. Morgs 2005-03-02 21:45:41

    Sorry to bother you again buddy. Thanks for all the help so far.

    I am having a problem.

    When I installed the plugin I was using one email address in my WordPress profile as a testing email address. I changed the address in my profile once I was happy with my testing but notifications are still being sent using the old email address. Is this how it is supposed to work, or can I fix/change it somehow?

    Thanks

  19. Raena 2005-03-05 12:54:14

    Peskiness: Not everyone owns their own domain names, and even if they do, they might be using some other address to handle this stuff.

    Say that the admin's email address is something that they don't necessarily own, like gmail.com. If another Gmail user comes along and tries to subscribe, they'll get told to bugger off, cause the pattern matching you're using only checks whatever's after the @.

    Here's what I changed to fix this for myself:if ( ($youremail == $email) || (preg_match("/" . $pattern . "/", $email)) ) {
    main('self');
    }

    to

    if ((strtolower($youremail)) == (strtolower($email))) {
    main('self');
    }

  20. skippy dot net » one and a half 2005-03-05 20:18:51

    [...] e enhanced plugin API is leaps and bounds above what it was in 1.2. In addition to my own subscribe2 plugin, I’m also using gravatars and RunPHP. Thanks to the inimitable Jennife [...]

  21. Jon 2005-03-07 05:10:21

    I've installed it, and it seems to work properly....however, the subscribe.php page (http://www.jonular.net/blog/subscriber.php) is not displaying the footer properly, and it has changed the font.

    I'm using Manji2, which isn't that different from Kubrick (if I understand things properly). Any help?

  22. Eirikso 2005-03-08 15:54:23

    I have installed the plugin on one of my blogs. It works fine if I post using the WEB-gui in WP.

    However, I very often update my blog using mail from my mobile phone. When I post to my blog this way the notification does not work. No mails are sent, despite the fact that new posts are succesfully added to the blog using wp-mail.php

  23. skippy 2005-03-08 16:00:18

    Eirikso:
    The XMLRPC API does not trigger the publish_post plugins. See bug 967 for details, and share any additional info you can.

  24. Eirikso 2005-03-08 17:40:50

    Guess I just have to wait in patience for version 1.5.1 then... Thank you for an excellent plugin!

  25. www.eirikso.com » Blog Archive » Experimenting with automatic email notifications 2005-03-09 03:47:03

    [...] Experimenting with automatic email notifications Using a plugin called subscribe 2 I have set up a system that lets my readers subscribe to automatic email notificati [...]

  26. Ruby Sinreich 2005-03-12 22:29:01

    Thank you for the update! I was having some issues with that ugly "from" address. One thing I would dig in a future version is support for sending HTML e-mail since the blog post has HTML content.

  27. MetroDevil 2005-03-14 22:26:32

    Hi,

    I'm having 2 issues:

    1) I've added a category that shouldn't generate an email, but when I publish to that catagory it still sends an email.

    2) It seems that I can't subscribe/unsubscribe if my email address has the same domain as the admin account.

    Any ideas?

    Thanks,
    md

  28. MetroDevil 2005-03-15 20:13:48

    Skippy has helped resolve my issues ...

    1) I was using the category name and not the ID.

    2) I should have read this comment by Raena a little more closely:
    http://www.skippy.net/blog/2005/02/17/subscribe2/#comment-1293

    Thanks again ... great script!

    -md

  29. CHall 2005-03-20 16:12:37

    I have just downloaded the subscribe2 and i get below error.
    I am using wp 1.5 and I get the error when I press Subscribers in the manage menu.

    Thanks

    Fatal error: Cannot redeclare subscribe2() (previously declared in d:\customers\mysite\wwwroot\news\wp-content\plugins\subscribe2.php:94) in d:\customers\mysite\wwwroot\news\wp-content\plugins\subscribe2.php on line 170

  30. Ariah Fine 2005-03-28 20:59:52

    Save my life!
    I'm working on a project for school in which Subscribe2 would be perfect to use. BUT I'd like to use it twice, or rather double the number of emails.

    I'm trying to do a sort of tell-a-friend sort of email sign-up. So I'd like folks to put in two emails rather then one (theirs and a friends) and then I would like for it to send out a different email to each of them.

    I figured there are two ways of doing this:
    1) putting two subscribe plugins on my site.
    *I tried this by changing every "2" to a "3" I uploaded it and I get a:
    Fatal error: Cannot redeclare main() (previously declared in /homepages/22/d95365795/htdocs/tithe/subinsert.php:130) in /homepages/22/d95365795/htdocs/tithe/subinsert3.php on line 130
    Any advice?

    2) I can incorporate an extra email field into the current plug-in.
    *I tried to start doing this but I got confused. I was gonna just copy and paste everything into one thing but we'll, I'm lost.
    Anyone willing to do that for me?

    I NEED this by Friday, absolute necessity.

    or something else that works well! let me know.

  31. Marco 2005-03-31 08:36:16

    Hello,

    I was successfuly using the subscribe2 on my WP 1.5 blog plugin until last week, but today after publishing a post (via web gui) I'm not receiving any notification anymore. Note that the "Send" interface in the "manage subscriber" gui is still working fine (I just moved all the subscriber to the unconfimed list except me, and made a few exercises posting fake posts...).

    Any idea? Thanks, ciao, Marco

  32. Damo 2005-03-31 21:42:42

    I've installed subscribe2 on my WP 1.5 install - I can add users manually using the management tool but when I create a link to the subscribe.php file, it returns a 404 file not found.

    I'm 100% positive the file exists, permissions are correct etc etc.

    This is on IIS 5.0

    Hope someone may have an idea for me, I'm lost!

    Cheers

  33. Alex 2005-04-01 10:30:25

    Hi friends,

    It`s the best script i have seen!!! Thanks a lot.

    My question is:

    How can I put the subscribe field on one page. Without a link to new page. Just to add e-mail, not to reload the page.

    Thanks again for best script!!! :)

  34. skippy 2005-04-01 10:41:58

    Alex, thanks for the kind words. To display the entry form on any page, use something like the following:

    <form method="post" action="/subscribe.php">
    Your email: <input type="text" name="email" value="" size="20" /><br />
    <input type="hidden" name="action" value="add" />
    <input type="submit" value="Send!" />
    </form>

    Adjust as needed.

  35. Alex 2005-04-01 11:23:37

    Thanks skippy for advice the script is working good but when i press send it go to another page with subcribtion form. And there can add the e-mail?

    Why?

  36. MetroDevil 2005-04-04 21:46:14

    Hey Skippy ... me again.

    When I use the admin section to send a mass email, why is it that I cannot use an apostrophe? Is there a way around that?

    For example if my email has the word doesn't ... it comes through as doesn't

    Can we remove the slash?

    Thanks again,
    MD

  37. skippy 2005-04-04 21:53:23

    Yes, I've just recently discovered that I forgot to call stripslashes() on user-generated mail sent to subscribers.

    I'm putting the final touches on a major update, which I hope to release soon. This new version will only work with WordPress 1.5 and above.

  38. MetroDevil 2005-04-05 09:20:31

    Cool ... I'll keep my eyes open for the update!

    Thanks again for a great script!

    -md

  39. RaynerApe 2005-04-13 05:15:06

    I am having a small question before I install and test this - so sorry if this is really obvious to people who have already used it - does it mail complete stories to the user or simply mails them a "come here to read the story" message? I would love it if it could mail complete stories - I know a blog has to attract users back on some basis, but I am working with some really lazy people here. ;)

  40. skippy 2005-04-13 07:24:36

    Rayner: the current version sends just a notice that a new post exists. I've been sitting on a new version that allows you to send the entire post to subscribers. I keep telling people that I'll release it "shortly", but never do. =) Hopefully I can get it released before this weekend.

  41. echo 2005-04-13 17:22:48

    Would like ability for end users to subscribe to individual categories.
    Consider this a feature request, + also a question if you see this possible by configuring multiple installs of the plugin, each configured to exclude all other categories but one (there are only 3). Thanks for this plugin, it looks excellent!

  42. skippy 2005-04-14 07:21:44

    Echo: At this time, I don't plan on adding per-category subscription options. In your case, it might succeed with only three categories; but some folks have dozens of categories, which significantly complicates the idea.

    You might want to take a look at my cat2mail plugin, which does per-category email notifications to single email addresses. It was designed for getting blog items cross-posted to mailing lists. It only subscribes one email address; but you could either modify it for your needs, or set up a mailing list for use with it.

  43. rawlinson - us Blog Archive Wordpress 1.5 2005-04-14 21:38:42

    [...] with simple solutions. First for the subscribers I installed a nifty plugin titled “Subscriber2” that replaces my old subscription plugin (that doens’t seem to work wi [...]

  44. echo 2005-04-15 16:37:11

    Love subscribe2, thanks!
    I have the subscribe form in the sidebar, and everything works great.
    The only issue I have is I'm using php for a dynamic menu highlight (demo in codex), and the /subscribe.php is triggering the main page menu css (showing it's current page state).

    The dynamic menu highlight uses (is_page()) and I don't know why subscribe.php it's included with my home (also using Page to Front plugin) probably something to do with it is up in the root level of WP.

    Can you tell me how to target when I'm on /subscribe.php in an elseif statement (from header.php)?

  45. Dan Milward 2005-04-20 19:20:37

    I have a slight problem with my subscribe page. For some reason the form is being displayed at the bottom of the page and not the top of the page. Can anybody help me? I am using WP 1.5 with the default theme.

    You can see it here:
    http://www.3g.co.nz/subscribe.php

    I also have a feature wish. It would be super cool if you could specify the subject, and do some text formating when sending and email from manage > Subscribers

  46. skippy 2005-04-20 19:24:46

    Dan: the problem you're experiencing is that the Kubrick theme calls the sidebar at the end of the page, whereas my subscribe.php file calls it at the beginning. Simply edit subscribe.php and move the line:get_sidebarfrom the top to the bottom, just aboveget_footer

    Be sure to enclose it in <?php ?> as needed.

    I'll keep your feature request in mind. Thanks!

  47. Dan Milward 2005-04-20 21:12:41

    Thanks skippy! I really appreciate it that you've taken the time to give me a hand :)

    Here's another thought; I think it would be cool if you could add the subscribe form to a page as opposed to a link. In my mind links are more designed to take people away from your site and pages are a part of the site.

    I'll keep coming back to see what your thoughts are. Thanks again.

  48. skippy 2005-04-21 11:20:19

    Dan: you can include the form on pretty much any page you want. I include it on my syndicate page. You could include the HTML form in your sidebar, to display on every pageview, if you so wanted.

    You just need to make sure that the form POSTs to subscribe.php. I use a seperate file to handle all subscription activities to make sure that WordPress doesn't try to gobble up the submitted data by accident.

  49. Un violon à Paris » Archives du blog » Remerciements / Credits 2005-04-21 13:40:13

    [...] ements dans la langue de Shakespeare. First I would like to thank Skippy for his great Mailing List Subscription Plugin. Highly customizable and easy to set up: keep up the good work [...]

  50. MarcoB 2005-04-25 07:14:59

    Hi, Skippy.

    The plugin doesn't seem to install correctly on my "preview" blog. It doesn't create its DB table, nor displays options in the admin panel. The links in the menu bar are there, but the page is empty. The subscription form is displayed correctly, but it throws an error as the table doesn't exist.

    Using WP 1.5...

  51. skippy 2005-04-25 07:20:08

    MarcoB: have you fixed bug 902?

  52. MarcoB 2005-04-25 07:25:38

    Of course not :)

    I just thought the fact the table didn't exist meant it was another thing!

    Ok, I need to stop thinking and go back to patching, heh...

    It's working now... Thanks... BTW, your site's theme/template is great.

  53. MarcoB 2005-04-25 07:28:08

    Oh one last thing!

    Where does the compiled .mo localization file go?

  54. skippy 2005-04-25 07:39:07

    MarcoB: thanks for the kind words!

    The .mo should go in your wp-content/plugins directory, according to the instructions on the WordPress codex.

  55. MarcoB 2005-04-25 09:36:07

    Hey there, back again with a quashed bug.

    On line 107 of subscribe2.php, string 'excerpt' is misspelled.

    This prevents, at least on my system, the script from correctly adding a post excerpt when the appropriate option and/or the EXCERPT token is used in the message template:

    if ('post' == $s2['s2_excerpt']) {
    $content = $postdata['Content'];
    } elseif ('exceprt' == $s2['s2_excerpt']) {
    $content = $postdata['Excerpt'];
    } else {
    $content = '';
    }

    I'm also looking into another problem: text-only mail sent by the script do not correctly display non-ASCII chars, such as accented letters.

    Not sure if it's a problem with PHP string manipulation funcs, or with mail();. Any ideas?

  56. skippy 2005-04-25 10:12:01

    Thanks, MarcoB, for the bugfix! I'll get a new download posted directly.

    As for non-ASCII in text-only mail: I think the issue is my use of mail() instead of mb_send_mail(); but I'm not sure. If you have any suggestions on the matter, feel free to email directly.

  57. Claudio Gusmão 2005-04-25 16:07:46

    Hi!
    When I'd activate this plugin, the link that I get in the menu header is something like that http://localhost/wp/wp-admin/c:%5Cinetpub%5Cwwwroot%5Cwp%5Cwp-content%5Cplugins%5Csubscribe2.php
    Any idea? The plugin don't create any table in MySQL... :(

    Thanx

  58. skippy 2005-04-25 16:56:59

    Claudio: I don't have an IIS server with which to test, so I won't be able to help too much, unfortunately. This sounds similar to a complaint I had that the __FILE__ constant doesn't get set properly on Windows servers. You could try replacing the __FILE__ declaration on lines 20 and 21 with "subscribe2.php", and see if that works.

  59. jsrdrnr 2005-04-26 04:10:33

    One quick question...what is the "confirmation" link supposed to be? Is there a file that I missed or something? Please advise.

  60. skippy 2005-04-26 05:42:53

    jsrdrnr: the "confirmation" link should be a hyperlink pointing to subscribe.php, stored in the root of your WordPress installation.

  61. Claudio Gusmão 2005-04-26 07:37:37

    Thanx skippy
    Well, simply I changed the lines replacing the __FILE__ constants with '' and works well.
    I used Windows only tests and config to Wordpress in my Website Host (Linux Plan) the plugin works well too.
    Thank you...
    Claudio

  62. jsrdrnr 2005-04-26 10:49:36

    Duh...minor brain freeze there...as you see I posted "terribly early in the morning" and had not yet had sleep. I have it now. Thanks for your help.

  63. james 2005-04-27 10:11:29

    Skippy, I just installed your plugin and I am having the problem that for some reason when you go to the subscribe.php the mailing list part is pushed down below my sidebar stuff.

    You can take a look here http://www.americantheatreconnection.org/subscribe.php

    Have you any suggestions or have you ever seen that before?

    Great plugin by the way, very useful. My one suggestion would be for the admin to be able to choose whether to use it to send out an e-mail everytime there is a post or only selected posts as well as the ability to just send a mass e-mail.

  64. skippy 2005-04-27 11:33:44

    james: the problem you are experiencing is caused by the location of the get_sidebar() function in subscribe.php. The code looks like this, starting at line 77:

    // Display the page
    get_header();
    get_sidebar();

    but that doesn't work for Kubrick-based themes. Simply move the get_sidebar(); line down, so that it is called just before get_footer();, on line 104.

    If you want to post without sending the notice to your subscribers, you have two work-arounds:

    • De-activate the plugin, make your post, then re-activate your plugin.
    • Define a category to not generate notifications; post your item into that category; then edit your post and re-assign categories as needed. My plugin only executes when posting a new item, not when editing an already-posted item.

    As for mass-mailing, that's already present. Click the Manage menu, select Subscribers and scroll down.

  65. james 2005-04-28 08:25:33

    Thanks Skippy! That fixed it. And thanks for the suggestions on the work arounds for sending out everytime. I knew there was a mass e-mail function I guess I just worded my question oddly.

    Thanks again, and again great work on this plugin. One of the most useful wordpress plugins I've seen.

  66. Murat KOCUK 2005-04-30 16:54:39

    Thank you...

  67. Antonio Rojilla 2005-04-30 23:13:23

    Nice plugin, thanks for the work! But... is there a way to change it so it only sends one e-mail every week or month? I started my WP site just yesterday but being a news blog I plan to write 2 or 3 posts a day (maybe some days more, maybe some days less) so sending e-mails everytime I post a new article can be too much for both my users and my server... I would like to send just one single e-mail every week showing the excerpt of all articles that have been posted during that time... is it possible?

    Anyway, thanks for the plugin and for your time!

  68. skippy 2005-05-01 08:43:13

    Antonio: subscribe2 is probably not the solution you need. To introduce a queueing mechanism (or per-user email formats, which is another popular feature request) would significantly complicate this plugin; and would basically involve re-inventing several wheels.

    This plugin is not meant to be a comprehensive mailing list manager; nor is it meant to replace content syndication like RSS or ATOM feeds. It's designed to send new post notifications to people who are not currently using content syndication. It is my hope that users of this plugin make some effort to educate their subscribers about aggregation (using RSS or ATOM), but I'm not in any position to enforce that.

  69. Mel 2005-05-04 00:49:47

    This has to be one of the best plugins I've played around with yet. Thanks so much for the hard work you've obviously put into it. :)

  70. the life cycle of a fruit fly » Announcing: spam! Straight from me to you! 2005-05-04 00:59:46

    [...] blog! I know! How exciting! Subscribe via email: Thanks to Skippy for the the Subscribe2 plugin! (If you’re tracking my blog via RSS and I drove you crazy while I w [...]

  71. Peter 2005-05-04 09:51:33

    Hi great script.

    I have a problem. When i press Send the has reloadet with new form and dont send informatin.

    see link: http://www.lucrat.net/index.php

    Pls help me...

  72. Billy 2005-05-04 13:57:00

    I recently added your plug-in to my new WordPress site. I really like the idea behind it and how it works...thanks for the hard work.

    Two Questions:

    1.) Regarding the subscription page: http://www.flavaurth.com/subscribe.php. For some reason the page layout (colors, borders, etc.) are changed when this page loads. You can see how it should look by going to http://www.flavaurth.com/.

    2.) Regarding the e-mail functionaliaty: I was testing the e-mail out and have subscribed myself to my own blog. Then added a new blog entry. The e-mail got sent "TO" my Webmaster e-mail Address and was "From" the same Webmaster Address. Shouldn't it get sent to "TO" all the subscribers? Any help is appreciated.

    Thanks,
    Bill

  73. skippy 2005-05-04 14:05:23

    Billy: I think the style problem is due to the location of the get_sidebar() template tag. The subcribe.php file in the archive you downloaded calls the sidebar first, before the main content; whereas a lot of themes (WordPress' default theme, among them) call the sidebar at the end, after the content.

    As for the mail delivery: the plugin is not a full-blown mailing list manager. As such, in order to protect the email addresses of subscribers from one another, my plugin sends the email to the blog admin, and blind carbon copies everyone else.

  74. Billy 2005-05-04 15:03:19

    Thanks. I will check on the get_sidebar() template tag.

    As far as the e-mailing functionality goes. I checkecked the e-mail address it should have been blind carpon copied to and have not received it. It was only sent to my webmaster address.

    Any thoughts?

  75. Billy 2005-05-04 18:51:33

    Where does the subscribe2.po file need to go? Does it need to be in the directory for this plugin to function correctly?

  76. Slawek 2005-05-08 03:24:13

    hello. Is it possible to send message by mail if post is drafted in wordpess? I used subscribe2 but it only informed about posts which are published .If it is possible ,could someone tell me how to do it ?

    Slawek

  77. skippy 2005-05-08 07:08:32

    Billy: if you're using English as the language for your WordPress installation, then you don't need the subscribe2.po file at all. If you're not using English, then you can use the .po file to create a .mo file, named subscribe2-xx_YY.mo where xx_YY is the language locale you're using (like de_DE for German, for example). Stick the .mo file into wp-content/plugins/ and the plugin should automatically translate the admin interface according to the language file you're using.This page might help explain a bit more.

    Slawek: there is no option for this plugin to send an email when a draft is saved. You could change line 14:

    add_action ('publish_post', 'subscribe2', 8);

    to use save_post instead, perhaps, but that will cause an email to be sent every time a post is saved, regardless of its post status. You'd need some conditional logic to check the status of the post if you only want to send emails on the Save Draft action.
    I think I see where you're going with this. Blog authors could write posts, but only be allowed to save them as drafts. When a drfat is saved, a blog admin is notified by email, and invited to approve the item for posting. That sounds like a great idea! If you get it to work, do please share it with the community!

  78. Michael G. Cohen 2005-05-08 11:07:39

    First thank you for your great work...I am trying to get your plug in working, but the options screen comes up completely blank (though I can manage the plugin fine).

    Any thoughts?

  79. skippy 2005-05-08 15:22:24

    Michael: most likely, you have not yet addressed WordPress Bug #902.

  80. nikki 2005-05-10 13:39:26

    Hi,

    Many thanks for this, but... (!)

    Is there any way to support future posts? For example, if I publish a post now with the timestamp edited to tomorrow, is it possible to have the corresponding email sent out tomorrow rather than now?

    er, does that make sense?!

  81. Carey 2005-05-10 15:44:09

    This is such a great plugin. Unfortunately, I can't get it to work. After I subscribe, there is an error message that comes up on the page that says the table does not exist in wp. What do you recomment that I do?

  82. Carey 2005-05-10 16:47:04

    It's working beautifully now. Thanks!

  83. skippy 2005-05-10 17:33:56

    nikki: currently there is no facility to send notifications about future-dated posts at the time they "go live". If you future-date a post, the notification email will be sent as soon as you click "Publish".

    I could (perhaps should) update the plugin to suppress notification on future-dated posts. You could then use the "send email to all subscribers" facility to manually send a notification email to your subscribers.

    In in the interim, simply de-activate the plugin for any posts which you do not want to trigger an email; then re-activate when done, and manually send notifications at the appropriate time.

    I might have a solution brewing for better handling of future-dated posts, but I'm not prepared yet to say anything more than that...

  84. Mezz 2005-05-10 22:08:52

    Just wanted to say thanks for a GREAT script AND for the fast reply to my questions. Excellent Work !!!

  85. Henrik Gemal 2005-05-11 14:00:25

    you write:<a href="/subscribe.php">Sign up for email notifications whenever my blog is updated!</a>

    it should be:<a href="<?php bloginfo('wpurl'); ?>/subscribe.php">Sign up for email notifications whenever my blog is updated!</a>

    to allow for installations that has the blog on other host than the one with Wordpress

  86. Nick 2005-05-12 12:30:09

    Hi Skippy -
    Thanks for a great plugin! Much needed.

    One question I have is in regards to how it sends text. When it sends the post or the X number of words from the post, it also includes any <a> tags that are in that section of the post.

    So, for example, you'll be reading along:

    Here's a summary of the new post:

    'Give them a hand'
    ------------------------------
    Joe did this today and the company did this to visit the shelter <a href="http://www.yahoo.com">at this location</a>. So if you want to.......

    Any way to make it strip the tags or something so that it reads more clearly and people reading the message aren't seeing html tags in plain text?

    Thanks!

  87. nikki 2005-05-12 12:31:53

    Looking forward to the potentially-brewed better handling, whatever that might entail! Suppression of notification on future-dated posts also gets my vote.

    Thanks for all your hard work

  88. skippy 2005-05-13 15:42:44

    Nikki: another user emailed me recently about the "html tags embedded in plaintext email' issue. The fix for this is embarrasingly simple, and an updated version of the plugin will be available shortly.

  89. infOpinions? » Blog Archive » Blogging Plugins and Tools :: For Business and Education 2005-05-15 00:24:13

    [...]  | this day in history (under post plugins) | Link Definer |  [...]

  90. infOpinions? » Blog Archive » Blogging Plugins and Tools :: For Business and Education 2005-05-15 00:28:39

    [...]  | this day in history (under post plugins) | Link Definer |  [...]

  91. MoiMM 2005-05-17 14:35:49

    Hello !

    Sorry, my english is very bbaaaadd !! :p

    I am beginner ! I have installed the plugin, the form work with subscibe and unscribe but my page suscribe don't have the my template ( http://www.vendran.com/subscribe.php ) !? ... Help !! :p :)

  92. Mel 2005-05-21 05:51:20

    Hi there,

    I was hoping you could help, I'm getting the following error when someone tries to subscribe:

    WordPress database error:
    [Table 'bedggood_wrdp1.wp_subscribe2' doesn't exist]
    SELECT * FROM wp_subscribe2 WHERE email='test@test.com'

    WordPress database error: [Table 'bedggood_wrdp1.wp_subscribe2' doesn't exist]
    SELECT * FROM wp_subscribe2 WHERE email='test@test.com'

    WordPress database error: [Table 'bedggood_wrdp1.wp_subscribe2' doesn't exist]
    INSERT INTO wp_subscribe2 (email, active) VALUES ('test@test.com', '0')

    WordPress database error: [Table 'bedggood_wrdp1.wp_subscribe2' doesn't exist]
    SELECT id FROM wp_subscribe2 WHERE email = 'test@test.com'

    Do I need to add a table into the database?

  93. skippy 2005-05-21 06:57:00

    Mel: if you visit the admin interface for Subscribe2, it should automatically create the database table for you.

  94. Karl 2005-05-21 13:14:27

    I've looked at this every which way but i cannot seem to find the plugin in my WP 1.5.1 plugins management screen...I know the correct file is in the correct directory. Any ideas?

  95. D 2005-05-21 15:15:38

    Hmm, both download links (.zip and .tar.gz) result in a 404 error... and this after I took the time to fix bug 902.

    I wonder if this other website will have the same problem?
    http://watershedstudio.com/portfolio/software/wp-email-notification.html

  96. skippy 2005-05-21 16:53:11

    Karl: please confirm that subscribe2.php lives in /wp-content/plugins/.

    D: please try the download(s) again. I re-organized my download directory today. Feel free to check here:http://www.skippy.net/download/plugins/subscribe2/

  97. Karl 2005-05-21 17:14:17

    Apparently I had some file corruption on transfer, after starting from scratch it works great. You've done an amazing job here, great detail. Thanks so much.

  98. Jonathan 2005-05-24 11:29:19

    I have the plugin installed but when I click on the link, my side bar appears on the opposite side of the page. Any ideas:

    http://www.peru-gbc.org/blog/subscribe.php

  99. Jonathan 2005-05-24 12:56:35

    Never mind. It is the theme that on all pages after the main are wrong.

  100. eduardo 2005-05-24 21:21:45

    Hi,
    here's a suggestion: allow for users to subscribe and unsubscribe to one (or more) categories, selectively. This would make your already nice plugin very flexible!
    Cheers,

  101. Wade Emmert 2005-05-25 07:02:11

    This seems to be a great plugin, but I am having a problem. It was working great in testing, but now that I have about 40 subscribers, it is not sending out the notification of a new post. Any ideas about what is wrong? I'm using WP 1.5.1.1.

  102. skippy 2005-05-25 07:05:47

    eduardo: several others have asked for this feature, too. It significantly complicates my plugin, and requires a lot of code to support users modifying their subscription settings. If folks want per-category subscriptions, I really think that RSS or ATOM feeds are the way to go.

    Wade: can you give me some more details? Anything in your web server error log? Have you made any other changes? Feel free to contact me via email.

  103. Wade Emmert 2005-05-25 07:39:21

    Thanks Skippy. I'm not getting any server errors that I can see. I am constantly making changes, but it stopped working and then I upgraded to WP 1.5.1.1. I also installed, but the uninstalled, the Fuzzy DateTime plugin. I dont recall messing with the plugin itself. I'll be happy to send you email to discuss it, but I can't find your email addy.

  104. apan » Blog Archive » wordpress->epost 2005-05-25 07:50:36

    [...] Skicka epost till personer när nytt inläggs publiceras: Email Notification Plugin subscribe2 Notifies an email list when new entries are posted. This e [...]

  105. toto 2005-05-25 12:17:26

    Hi when i send to users. The sended e-mail contain some extra text.

    X-Host: this mail was sent by Host.bg client
    X-Host: lucrat.net. In case of abuse forward this
    X-Host: mail with all headers included to abuse@host.bg

    How can i remove it from my e-mails???

  106. skippy 2005-05-25 12:26:18

    toto: my plugin is not adding those headers. Those are being automatically added by (presumably) your outgoing mail server.

  107. c 2005-05-27 08:41:23

    Hi Skippy - great plugin - thanks for taking the time to write it!

    Just a note to let you know that apparently there is a bug related to PHP mail on windows servers that causes Bcc'd recipients are visible in the message headers.

    The only thing I can think of is adding an option to loop through and use CC instead for windows users.

    What do you think?

    Thanks again!

    c

  108. Tsevdos John 2005-05-31 06:59:00

    Dear friend,
    Your plug -in is excelent, although I have a small problem.The subscribing form appears too low on my web-page (http://www.tsevdos.com/subscribe.php).Could you please give me a tip?

    Thanks in advance...

  109. toto 2005-05-31 11:06:15

    Hi Firneds I found good help to my problem
    Hi when i send to users. The sended e-mail contain some extra text.

    for more see: http://www.skippy.net/blog/2005/02/17/subscribe2/#comment-2032

    At file subscribe2.php at line 580
    the code is: $mailtext = "$subject$mailtext";
    $headers .= 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: ' . get_bloginfo('html_type') . '; charset='. get_bloginfo('charset');
    }

    I add some text } else {
    $headers .= 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/plain; charset='. get_bloginfo('charset');
    }

    $rec = "subscribers@your.host";
    mail($rec, $subject, $mailtext, $headers);

    And the changes are: $mailtext = "$subject$mailtext";
    $headers .= 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: ' . get_bloginfo('html_type') . '; charset='. get_bloginfo('charset');
    } else {
    $headers .= 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/plain; charset='. get_bloginfo('charset');
    }

    $rec = "subscribers@your.host";
    mail($rec, $subject, $mailtext, $headers);

    Thats prevent from sendig these stupid mail headers!
    If you like the changes you can update you best script...

    Bye

  110. Tsevdos John 2005-05-31 12:25:10

    Dear friend,
    Thanks a lot for your instant reply.I follow your guidline, and now the subscribe page is displayed on top, as I wanted. Although the code ruin my sidebar (take a look here http://www.tsevdos.com/subscribe.php).I know that has to do something with the theme but you have an idea how can I fix this?

  111. Jack Doyle 2005-06-01 09:34:30

    Seems to work great for me except for two things... the form to (un)subscribe is at the bottom of the page? Also, when I post through xmlrpc.php it does not notify subscribers of the new post.

  112. Jack Doyle 2005-06-01 09:48:21

    I saw where xmlrpc.php has been patched (I'm on the latest 1.5.2 I believe) but I don't have commandline access to my server.

    Is there anyone who could email me a patched file? doyle . jack at gmail . com ? Thanks.

  113. icone 2005-06-01 09:56:38
    mmm I disagree.
    For casual surfers the email option is far easier to grab.
    A per-category subscription would make your (already great) plugin a complete newsletter plugin for WP which, as far as i know, is missing.
  114. Andreas Vind 2005-06-02 13:06:56

    Very nice plugin - amazing!
    I'm from Denmark, so please bear with my mis-spelling. :)
    I use wp-1.5.1 and subscribe2-2.0.5. I have translated it to danish, and technical it's working just fine. But I have problems with the layout. I use the default-theme, but the script is placed wrong on my site. See: http://www.vinds.dk/wordpress/subscribe.php . What can I do to change it?

    But thanks a lot for this fabulous plugin. :)

    /andreasvind

  115. Wade Emmert 2005-06-02 22:53:56

    Thanks for all your work on the work around for Dreamhosts limit on the number of recipients. Much appreciated.

  116. Danny 2005-06-03 08:02:30

    hey
    neat plugin!
    But maybe a weird question now..how can i put both under options instead 1 under managment and the other one under options. I tried this but only one screen opens. thats the subscribers page. Because a other plugin ruins it i need them both under options, just dunno how.

    thanks in advance

  117. Andreas Vind (DEN) 2005-06-03 08:24:45

    Hi again. I suggest that you make a mailinglist for this plugin, so we get noticed when updates/changes are ready. I think it's rather obvious in this case with a mailinglist-plugin. :) Maybe combine it with this blog. Just a proposal... :-)

  118. incorporated subversion » Archive » Well it’s about time! Subscribe to a WordPress blog through email plugin 2005-06-07 06:12:06

    [...] feeds and it didn’t filter through to me in February but it has now for I have found the Subscribe2 plugin. It does pretty much everything you could ask from this plugin including [...]

  119. James Farmer 2005-06-07 06:18:03

    Hi Skippy,

    Absolutely ace, wonderful and spot on... have been searching for this plugin for literally 2 years... thankyou :)

    Naturally in those 2 years I've gotten a little greedy ;D so... any plans for putting in an option to receive a daily digest rather than each post?

    Cheers, James

  120. skippy 2005-06-07 06:54:51

    James: I have no plans to create a daily digest at this time. A lot of folks have asked for various bells and whistles to make subscribe2 act more like a full-featured mailing list system. I don't have a lot of motivation to add (additional) complexity to subscribe2 for features that most folks won't use. I also have no interest in re-inventing (nor competing with) GNU Mailman.

    One possible solution: you could create a mailing list yourself, and then subscribe the mailing list address to the blog; and then use the mailing list's facilities for sending daily digests. (Indeed, my cat2email plugin was designed with that in mind!)

  121. Ruby 2005-06-07 08:40:43

    OMG this is sucg a VAST omprovement on the old version of Subscribe that I was using. Thanks! All the options are awesome. I can't wait to get it all configured up...

  122. Ruby 2005-06-07 08:41:49

    Ooops, forgot to spellcheck. Just so excited...

  123. Ruby 2005-06-07 10:34:24

    Oh, I spoke too soon, of course. I've got this up and running perfectly at OrangePolitics (alongside an older mailing list that manually sends a weekly digest).

    However, on lotusmedia.org, where I had an older version of this plug-in, it is not behaving. The Subscriber tab looks OK, but the Subcribe2 options tab appears but has NO content on it, the front-end subscribe page just sits there, and no e-mails are getting sent.

    Is there something left over from an older version that I need to get rid of? Or is this bug #902 or something?

  124. skippy 2005-06-07 11:57:58

    Ruby: I see that lotusmedia.org is still running WordPress 1.5. You're almost certainly suffering the effects of Bug #902. Either fix that bug, or upgrade to WordPress 1.5.12, which includes the fix.

  125. Epper 2005-06-07 12:00:41

    Great Plugin!!
    Sorry for my english but i'm italian...

    Can I automatically register to the mailing list (your plugin) any new user registered to my blog (By wordpress procedure)?

    It could be very useful

  126. skippy 2005-06-07 12:04:43

    Epper: There's no built-in facility for automatically adding users to the mailing list when they register for the blog; but you could probably write a plugin to do this pretty quickly.

    Using the user_register plugin hook, you could automatically add the user's email address to the subscribers list. If you write such a plugin, do please post about and send a trackback (or pingback) to this entry!

  127. Ruby 2005-06-07 22:51:10

    Thanks! I've upgraded and it appears to be working fine on the site, although none of the e-mails have come through yet...

  128. Toto 2005-06-08 05:57:20

    Hi skippy, perfect work.
    You can improve control of your script more.
    Give the users to put a tags in some fields in options area.
    I suggest this:

    Change the "input type" with "textarea" for all options fields. I will give us to write here more new lines with scroll. And we will can put there a code like this: test.

    Becouse if you put in "input type" a bug has seen.
    It will give a freedom of formating in options area

    Have a nice day.

  129. Ericka 2005-06-08 19:56:24

    I can see how a page/post might evolve into something that looks like this, but a simple statement of what subscribe2 IS would be extremely helpful. Preferably at the very top of the page.

  130. Epper 2005-06-09 14:00:57

    Skippy, I'm developing the plugin for the autoregistration to the Subscribe2 mail list when a user pass the Wordpress registration process.

    But I've a problem. I've made a plugin and i've to perform a query to update the mail table when the site admin posts an article. I've to do this before your subscribe2 plugin so I've set the priority (3° parameter on add_action) to 10.

    I've noticed that after my script the database is updated but your plugin see only the data before updating.

    Why? Can you help me?

  131. skippy 2005-06-09 14:17:48

    Epper: I think you want to use a lower priority for your plugin if it's to execute first. See the Plugin API documentation.

    I'm looking forward to seeing your plugin -- good luck!

  132. Epper 2005-06-09 15:50:15

    I've finished the plugin but this was my FIRST one so don't expect nothing special.
    It does simply what i needed.

    Here you can download it and you can find a little presentation in english too (poor english probably: I'm a student ;) )

  133. BSoule 2005-06-09 19:42:14

    Hey great plugin! Im a noob at webpage building and PHP, i was finally able to get it in my page but now i cant get it to keep the right format, any suggestions?

  134. skippy 2005-06-09 20:22:48

    BSoule: You're using the Minima theme, which is declaring the content <div> inside the header.php file, and my file is re-declaring it. Minima also splits the opening and close controls for the <div>s between files, which broke the output of subscribe.php.

    Around line 84, remove this bit, but keep the rest of the line:<div id='content' class='narrowcolumn'>

    At line 101, insert another </div>.

    That should fix you up.

  135. Epper 2005-06-10 08:10:17

    Hi again, I've noticed a little bug. When I post a little article the mail arrive and the link is in NICE mode.
    But if i post an article more long the link to the article (in the mail) is in this form: http://blogurl/?p=12

    How can i fix it?

  136. George 2005-06-10 22:23:09

    Hello,
    I'm having some trouble getting this plugin to work. I'm using Wordpress 1.5.1.2 and all the subscribe2 functions are working. I've been able subscribe people and also sign up using www.fatpitchfinancials.com/subscribe.php. There are 4 email address on the confirmed list now. I was even notified by email about the new subscriber. However, I can't seem to get emails to be sent out when I make new posts, or even when I try to send out test messages using the Manage->Subscribers view in Wordpress admin.

    Do you have any suggestions?

  137. Richard Silverstein 2005-06-11 04:25:55

    I'd like to add the link suggested in yr. Readme file via Links Mgr.:Sign up for email notifications whenever my blog is updated!I've been trying to do this unsuccessfully. Do you need to fill in the entire blog file path before the "/subscribe.php" protocol above in order to get a working link? When I insert it into my link it doesn't work.

  138. skippy 2005-06-11 13:58:18

    George: I'll need to know a little more about your configuration in order to help you. Do you have full control of the server, or are you using a hosting provider (and which one)?

    Richard: in your Links Manager, simply enter a full link to your subscribe file:URI: http://www.richardsilverstein.com/subscribe.phpLink Name: Sign up for email notificaiton!Short description: Sign up for email notifications whenever my blog is updated!
    Then simply assign it to a category.

  139. George 2005-06-11 14:34:09

    Skippy,
    I'm using a host provider, they are post4hosting.com.

  140. cheeky 2005-06-13 04:11:35

    I am having the same problem as George. Subscribe/unsubscribe emails work fine, but no "new post" messages are sent.

    I have my own server, but it's a pretty standard Cpanel configuration. I just downloaded this plugin today. Nothing in the error log that I can see.

  141. skippy 2005-06-13 06:02:46

    Everyone who has had trouble, please download version 2.0.8. I found and squished the bugs causing your problems. Thanks for your patience!

  142. keaven 2005-06-13 11:29:37

    ... I have version 2.0.8, and WP 1.5.1 ...
    This is very strange. I'm getting the following error:

    Fatal error: Cannot redeclare maybe_add_column() (previously declared in /home/kcom/public_html/wp-content/plugins/briansthreadedcomments.php:42) in /home/kcom/public_html/wp-admin/upgrade-functions.php on line 262

    but i can't find "maybe_add_column" in either subscribe.php or subscribe2.php .. ?? .. any ideas on what's going on?

  143. skippy 2005-06-13 11:33:04

    keaven: maybe_add_column is defined in /wp-admin/upgrade-functions.php.

    The error message clearly indicates that the problem is not with subscribe2, but with briansthreadedcomments.php.

  144. keaven 2005-06-13 21:44:35

    [groan] wow.. please wait while i whipe the egg off my face...
    sorry about that. the error didn't pop up until after i activated subscribe2 .. sorry for jumping to conclusions and not reading [blush]

  145. skippy 2005-06-14 17:08:01

    EC: did you edit subscribe.php at all? Looking at the source of your subscribe.php page, it looks as though the header template tag has been omitted.

  146. EC 2005-06-14 17:35:06

    No, I haven't. I tried to fix it, unsuccessfully.

    After that, I downloaded the plugin again to make sure I had the original subscribe.php.

  147. EC 2005-06-14 17:46:01

    That's what the file reads:

    require_once('./wp-blog-header.php');
    $admin = get_userdata(1);

    $s2 = get_option('s2_options');

    // the database table to use
    $s2_table = $table_prefix . "subscribe2";

  148. keaven 2005-06-15 09:26:46

    I would like to change the code so that when someone clicks on the subscribe link, a small window pops up with the subscription form... one that does not include the site's template (i'm having issues with IE pushing the form to the very bottom of the page). what section of the code should i change for this?

  149. skippy 2005-06-15 09:56:39

    keaven: you can edit subscribe.php around line 77, if you need to change how it displays. You'll need to use target=_blank in your anchor tag.

  150. skippy 2005-06-15 10:24:31

    EC: the Connections theme that you're using is rather non-standard, in that it puts portions of the document header in index.php, instead of keeping all the header elements in header.php.

    I've cobbled together something that should work, but I will not offer any support on this.connections-subscribe

  151. keaven 2005-06-15 10:35:01

    I tried using the "target=_blank" tag, and it did open a new window, but whatever problem was causing it to be pushed to the bottom in IE is still there... probably a theme issue.

    here's what i ended up doing... i changed the code to just comment out the header, sidebar, and footer calls, then changed the link to the subscribe.php file to this:/subscribe.php" onClick="window.open('/subscribe.php','Subscribe','toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=no, scrollbars=no, width=400, height=250'); return false">CLICK HERE to be notified of new posts!

    that solved all my problems :) i love this plugin. thanks for all your hard work!

  152.  Daisyhead • Walking on Sunshine 2005-06-15 21:36:50

    [...] ted the most brilliant plugin I’ve seen for WordPress in a long time. Skippy’s Subscribe2 plugin, allows you to create a mailing list that is fully managed from within WP&#82 [...]

  153. Daisyhead 2005-06-15 23:18:07

    Great plugin! Thanks for all your help and for the fast update for my request.

  154. Brent Colbert 2005-06-16 23:09:09

    I am having the same problems as Keaven where the signup form is pushed down to the bottom of the page. I am using the Default Theme but with two very long blogrolls whcih makes the page very long.

    Is this the reason or am I missing someting, I would like to keep this intregrated within the blog page and would like to avoid the popup.

  155. Chris Bunting 2005-06-17 00:16:35

    Skippy,

    This is an unbelievably slick plugin! I want to thank you for putting so much time and effort into this. I do have one comment (in case anyone else stumbles upon this) and one question, though.

    Firstly, I noticed that after activating the plugin, placing the link, and navigating to the subscribe.php file on my site, the form for subscribing/unsubscribing was being placed at the very bottom of the page (I'm using the default Kubrick theme, modded quite a bit). After some investigating, I noticed that the get_sidebar() call was placed above the 'narrowcontent' div, which is the opposite of how the default theme generates a page. I placed the get_sidebar() call right above the get_footer() call in subscribe.php, and it worked wonderfully.

    Now for my question. In perusing the source for my rendered page and your plugin, I happened to stumble upon a minor issue. When the subscribe.php page is loaded, my searchform is broken. The searchform.php that is included when my sidebar loads has an action value of:

    which normally translates to "/blog/index.php". When subscribe.php is loaded for my site, the action value becomes "/blog/subscribe.php". It's minor since it's unlikely someone will suddenly decide to search for something after deciding they wanted to subscribe, but it's still 'broken' nonetheless.

    Any suggestions? (Besides being a lot less wordy...) ;)

  156. skippy 2005-06-17 06:10:03

    Brent Colbert: please see here and here regarding the sidebar in subscribe.php.

    Chris Bunting: the Kubrick searchform.php file uses this: action="<?php echo $_SERVER['PHP_SELF']; ?>", which POSTs to whatever page you're currently veiwing. I consider this to be a flaw in Kubrick. To resolve it, replace that action with /index.php to force the Kubrick search form to POST to the WordPress index.php.

  157. Chris Bunting 2005-06-17 10:49:20

    Thanks for the quick response! I took your advice and manually set the action for the search form. I was hoping to not have to explicitly set it, in case I change a setting down the line that would throw that off, but it'll have to do.

    Thanks again!

  158. Epper 2005-06-17 13:48:03

    Skippy, in the last version have you fixed the "bug" i've noticed in my last comment too?

    My last comment:
    ---
    Hi again, I’ve noticed a little bug. When I post a little article the mail arrive and the link is in NICE mode.
    But if i post an article more long the link to the article (in the mail) is in this form: http://blogurl/?p=12

    How can i fix it?
    ---

  159. Epper 2005-06-17 13:49:16

    ...

  160. skippy 2005-06-17 13:59:43

    Epper: the length of your post should have nothing to do with how the permalink gets displayed in your notification email.

    Subscribe2 uses get_permalink() which in turn uses the permalink structure you've defined in Admin -> Options -> Permalinks. The permalink included in the notification emails should always be the same as those used in your blog display. Could you please forward to me a few examples demonstrating the problem?

  161. Oliver 2005-06-18 08:13:45

    Hi skippy!

    Thank you for putting all this effort into this great plugin! I got 1.5.5 (earlier) as well as 2.0.9 (now) working nicely with Firefox.

    However, using IE it breaks? I'm at a loss as to why IE shows a "The page cannot be found" message, while Firefox works just fine.

    Apparently someone else noticed this behaviour as well:
    http://wordpress.org/support/topic/28879

    Would you have a guess?

    Thanks, Oliver

  162. dave 2005-06-18 16:00:34

    Skippy, Great plugin! I'm trying to get it up and running on my new WP site that I'm still developing. I'm using the Dimension 2k theme and running WP 1.5.1.2.

    Two problems.

    I have a Contact page (http://www.davereed.org/contact/) and I want to put the Subscribe form on a page (http://www.davereed.org/subscribe/) and have it appear inside the post box with the post header and footer. As you can see on the subscribe page the form gets all messy and non-functional.

    Alternatively, I could put it under the contact form on the contact page, but I tried that and it appears inside the contact form post box and is still messy and non-functional.

    My second problem is the search function mentioned above. I tried your work around by inserting [/index.php] in the searchform.php code, but it didn't work. Am I supposed to replace the entire string following [action="], [], with [/index.php], or just the PHP_SELF bit? I tried both and neither worked when I searched for a term I know has several mentions.

    Thanks for any help you can offer. I love the plugin and can't wait to get it working!
    dave

  163. skippy 2005-06-18 16:10:25

    dave: Here's the snippet from my syndicate page:

    Or sign up to receive an email whenever a new post is made:
    <form method="post" action="/blog/subscribe.php">
    Your email: <input type="text" name="email" value="" size="20" /><br />
    <input type="hidden" name="action" value="add" />
    <input type="submit" value="Send!" />
    </form>

    It looks like you're using ” instead of " in your form, which may be your problem. Aside from the quotation mark, everything looks fine.

    I'm not sure what the problem is with searching. From your subscribe page, I search for "test" and got the same set of results as when searching for "test" from any other page.

  164. dave 2005-06-18 16:29:58

    Thanks for the quick response Skippy. I'm not sure what the quotation mark problem is you're refering too. I copied and pasted the form code directly from the subscribe.php file. Just to be sure I copied and pasted the code you provided above and set it to post to the correct file path for my situation and I get the same problem.

    As for the search feature, the reason it searches correctly from the subscribe page is because the subscribe form isn't working properly I think. If you go to http://www.davereed.org/subscribe.php and try to search you'll see what I mean.

  165. Oliver 2005-06-18 16:50:43

    -bump-

    IExplorer anomaly, has anyone else experience it? ..and perhaps has a solution or tip on how to fix it?

    Thanks!

  166. Martin 2005-06-19 00:08:18

    Hi, and thanks for an excellent plugin!

    I made a tiny change to subscribe.php (v2.0.9):

    In your section:
    // Display the page

    You have:
    get_header();
    get_sidebar();

    I found this was adding a bunch of space before the subscrition details, putting it at the bottom of the page (maybe you intended this?). I simply moved the get_sidebar(); call to directly before the get_footer(); and now all is good.

    Thanks again.

  167. Oliver 2005-06-19 02:42:12

    ...narrowed it down to the >>get_header();

  168. Angsuman Chakraborty 2005-06-19 08:38:31

    Does it send an email per post or say once per day?
    If not, how difficult would it be to configure it to send emails (with all the new post) at most once per day?

  169. skippy 2005-06-19 09:44:02

    Angsuman: email notifications are sent out every time a new post is made. If you want to send only one notification email per day, consider something like Bloglet.

  170. Ruby 2005-06-19 10:00:49

    I was having the exact on both of my sites. Then I realized I was using version 2.0.7, and Skippy had recommended 2.0.8.

    Now I have the latest version (2.0.9) and all is groovy! Thanks, Skippy!

  171. Oliver 2005-06-21 14:12:25

    Hi skippy!

    I saw your response on the wordpress forum. A few observations, that might help:

    (*) What breaks it on IE is the following line that's part of the get_header(); function:
    @import url( );

    If you take it out for testing purposes, it works just fine (for both IE+Firefox), however without any formatting of course.

    (*) I made a few changes and it seems (have no clue why) to have solved the problem for IE:

    get_header();

    needs to be replaces with (the empty lines seem to make a difference):

    ...?>

  172. Oliver 2005-06-21 14:21:30

    Sorry for the double post, I overlooked the "code" tags, which are needed.
    [...]
    (*) What breaks it on IE is the following line that’s part of the get_header(); function: @import url( );

    If you take it out for testing purposes, it works just fine (for both IE+Firefox), however without any formatting of course.

    (*) I made a few changes and it seems (have no clue why) to have solved the problem for IE:get_header();

    needs to be replaces with (the empty lines seem to make a difference):

    ... ?>

    (*) So this would be usable workaround, but I also noticed another anomalie now with Firefox. The confirmation page (fter clicking the confirmation URL) seems to get loaded two times in a row, since it always comes up with an error message. So the first time it would either add/confirm or delete the subscriber, the second time (with the same parameters) it produces the error message. Any idea, what part of the code would cause it load twice?

    Thanks very much. Oliver

    PS: The site is a friends site: http://www.cupocoffee.de, it's all German though.

  173. Chris Bunting 2005-06-21 23:41:40

    I've encountered another issue. For some reason, when I publish a new post, the author of that post is being emailed that my site has been updated...twice. The email is being duplicated. The weird thing is I never subscribed that address and it's not in the Subscribers table. I'm actually the only author, and I use a separate account that I created to publish posts, and to do most site maintenance. Separate from the default admin account. Do you know what could be causing the duplication? Thanks!

  174. Greg 2005-06-22 03:38:19

    Skippy,

    This is a great plugin -- one family and friends have been demanding!

    Not sure, but it seems text substitution is not working properly in post notification emails (probably pilot error on my part):

    Sierra Faith has posted a new item, ‘’

    You may view the latest post at
    http://sierra-faith.com/index.php/2005/06/22/
    You received this e-mail because you asked to be notified when new updates are posted.
    If you no longer wish to receive notifications of new posts then please visit:
    http://sierra-faith.com/subscribe.php

    Best regards,
    greg

    1) TITLE is missing.
    2) EXCERPT not published.
    3) Day's archive link, not post link, published.
    4) 'greg' instead of 'Greg'.

    What silly thing have I done?

    Many thanks!

  175. skippy 2005-06-22 21:40:41

    Chris Bunting: Did you elect to have the new post notifications come from the blog admin, or the post author? Are you on Dreamhost? Do you have more than 30 subscribers? If you answered yes to all three, that's why you received duplicate messages. If you answered no to any of those, contact me by email so we can investigate.

    Greg: If you elected to replace EXCERPT with an excerpt (instead of blank, or the full post), then you need to manually craft an excerpt for your posts.
    The name used to "sign" post notifications is pulled from the author's profile. Capitalize the name in your profile, and it will be capitalized in the emails.
    I have no idea what would have caused a blank title, though the blank title likely spilled over to the permalink generation which produced the invalid link. Feel free to email me, and we can try to diagnose this.

  176. James Farmer 2005-06-22 23:50:14

    Hi Skippy,

    Me again, can't believe the amount of time you put into these comments BTW, good - on - you!

    I'm having the same problem as George had where everything is smooth as clockwork but no new messages are getting sent out: http://www.skippy.net/blog/2005/02/17/subscribe2/#comment-2164

    I'm with psek.com but don't *think* they do anything dodgy. Also WP1.5.1.2 and have just overwritten the files with the latest 2.1.1

    Thanks for your time, much appreciated! James

  177. revolution34 » Blog Archive » Mailing List plugin 2005-06-23 05:11:27

    [...] lugin Another useful plugin I’ve found and am using on the Stupid site is subscribe2, which adds a subscribe/mailing list function to Wordpress. It was dead easy to set [...]

  178. revolution34 » Blog Archive » Simple contact form plugin 2005-06-23 05:18:00

    [...] easy to set up - probably took 5 minutes. It unfortunately seems to conflict a little with Subscribe2 - the latter’s option page does not display if the former is activated but tha [...]

  179. maira 2005-06-23 06:43:49

    I came here to tell you how much I like your plugin and send you the hard-coded Spanish translation of version 2.0.9. Ok, you just have released 2.1.1, so I have translated the .po. I'll be just too glad to send it to you (.po and .mo) as soon as I get your email, but I have noticed that some strings remain unmarked, like the default values and the buttons.
    As for the buttons, the text on three of them (RESET, send, and subscribe, in suscribe2.php) is used as a value on lines 242, 461 and 463; I changed it also on my hard-coded translation. If you like, I cand send it as well.
    Thanks for this plugin and your support, every question I had was answered here.
    Maira.

  180. skippy 2005-06-23 08:28:53

    maira: I'm very interested in receiving a Spanish translation! You can find my email address on my Contact Page.

    I didn't translate the labels on the buttons because I actually use the values of those buttons to determine what action to take. I'll rework the forms to use hidden values to determine the action to take, so that the submit button labels can be translated. Stay tuned for another new version!

  181. Shawn 2005-06-23 21:16:26

    Can anyone tell me what this means? I get it when I click on the Blog sign up link. Thanks in advance

    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home/churchin/public_html/subscribe.php on line 8

    Fatal error: main(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/churchin/public_html/subscribe.php on line 8

  182. Chris Bunting 2005-06-23 21:59:20

    Skippy: I had the notifications coming from the author, but switching it to the blog admin yields the same result, duplicated emails. Also, I'm not on Dreamhost, and I had switched the Dreamhost variable to 0 after this problem first started, when I peered into the plugin code to see if I could figure out what was going on. Lastly, I'm nowhere near the 30 subscriber mark, the duplication just started when I began testing with one subscriber. ;) I'll be glad to continue this by email (and forward you samples, if needed) if that would be easier for you.

    Thanks for the patience and dedication you show to those using your outstanding plugins.

  183. Chris Bunting 2005-06-23 22:06:53

    I knew I had forgotten something. As mentioned above by Greg, I too am seeing my name in all lowercase. In my blog profile, my name is capitalized properly in the 'First name:' and 'Nickname:' fields, but in the email the 'From:' field and body of the email have my name as 'chris'. I have not altered the default settings on the email template at all.

  184. Chris Bunting 2005-06-23 23:00:34

    It really is embarassing posting three times in a row...

    I think I figured out the duplication "problem". I compared the headers on the emails (sorry it took me so long to do the obvious) and noticed that one of the emails was delivered to the post author, and the other was delivered to the test subscriber I had setup. I should have expected that there would be 2 emails, the gotcha was that the To: field on both of the messages show the authors email address.

    In other words, in the To: field of the "Site updated!" email, where the recipient's email address should be, it instead displays the author's email.

    I apologize for the flood of messages, and for not doing everything I could to attempt to figure out my problem before troubling you.

  185. Maira 2005-06-23 23:09:19

    I'm not sure that my message was sent, so:
    -I have translated .po (and .mo) into Spanish
    -I have a hard-translated version of 2.0.9 that includes some strings not tagged in 2.1.1
    -How can I send them to you?
    Thanks for this plugin,
    Maira

  186. Maira 2005-06-23 23:16:03

    Please disregard my previous comment, I'm a bit dense at this moment...
    Maira

  187. Chris Bunting 2005-06-23 23:42:27

    Skippy: Also, I think there's some merit to the problem that Epper posted about above. It doesn't appear to have to do with the length of the post, though. Of the 5 items I've published since activating your plugin, 2 of the update emails did not have the nice permalink structure for the link back to the post (they appeared as `http://sample.site/blog/?p=24`. One of the emails was quite lengthy, but one was extremely short. Just FYI.

  188. skippy 2005-06-24 06:10:43

    Shawn: the file subscribe.php should live in the root of your WordPress directory. Do you have a link to your site where I can check this?

  189. ben.hamilton.id.au » Ignore this post, just testing a plugin 2005-06-25 06:08:19

    [...] in June 25th, 2005 hehe… Just need to test a plugin. Subscribe2 to be precise. Entry Filed under: General 1 Comment Add your own [...]

  190. Matt 2005-06-26 05:58:40

    Great plugin!

    One question - If I want to manually unsubscribe someone, how is this done? I see no way in the plug-in control page.

    Or another way to access the subscriber list
    Thanks
    Matt

  191. skippy 2005-06-26 08:50:46

    Matt: the list of subscribers is accessible through Manage->Subscribers in your admin interface.

  192. Scott 2005-06-26 16:54:50

    I really like this plugin, however I am having the same problem as a few others above (doesn't send out some emails). Really odd. Seems that it only selectively sends them out (like sending to the first person on the subscribe list). I've even edited the sql table so that the id numbers are in sequence, but I still can't find a pattern of why it sends to some and not others...

    Skippy, I'd be willing to help you diagnose this if you'd like. I'm running my own web server and can give you any diagnostic info you'd like. I can even give you access if it would help. For now, I guess I'm going to use a different (ugly) subscriber plugin, but I'd really like to get this fixed.

    Thanks!
    Scott

  193. Scott 2005-06-26 16:57:23

    BTW, have you thought about setting up a short FAQ for this plugin? It seems you answer the same questions a couple of times...

  194. skippy 2005-06-26 21:15:22

    Scott: The most recurring question is the one about the sidebar. What I ought to do is bow to the pressure and make subscribe.php call get_sidebar() after the content.

    Please contact me by email about the problems you're having, and what we can do to diagnose it.

  195. eli 2005-06-26 22:23:40

    A great plugin! Everything seems to work great, except that there is a little theme problem with mine (scanning the earlier comments, i see that themes are a total pain!).

    My page (http://www.ecifc.com/eblog/subscribe.php) breaks the style it should have, adding two extra black bars between the header and sidebar. I am pretty inexperienced with PHP, but I went in to try and fix this. It seems that if I put around get_header and get_sidebar, it fixes some of the problem, but undoes the comment out you have about showing the main page. Many variations of this have not perfected the page. If you get a chance, I would totally appreciate some advise here. the main page should look like http://www.ecifc.com/eblog/

    Thanks in advance!
    -eli

  196. skippy 2005-06-27 10:39:43

    eli: It looks to me like there's nothing wrong with your theme. The problem you're experiencing is that the contents of subscribe.php do not consume enough vertical space to push the post (or maybe content) div down to at least the same length as your sidebar.

  197. Randy 2005-06-27 12:06:04

    Just wondering about the issue of it not sending any confirmation or notification emails out.

    Has this been fixed yet? I'm using WP 1.5.2 with the latest version of your Subscribe2

    Thanks

    Randy

  198. Nate 2005-06-27 15:41:36

    Hey Skippy,
    This looks like an awesome plugin...
    but for some reason every browser says my subscribe.php page does not exist... and it does... in my root directory... and when I put the snipit of code into any other page it all apears as text input boxes... I have put in this code at the bottom of the main page so you can see... very strange can you help me?
    Thanks,
    Nate

  199. eli 2005-06-27 18:59:23

    thanks for the prompt reply, skippy!

    how would i go about fixing this. forgive me if its a dumb question, but i tried to add some br / in there, which of course made the page not work.

    how do i push it down?

  200. skippy 2005-06-27 22:13:54

    Eli: there are lots of ways you can adjust your theme. You could use a custom div with margins and or padding as necessary; you could use <p>&nbsp;</p> combinations for "empty" lines beneath the form; or you could modify the page to remove the sidebar altogether. Unfortunately, site design is not my strong point, so I won't be able to help too much. I just write plugins! ;)