WordPress.org

Ready to get started?Download WordPress

Forums

New subscription plugin (55 posts)

  1. seriocomic
    Member
    Posted 10 years ago #

    I have just completed my first plugin for WordPress.
    It is called 'Subscriber' and it allows for people to subscribe to your weblog. It uses a flat-file to store the email addresses and allows people to subscribe/unsubscribe themselves as well as letting you send them an email independant of WP.
    It is currently version 1.0 and has been tested only on WP1.2
    More information and the download can be found at this link.
    I realise there are similar other mailing-list/subscriber type plugins out there, but neither did exactly what I wanted so I designed my own. Hope it is of use to somebody :)

  2. piginzen
    Member
    Posted 10 years ago #

    This looks great!
    I think I will install it... There are so many configurable settings... I love it...
    Any chance a future update to this plugin will have a bounceback feature?
    thanks so much,
    mat

  3. Frenchie91
    Member
    Posted 10 years ago #

    Thanks very much for this one. Got it translated, formatted to my template, installed and working. Great plugin.

  4. Frenchie91
    Member
    Posted 10 years ago #

    Looking at my subscribers list, the first line showed empty. Had a look at the list.dat file, which confirmed an empty first line so I deleted it. The result was that my first address showed correctly on line 1, but the following inscriptions shot off the confirmation emails but didn't show in the list. Started again with an empty first line, and all apparently works well. Is there a reason for the first line needing to be empty?
    I can live with this, but the emails sent out have "httpd" in the "from" line. Is there any way to change this or is it a problem with my host?
    Thanks again for the plugin.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    "It uses a flat-file to store the email addresses"
    Scary!

  6. seriocomic
    Member
    Posted 10 years ago #

    Frenchie91: Do you mean the there is a blank line at the top of your list.dat? If so, I don't beleive there is any specific reason for it to work this way. My list.dat has no empty lines.
    Be carefull in what program you edit list.dat in. The script relies on the \n newline indicator to seperate the addresses.
    The only reason I can think of that you're emails have "httpd" in them is that the settings were incorrectly entered.
    Feel free to contact me via my website directly if you continue to have issues and I will try and work through them with you.
    Anonymouse: It's only v1.0. Table entries or some other method might come along later. :)

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    Hi,
    The plugin is nice, but when I try to send a seperate e-mail to my test-subscribers (i.e. from the "Newsletters Editor" in /mailer.php?pw=P.A.S.S.W.O.R.D, I get a rebound to my original e-mail with the following info:
    ---------------------------------------------------------------------------
    A message that you sent contained no recipient addresses, and therefore no
    delivery could be attempted.
    ------ This is a copy of your message, including all the headers. ------
    To:
    Subject: test
    From: "My Blog's Name" <me@myblog.com>
    Message-Id: <messageid@server.com>
    X-rewrote-sender: nobody@server.com
    Date: Thu, 08 Jul 2004 06:13:48 +0300
    test
    ---------------------------------------------------------------------------
    NOTE: The information above has been altered from the original.
    Anyone else noticing this or is it just me? Have I done something wrong? Any way to fix it?
    Thanks,
    Sid

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    Hi, Me again (Sid), just an update/mis-understanding by me, the mail is actually sent when I do that, however I get a bounce back too.
    Is there any way to fix the bounce?
    Thanks,
    Sid

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    (finally registered)
    Sorry to be posting 3 times in a row, alongside the bounce (it gets delivered though as I mentioned above), when I send a message, it comes up with "Message Sent!" and a preview of my e-mail in HTML.
    But when I receive it (to my own-test-address), the html doesn't seem to work and it just shows the source. Any idea why? Does it support HTML?
    Thanks,
    Sid

  10. seriocomic
    Member
    Posted 10 years ago #

    There is obviously an issue with either the Sendmail function on your server or the settings that you have entered in the setup. (however, testing was rather on the light side so I may have missed something)
    And unless you configure the headers to reflect the correct MIME type, then the email will be in plain-text. The output shown to you comes out as HTML because it merely repeats the information you entered.
    HTML output maybe looked at in later additions.
    If you are still having problems, then contact me via my website so I can look at the settings to both the mailer.php and subscriber.php files.

  11. dzubi
    Member
    Posted 10 years ago #

    Hi seriomatic!
    I have some trouble to get this plugin working. I installed it following your instructions. The subscription page works, also can I send mails to the subscribed adresses from the newsletter editor. But when I post a new article in wordpress, nothing happens. Have I to do something aditional besides activate the plugin?
    thanks for the plugin anyway
    cheers, dzubi

  12. seriocomic
    Member
    Posted 10 years ago #

    I have only tested this plugin on 1.2 mingus. What version of wp are you using?
    Have you set the variables in subscriber OK?
    Also, sometimes, if you make an post using the advanced editor in the admin area, and not click "Publish" then it might not send out.

  13. dzubi
    Member
    Posted 10 years ago #

    ah my fault! I changed in mailer.php the filename of list.dat, but forgot to change it in subscriber.php. Now it works fine :)
    Thanks

  14. chutney
    Member
    Posted 10 years ago #

    You are a beautiful, beautiful man! Thank you! Now WordPress completely beats out MovableType. (The MT subscription model was the only thing I've missed.)
    Two issues, though. After I got it running on my blog, I set to putting it up on my friend's blog, which I host in a subdirectory. The "go back to blog" link defaulted to the home directory (my blog) and not to his. I went through and manually changed the six or eight places in mailer.php, so it was no problem. But that might be trouble for others.
    Second, I noticed a comment about the .dat being insecure and needing to be changed to .dat.php. Is this so?

  15. seriocomic
    Member
    Posted 10 years ago #

    Chutney: Thanks, yes, this first release is has security issues with which _mf_ is helping me with so adhere to his warning advisory.
    I will change that link in 1.1 too... :)

  16. indiano
    Member
    Posted 10 years ago #

    Hi,
    I can manager subscribers, but when and author post a new article
    , nothing happens. Can anybody help me?.
    Thanks

  17. indiano
    Member
    Posted 10 years ago #

    Hi,
    I get this error, but the mail is sent.
    ==========
    Warning: mail(): SMTP server response: 503 No recipient(s). in c:\archivos de programa\instantservers\miniportal\apache\htdocs\mailer.php on line 194
    The following email has been sent!
    From: "El Cantabro Perplejo" Content-Type: text/html; charset=iso-8859-1
    Subject: prueba 2
    Message: mensaje
    =============
    Thanks

  18. freelancer
    Member
    Posted 10 years ago #

    The plugin is cool so far... but it seems to send out an email everytime something is edited... Which can be evil if you publish something and realize you just made a mistake and do a quick edit...
    Is it possible to only have emailings when new posts are published?

  19. khackett
    Member
    Posted 10 years ago #

    It doesn't send an email when I update...

  20. seriocomic
    Member
    Posted 10 years ago #

    khackett, this normally means the plugin can't find the file that holds the email addresses. Does the email work when you use the subscription manager?
    Check the path to the list file is correct. If you are still having issues, then let me know. However I will be away for the weekend...

  21. jeanne1968
    Member
    Posted 10 years ago #

    Ok, I just installed this plugin & when I activate the plugin I get this error when I view my index file.
    Parse error: parse error, unexpected T_VARIABLE in /home/crazyra/public_html/wp-content/plugins/subscriber.php on line 61
    Line 61 in subscriber.php looks like:
    $mailer_path = get_settings('siteurl'); // gets the path to your blog directory
    Any help would be appreciated :-)

  22. seriocomic
    Member
    Posted 10 years ago #

    $mailer_path = get_settings('siteurl'); pulls directly from your blogsettings in the WP admin area.
    I don't think line 61 is where the error is, the error is mostly likely your settings in lines 56 and/or 57 - check those. :) (esp the quotes around each end)

  23. Root
    Member
    Posted 10 years ago #

    This looks very cool seriocomic. Thanks.

  24. jeanne1968
    Member
    Posted 10 years ago #

    Thanks! I had dropped a semi-colon. I think I had been looking at my computer WAY too much. I just didn't see it. Works great! :-)

  25. lawtai
    Member
    Posted 10 years ago #

    hmm, I just installed this plugin, and it seems to work fine. The only problem is that when after I subscribe by adding my e-mail address, it'll load up this page that's pretty screwed up. How can I fix the page that's loaded after a successful subscribe or unsubscribe?

  26. lawtai
    Member
    Posted 10 years ago #

    nm, I figured it out and cleaned it up some. How can I make it so that I don't e-mail myself everytime I post a new update?

  27. seriocomic
    Member
    Posted 10 years ago #

    simply comment out line 78 in subscriber.php where it says:
    $recipients[] = $myemailadd;

  28. lawtai
    Member
    Posted 10 years ago #

    and if i remove my address with those slashes do i still get an e-mail letting me know when someone joined?

  29. seriocomic
    Member
    Posted 10 years ago #

    Yes, because the mailer.php file will tell you.

  30. Frenchie91
    Member
    Posted 10 years ago #

    Renaming list.dat to list.dat.php isn't sufficient to keep the info from prying eyes. I guess you need to CHMOD it, but to which value?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.