Subscribe2 2.22 and 3.8

Versions 2.22 and 3.8 of the Plugin are now available for download. These will be final release for WordPress 2.0.x and 2.1.x.

Note: Although I am feeling somewhat better, I’m not 100% so please check this site fully before posting a comment for support

Version 3.8 is for WordPress 2.1.x and WordPress 2.2.x users only! This version has been tested on WordPress 2.2.3.

For users of WordPress 2.0.x, please download Version 2.22 of Subscribe2. As previously stated, Subscribe2 for WordPress 2.0.x is no longer being actively developed. Only bug fixes will be back ported.

This version contains the following improvements:

  • Fixed User Menu Settings when Digests enabled
  • Changed Registered Subscribers to Registered Users in drop down to avoid confusion
  • Minor code revisions for admin menu layout

If you use this plugin make a donation to support future development!

Download Version 3.8, recommended for users of WordPress 2.1.1 and above.

To install correctly:

  1. Deactivate your exisiting Subscribe2 Plugin
  2. Use FTP software to delete the old plugin and upload the new version
  3. Ensure that the complete subscribe2 folder and buttonsnap.php file are uploaded
  4. Activate the new version of the plugin

59 thoughts on “Subscribe2 2.22 and 3.8

  1. I’m a new user to WP and to Subscribe2. Great plugin. Thank you. One question – can it send mail when a post is updated? If not, would it be difficult to add? I’m happy to implement this and send you a patch if you point me in the right direction (I’m a programmer but not overly familiar with the ins-and-outs of PHP or WP, yet).

  2. Andy,

    Look for the following line in the code:


    add_action('edit_post', array(&$this, 'edit'));

    And try changing it to:


    add_action('edit_post', array(&$this, 'publish'));

    Be careful with the quotes, WordPress.com changes straight quotes to smart quotes so don’t cut and paste.

  3. Hello,
    I have made a subscribe2.po file with french translation, what name for this file? how subscribe2 will use my .po file to speak french ?
    Thanks

  4. Where does Subscribe2 get the “Blog Admin” information from. Our emails are going out from “(unknown sender)” and getting flagged as spam – how do we set that email?

  5. Hi! Thanks for the great plugin — it’s pretty cool. I was wondering if it was possible for anyone with admin rights to be able unsubscribe registered users? I know we can already unsubscribe general public users. Thanks!

  6. I’ve, i’ve noticed the plugin break a little in wp 2.3b.
    All seem to function properly (the subscritions the list the options) but after installing it you have the following error after you publish any pages or post (the get published and all works properly but you always get this error).

    WordPress database error: [Table ‘db7414_wpbeta.wp_post2cat’ doesn’t exist]
    SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

    WordPress database error: [Table ‘db7414_wpbeta.wp_post2cat’ doesn’t exist]
    SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

    Warning: Cannot modify header information – headers already sent by (output started at /home/7414/domains/ratiograph.net/html/wordpress/wp-includes/wp-db.php:160) in /home/7414/domains/ratiograph.net/html/wordpress/wp-includes/pluggable.php on line 422
    Hope it may be of interest to you.

  7. I am trying to get subscribe2 to work with the translated mo files, but I’m not having any success. I have the fr.mo in the subscribe2 directory. When I change the language to French (either in wp-config.php or using the LanguageSwitcher plugin), I see WP in French (e.g. dates, the admin), but the Subscribe2 admin and form page are not. I am interested in doing a Polish translation – any advice on getting this working?

  8. The properly named mo file isn’t working either. I also tried turning off the LanguageSwitcher plugin in case that was interferring – again no luck. So, I have a file named subscribe2-fr_FR.mo in the plugins/subscribe2 directory and i set WPLANG to ‘fr’ in wp-config.php, but when I goto the page I created that contains only I do not see the form in French and the subscribe2 admin is also not in French. So, I’m at a loss – any ideas?

  9. Ths is really a great plugin🙂 I have a question though. Would it be possible to send an email after he click the confirmation link? Just to let him know again that he successfully subcscribe besides the message on the blog.

    Keep up the good work!

  10. Hello,
    I installed the last release 3.8 of this useful plugin on my 2.2.3 WordPress up-to-date blog. I was hoping to solve an annoying problem, but the problem persists despite this. It so happens, recursively, that the Subscribe2 setup goes up in smoke. The system functions well through a couple of days, for example, then I loose all my custom messages (email from, templates, etc.) and I find default setup again. Why? Could I debug the code? How?

  11. Sonme,

    It sounds like you’ve updated from an earlier version of Subscribe2 to the 3.8 version. If this is the case it may be that for some reason the upgrade code is not working correctly. We need to check if subscribe2 thinks you are using version 3.8. To do this add the following 3 lines at the top of the options_menu function:

    echo “”;
    print_r($this->subscribe2_options);
    echo “”;

    Then load up your site and go to Options->Subscribe2. The page will now contain a list of the Subscribe2 options – check that version is recorded as 3.8.

  12. Here is the result,

    after a reset:

    ��Array ( [autosub] => no [wpregdef] => no [autoformat] => text [pages] => no [password] => no [email_freq] => never [exclude] => [sender] => author [reg_override] => 1 [show_button] => 1 [barred] => [mailtext] => BLOGNAME has posted a new item, ‘TITLE’ POST You may view the latest post at PERMALINK You received this e-mail because you asked to be notified when new updates are posted. Best regards, MYNAME EMAIL [confirm_email] => BLOGNAME has received a request to ACTION for this email address. To complete your request please click on the link below: LINK If you did not request this, please feel free to disregard this notice! Thank you, MYNAME. [remind_email] => This email address was subscribed for notifications at BLOGNAME (BLOGLINK) but the subscription remains incomplete. If you wish to complete your subscription please click on the link below: LINK If you do not wish to complete your subscription please ignore this email and your address will be removed from our database. Regards, MYNAME ) ��

    and after a customization:

    ��Array ( [autosub] => no [wpregdef] => no [autoformat] => text [pages] => no [password] => no [email_freq] => never [exclude] => [sender] => author [reg_override] => 1 [show_button] => 1 [barred] => [mailtext] => BLOGNAME has posted a new item, \’TITLE\’ POST You may view the latest post at PERMALINK You received this e-mail because you asked to be notified when new updates are posted. Best regards, MYNAME EMAIL [confirm_email] => BLOGNAME has received a request to ACTION for this email address. To complete your request please click on the link below: LINK If you did not request this, please feel free to disregard this notice! Thank you, MYNAME. [remind_email] => This email address was subscribed for notifications at BLOGNAME (BLOGLINK) but the subscription remains incomplete. If you wish to complete your subscription please click on the link below: LINK If you do not wish to complete your subscription please ignore this email and your address will be removed from our database. Regards, MYNAME [version] => 3.8 ) ��

    and then?😉

    Thanks for the attention.

  13. Sonme,

    Looking at the Version appended to the options after your customisations the plugin won’t be calling the ugrade functions so you shouldn’t be loosing any settings you save.

    The only other considerations would be if you had other admin users who may be reseting your settings or other plugins that might be doing bizarre things to the options database.

  14. Uhm… no, only one admin account. And other plugins don’t have problems with the wp_options table… they remember their setup…
    Please, investigate the issue better if it’s possible.
    Meanwhile I think I’ll try a work-around like editing the options.php file.

    Thanks

  15. Sonme,

    Okay, so we can rule out other admins resetting your options. Don’t discount other plugins yet – just because they remember their settings does not mean they are not messing up the settings of other plugins!

    I have never encountered your issue and can’t recall seeing it posted here before either so it’s difficult to investigate further without much more information. In the meantime you can workaround as follows:

    Find the following line in subscribe2.php:

    add_action('shutdown', array(&$this, 'upgrade'));

    And change it to:

    //add_action('shutdown', array(&$this, 'upgrade'));

    This will stop the upgrade function being called automatically and therefore the only ways that the options will be reset is by someone clicking RESET in Options->Subscribe2 or by some plugin conflict.

  16. >Don’t discount other plugins yet – just because they remember their settings does not mean they are not messing up the settings of other plugins!

    Yes, your reasonment is correct.

    >I have never encountered your issue

    I’m a lucky man…😉

    >you can workaround as follows

    I’m going to try your suggestion.

    Thanks in the meantime🙂

  17. Hi, I just checked back on my comment. I guess what I want to know is, is it possible for me to unsubscribe registered users from their subscriptions. That is, does your plugin support this functionality?

  18. Hi,

    Great Plugin! I do howver have 3 problems. I am running WP 2.23, K2 Theme and your ver 3.8. I have tried to write test posts and subscribers are emailed, but even when I have the options set to send html mail, subscribers including myself still get plain text emails.

    Also in subscribe2.php I have changed the page ID where required here:

    // by default, Subscribe2 grabs the first page from your database for use
    // when displaying the confirmation screen to public subscribers.
    // You can override this by specifying a page ID on the line below.
    define(‘S2PAGE’, ’33’);

    to my page which is 33 but when the confirmation emails go out, they don’t appear to prepend the link in the email to the actual page address that is my ID 33 (I am using pretty permalinks so I don’t know if this is causing the issue… the page itself works fine but the confirmation link appears as:

    http://mywpdomain.com/?s2=13b8cad0eabd1b6784a67992edee339c34

    when I think it should be:

    http://mywpdomain.com/the_page_id_entered?s2=13b8cad0eabd1b6784a67992edee339c34

    Lastly, when I do get to the confirmation page, all of my top menu items lose their text and appear as ‘Subscription Confirmation’ on all of them.

    Thanks for any assistance!

    Vince

  19. little issue with subscribe2 (3.8) on wordpress 2.2.2. No emails are being generated
    either for comfirmation or new posts. I contacted by hosting provider and the log reads as follows –

    PHP Parse error: syntax error, unexpected T_STRING in /home/thrzerc2/public_html/wp-content/plugins/subscribe2/subscribe2.php on line 44

    line 44 reads – define(‘S2VERSION’, ‘3.8’);

    Any suggestions? Thanks.

  20. Sean,

    If there was a parse error on that line the entire plugin should fail – no menus etc. Check the quotes aren’t smart quotes to be 100% but beyond that I’m at a loss.

  21. Vince,

    HTML emails only send to registered users who have selected to receive HTML email format.

    Your links are being created correctly

    Your top menu issue is a known and reported glitch in the WordPress core files.

  22. Hi,

    great Plugin, but I have one question:

    How can an registered user unsubscribe to the newsletter in his profile, when he is logged in?
    He has to deactivate all the categories, he has subscribed to?

    On the static page where your newsletter plugin is implemented, there is only a link to the profile page! Here, he has no chance to unsubscribe to it…

    Please help me.

    Thanks
    Jann

    PS: I use Subscribe2 Version 3.8.

  23. Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/alove4horses.com/httpdocs/blog/wp-content/plugins/subscribe2/subscribe2.php on line 1714

    I am seeing the above message under “Categories” on this page:

    http://alove4horses.com/blog/wp-admin/edit.php?page=subscribe2/subscribe2.php

    I have WordPress 2.1 and Subscribe2 Version 3.8
    ————
    Categories
    Existing Registered Users can be automatically (un)subscribed to categories using this section.
    Consider User Privacy as changes cannot be undone

    Action to perform: Subscribe Unsubscribe

    Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/alove4horses.com/httpdocs/blog/wp-content/plugins/subscribe2/subscribe2.php on line 1714
    Select / Unselect All

    http://alove4horses.com/blog/wp-admin/edit.php?page=subscribe2/subscribe2.php
    http://tinyurl.com/28f3va

    —————-
    Joni Solis info (at) alove4horses . com

  24. Kajonconnection,

    You need to get onto the latest version in the WordPress 2.1 branch – so 2.1.3 or upgrade to the latest and supported versions of WordPress (2.3.x) and Subscribe2 (4.x)

  25. If I choose Digest sending (once per week) from settings, does S2 send mails out if there are no new posts created?

  26. Hi there,

    I’d really like my readers to be able to use the subscribe2 form to submit their email and get updates on posts, but readers get a message that reads “To manage your subscription please login.” Or something similar.

    Is there a way for these folks to subscribe without being registered on my site?

    Thanks
    Josh

  27. Ooops. Nevermind I found my answer. By using an email address not already in the database, I was able to subscribe without registering.

    Word.

  28. THANK YOU!!! This plugin rules!!!

    I have wordpress 2.04

    Is there any way to auto-subscribe users to 2 categories only?
    I can’t write the code but i can impliment it and test it if you have any ideas.

    also, is there any way that i can impliment daily digest posting or whatever it’s called when people get all the days emails at once ?

    thanks a lot

  29. Noah D,

    First, I’d suggest you upgrade your WordPress to at least 2.0.11 as there have been security fixes made after your release.

    If you want to Autosubscribe to 2 categories only and never have subscriptions to other categories then exclude all but your two categories and don’t allow registered users to subscribe to excluded categories.

    If you want to maintain the normal function of the plugin and avoid doing the above then look in the code at the register() function and $cats a comma separated string of your cats and $all_cats an array of the same. The easiet way would be:

    $cats = '1,2';
    $all_cats = explode(','. $cats);

    Where 1 and 2 are the IDs of your categories.

  30. Hi Administrator, you told ivytwines twice it would be possible to unsubscribe registred users in the manage section, but i still cannot see, how it is done. On my manage page i have three forms: (1) Subscribe Adresses (2) Subscribers (3) Categories. There is no unsubscribe adresses field, button, link, etc., i cannot pic any adress from the subscribers list to unsubscribe it and with the categories stuff, i don’t understand this one at all, since i’ve set categorie options on the subscribe2 options page already. I have also created a testuser, to see wether users can unsubscribe themeslves, but can’t find a function for that either. So maybe i’m dump, but i really don’t see, how registred users can be unsubscribed. I’m sorry to bother you with those silly questions, but do you have step-by-step instructions for silly people like me? I’m using wp 2.1.3 and sub2 2.3.8.

    A 2nd question is less important. The public form on the wp-page, where i entered the token doesn’t fit with my paragraphs. The paragraphs have an indent or margin of 5px, but the form sticks right to the border. (see http://abgedichtet.org/?page_id=56) It looks silly, how can i fit the form? I’m into html/css, but not into php. Thanks for your plugin and help and please excuse my poor english.
    regards, LeV

  31. Sorry for double-post, but i’ve entered a fake adress via the Subscribe Adress form (1) on the Magage page. It appeared in the list (2) and behind it appeared a delete-button with a red cross. I clicked it and the adress was deleted from the list neatly. problem is, there is no such button behind my registred users adresses. Is it a bug or am i still too silly to grasp it? (see screen here!) regards LeV

  32. LeV,

    In Manage->Subscribers under the Categories section you can bulk manage subscriptions for ALL users at once. There is no option to individually manage a users subscriptions. To delete a registered user, since they are registered with your blog, use Users->Users&Authors.

    I see the issue with your form, try wrapping it in <p> tags although be aware that WordPress may strip them. The other option is to wrap the form in div tags and apply the same CSS to the div as you use for you paragraph tags.

  33. I’m using WordPress version 2.2.3 and Subscribe2 version 3.8.

    For some reason my weekly digest emails go out like this:

    ——
    Hi,

    Blog has had the following updates this week:

    TABLE

    You received this e-mail because we want you to be notified when new updates are posted.

    Best regards,

    Site Admin
    ——

    Why is the TABLE not being replaced?

    Nasser

  34. Nasser,

    There was a glitch in the code that has been fixed in the latest release. I don’t support for WordPress 2.2.x any more so either move to WordPress 2.3.x and the latest version or look at the latest code in the subscribe2_cron function and apply the changes yourself.

  35. Hi Administrator, this is Skylla and Charybdis choice i have, do i get it right? My ten registred users have been subscribed to the newsletter automatically, when i activated the plugin. There is no possibility to keep the one mail-wanter in the list, while unsubscibing the nine others, that already receive feeds and don’t need/want mail. I could only unsubscribe them all from every category, even my one mail-wanter, who is still subscribed to the list, but wouldn’t receive mail, since he’s unsubscribed from all categories. Wouldn’t it be easier to just implement a function, to allow registred users to subscribe or unsubscribe themselves from the list by free will, just like every guest can do? I don’t want my registred users to be penalized by the plugin.
    On the other hand, wrapping the form into paragraph- or div-tags doesn’t work either. I’ve already tried this, but the form doesn’t show on the page if the token is wrapped.

  36. LeV,

    If your Registered Users log in to WordPress they can manage their subscriptions under Users->Subscriptions – the function you request is already a core part of the plugin!

    When wrapping the token in HTML tags make sure to leave the token on a line by itself and your CSS should work fine.

  37. Uh, now i get it. If a user hasn’t checked any category in his subscribtion panel, he’s not subscribed and doesn’t receive mail. I’m sorry for bothering you so much, but you have to admit, that it is a bit puzzling, if the admin’s subscriber list doesn’t only show the subscribers, but also unsubscribed registred users. I’m sorry, it really didn’t dawn on me. I think it would have been more intuitive, if there’d be a general subscribe/unsubscribe section for the users and if the unsubscribed users don’t appear in the subscribers list at all (whether registred with my blog or not).
    So, in my misery i have bulk managed to unsubscribe the whole list of registred users from every category, so nobody would receive unwanted mail. Which table do i have to select in MySQL database to remove this setting? (Styling works fine now, since i left a blank line between the token and the tags. It didn’t work, when i left the blank line above and below the tagged token.) Thanks for your patience.

  38. LeV,

    I’ve tried as much as possible to explain the functions of each of the sections that Subscribe2 adds to the admin panel – I guess “Registered Users” still means subscribers to some people though. The changes you suggest are sensible but not easy and then also make the bulk subscription section tricky to place.

    You don’t need to go editing SQL tables either – the autosubscribe functions can be determined by the admin at Options->Subscribe2 under the AutoSubscribe heading. Since the default setting is “No’ and your users are being subscribed I would imagine that you’ve changed it once already too.

  39. Well, no, i didn’t change the autosubscribe default. But when i activated the plugin my registred users turned up in my subscriber list (at Manage Subscribe2) anyways. That’s why i’ve thought, they were all subscribed automatically, which, as i now believe, they actually weren’t. But anyways i’ve bulk unsubscribed them from all categories now (at Manage Subscribe2).
    So if now a registred user still can subscribe himself to all categories (at his Subsciptions section) and receives mail, everything would be fine with me. (I’m in doubt, because in the Manage Subscribe2 Categories section there’s a red note that reads: “Consider User Privacy as changes cannot be undone.”) I don’t want to change the default in autosubscription, since i want my registred users to decide for themselves, whether they want to receive mail or not.

  40. LeV,

    Registered Users lists people who are registered with your WordPress blog. Each of your categories is then listed with a number next to it if there are subscribers to that category.

    The default operation of the plugin is to allow users to decide for themselves. The section you refer to allows you to over-ride your users preferences which might be useful if you are adding a new category or deleting an old one. The privacy message is there for 2 reasons – to remind you about considering your users privacy (not spamming them) and to warn you that changes you make cannot be undone.

  41. Okay, i perfectly well know that the list of users registred with my blog shows users registred with my blog. That’s easy, but not the point. My subscribers list of subscribe2 shows users, which are registred with my blog, too, even though those registred users are not subscribed to the e-mail-notification of subscribe2. That’s the crux, which started all my problems and lead to all my misunderstanding. Because now i’ve made changes, that cannot be undone (bulk manage unsubscribed registred users from every available category). I misunderstood the function, i now realize, it was not, what i wanted, i have to undo, what cannot be undone. That’s why i’m aksing for the name of the table in the database, that stores the information about those unsubscribed categories, so that i can change it manually. Because now the two users, that are registred with my blog and also with the e-mail-notification of subscribe2 don’t get e-mail-notification when a new post appears – i as an administrator still get e-mail notifications.

  42. LeV,

    The database where subscription data is stored for Registered Users is ‘usermeta’. I’ve tried to avoid confusion by calling the WordPress registeres people “Registered Users” rather than “Registered Subscribers” and then listing the number of subscribers to each category beneath.

    If you can suggest a less confusing way I’ll be happy to consider it.

  43. First, I am running WP 2.1.x and accidentally installed 3.8 instead of 2.2. I removed 3.8 and then installed 2.2.

    I took a list of family members from my old website and entered the list into the “Subscribe Addresses” section. They are all listed as “confirmed” subscribers. I created a new post and when I published it the 2 registered users got the email about the new post but none of the confirmed subscribers were notified.

    Any suggestions.

  44. Rusty,

    Are there any email limitations in place on your hosting server? Can you access and check the server logs?

    The same function is used to send emails to registered and confirmed users so it is most likely to be an issue with restrictions on the server.

Comments are closed.