subscribe2
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! ;)

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.
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.
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
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
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 line
require_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) {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.// 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']);
}
Thanks to both of you for the info. I'll fix it up and make a 1.5.2 release this weekend.
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.
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?
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!
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.
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!
Just upgraded - great theme support! Cheers!
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.
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?
Oh, and how do I manage which categories trigger notifications?
Thanks
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 emailProvide 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.$categories_to_skip = "";
Feel free to email me, if you still need help!
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.
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?
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
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');
}
[...] 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 [...]
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?
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
Eirikso:
The XMLRPC API does not trigger the publish_post plugins. See bug 967 for details, and share any additional info you can.
Guess I just have to wait in patience for version 1.5.1 then... Thank you for an excellent plugin!
[...] 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 [...]
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.
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
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
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
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.
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
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
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!!! :)
Alex, thanks for the kind words. To display the entry form on any page, use something like the following:
Adjust as needed.
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?
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
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.
Cool ... I'll keep my eyes open for the update!
Thanks again for a great script!
-md
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. ;)
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.
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!
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.
[...] 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 [...]
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)?
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
Dan: the problem you're experiencing is that the Kubrick theme calls the sidebar at the end of the page, whereas my
subscribe.phpfile calls it at the beginning. Simply editsubscribe.phpand move the line:get_sidebarfrom the top to the bottom, just aboveget_footerBe sure to enclose it in
<?php ?>as needed.I'll keep your feature request in mind. Thanks!
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.
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.[...] 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 [...]
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...
MarcoB: have you fixed bug 902?
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.
Oh one last thing!
Where does the compiled .mo localization file go?
MarcoB: thanks for the kind words!
The .mo should go in your
wp-content/pluginsdirectory, according to the instructions on the WordPress codex.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?
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 ofmb_send_mail(); but I'm not sure. If you have any suggestions on the matter, feel free to email directly.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
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.One quick question...what is the "confirmation" link supposed to be? Is there a file that I missed or something? Please advise.
jsrdrnr: the "confirmation" link should be a hyperlink pointing to subscribe.php, stored in the root of your WordPress installation.
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
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.
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.
james: the problem you are experiencing is caused by the location of the
get_sidebar()function insubscribe.php. The code looks like this, starting at line 77:but that doesn't work for Kubrick-based themes. Simply move the
get_sidebar();line down, so that it is called just beforeget_footer();, on line 104.If you want to post without sending the notice to your subscribers, you have two work-arounds:
As for mass-mailing, that's already present. Click the
Managemenu, selectSubscribersand scroll down.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.
Thank you...
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!
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.
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. :)
[...] 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 [...]
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...
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
Billy: I think the style problem is due to the location of the
get_sidebar()template tag. Thesubcribe.phpfile 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.
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?
Where does the subscribe2.po file need to go? Does it need to be in the directory for this plugin to function correctly?
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
Billy: if you're using English as the language for your WordPress installation, then you don't need the
subscribe2.pofile at all. If you're not using English, then you can use the .po file to create a .mo file, namedsubscribe2-xx_YY.mowhere xx_YY is the language locale you're using (like de_DE for German, for example). Stick the .mo file intowp-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_postinstead, 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!
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?
Michael: most likely, you have not yet addressed WordPress Bug #902.
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?!
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?
It's working beautifully now. Thanks!
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...
Just wanted to say thanks for a GREAT script AND for the fast reply to my questions. Excellent Work !!!
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
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:
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!
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
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.
[...] | this day in history (under post plugins) | Link Definer | [...]
[...] | this day in history (under post plugins) | Link Definer | [...]
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 :)
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?
Mel: if you visit the admin interface for Subscribe2, it should automatically create the database table for you.
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?
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
Karl: please confirm that
subscribe2.phplives 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/
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.
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
Never mind. It is the theme that on all pages after the main are wrong.
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,
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.
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.
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.
[...] 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 [...]
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???
toto: my plugin is not adding those headers. Those are being automatically added by (presumably) your outgoing mail server.
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
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...
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
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?
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.
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.
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
Thanks for all your work on the work around for Dreamhosts limit on the number of recipients. Much appreciated.
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
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... :-)
[...] 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 [...]
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
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!)
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...
Ooops, forgot to spellcheck. Just so excited...
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?
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.
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
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_registerplugin 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!Thanks! I've upgraded and it appears to be working fine on the site, although none of the e-mails have come through yet...
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.
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.
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?
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!
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 ;) )
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?
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.
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?
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?
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.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.
Skippy,
I'm using a host provider, they are post4hosting.com.
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.
Everyone who has had trouble, please download version 2.0.8. I found and squished the bugs causing your problems. Thanks for your patience!
... I have version 2.0.8, and WP 1.5.1 ...
This is very strange. I'm getting the following error:
but i can't find "maybe_add_column" in either subscribe.php or subscribe2.php .. ?? .. any ideas on what's going on?
keaven:
maybe_add_columnis defined in/wp-admin/upgrade-functions.php.The error message clearly indicates that the problem is not with subscribe2, but with
briansthreadedcomments.php.[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]
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.
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.
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";
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?
keaven: you can edit
subscribe.phparound line 77, if you need to change how it displays. You'll need to usetarget=_blankin your anchor tag.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 inheader.php.I've cobbled together something that should work, but I will not offer any support on this.connections-subscribe
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!
[...] 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 WPR [...]
Great plugin! Thanks for all your help and for the fast update for my request.
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.
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...) ;)
Brent Colbert: please see here and here regarding the sidebar in subscribe.php.
Chris Bunting: the Kubrick
searchform.phpfile 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.phpto force the Kubrick search form to POST to the WordPressindex.php.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!
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?
---
...
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?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
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
dave: Here's the snippet from my syndicate page:
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.
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.
-bump-
IExplorer anomaly, has anyone else experience it? ..and perhaps has a solution or tip on how to fix it?
Thanks!
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.
...narrowed it down to the >>get_header();
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?
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.
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!
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):
...?>
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.
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!
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):
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!
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.
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
[...] 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 [...]
[...] 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 [...]
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.
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!
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
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.
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.
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.
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
Please disregard my previous comment, I'm a bit dense at this moment...
Maira
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.Shawn: the file
subscribe.phpshould live in the root of your WordPress directory. Do you have a link to your site where I can check this?[...] in June 25th, 2005 hehe… Just need to test a plugin. Subscribe2 to be precise. Entry Filed under: General 1 Comment Add your own [...]
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
Matt: the list of subscribers is accessible through Manage->Subscribers in your admin interface.
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
BTW, have you thought about setting up a short FAQ for this plugin? It seems you answer the same questions a couple of times...
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.
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
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 maybecontent) div down to at least the same length as your sidebar.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
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
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?
Eli: there are lots of ways you can adjust your theme. You could use a custom
divwith margins and or padding as necessary; you could use<p> </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! ;)