• [Snippet] Newsletter (Improved version from Luca Allulli)#

  • wendy Reply #1, 6 years, 4 months ago

    Reply
    Name: Newsletter (Improved version from Luca Allulli)
    For: MODx cms (modxcms.com)
    Description: Database calendar module for MODx
    Version: 0.2b
    Written by: Wendy Novianto
    Created: 1/18/2006
    Modified: 1/19/2006

    Fully Tested on MODx v0.9.1
    Added RichTextEditor and HTML Editing option, before sending the newsletter out, if it's fetch from a page.

    Hi,

    I'm not trying to duplicate somebody else snippet, but I took Luca Allulli snippet and make it as an example for me to start building the newsletter from scratch. Ever since he is the pioneer, so credit still goes to him, even though the code is totally different, but the concept is still the same.

    Things to note, this will use web user groups as the newsletter database, and allowing extra field as a textarea to insert more email into it. It's also able to copy the exact page view of the given document/page id and send it through email. So the newsletter template can be handled by the MODx engine.

    Here is the full features listing, as well as the testing site.
    http://test.djamoer.net/newsletter.html
    Username: newsletter
    Password: djamoer

    Please try it out and report to me if you guys found anything weird going on with the snippet, which is what we usually call bugs

    I tested for a while, but I haven't fully tested the system capability of sending a lot of emails to users. If somebody willing to help me out as the beta tester, please let me know the end result of it.

    Regards,


  • wendy Reply #2, 6 years, 4 months ago

    Reply
    Mark, I think it's better to approach it as a snippet rather than a module, so I came up with this approach.

    Sorry for not continuing the modules that you've built.


  • davidm Reply #3, 6 years, 4 months ago

    Reply
    Wendy, I am amazed by all the things you come up with lately !
    Man, are you hyperactive or what ??

    Anyway, I'll try this one out and report any problems I might encounter. I am glad to see this snippet being updated again, not to mention, improved


  • briggsys Reply #4, 6 years, 4 months ago

    Reply
    Wicked..... I'm going to need a way to keep visitors updated of changes. Was going to run a separate Mailman annoucment list, but this might just do the trick, especially since it will send the updated page to the recipients. Nice!

    I'll have to play with it once you get the user database sorted. Not sure how it will work as the recipients may or may not have an existing web account which accesses other stuff.

    So if they subscribe to the newsletter, and it just adds them to another group or something, that should work. However if it gives them a default web user account that would be bad, as that gives other access and I don't allow people to register for new accounts.

    Guess I'll just wait and see


  • MARKSVIRTUALDESK Reply #5, 6 years, 4 months ago

    Reply
    Wendy, my version was going to be a snippet in the end as well. I just coded the backend first (as a module) so that the code was cleaner. Did you ever try mine?


  • wendy Reply #6, 6 years, 4 months ago

    Reply
    Quote from: Mark at Jan 18, 2006, 07:17 PM
    Wendy, my version was going to be a snippet in the end as well. I just coded the backend first (as a module) so that the code was cleaner. Did you ever try mine?
    Yeap I did. I just found out that adding a more system to organize the template for the newsletter will add more task to achieve what I need right now. So I just use the current document/page on MODx to do the tricks. Later when I have some time, I will try to think of a better architecture in having this as a full-fledge newsletter system, like what you're planning to do, and we can work together on that
    Wendy, I am amazed by all the things you come up with lately !
    Man, are you hyperactive or what Wink ??
    Ehm David, it's not that I'm hyperactive, it's just that I need to extend MODx to meet my project. Hope somebody will help me in improving the snippet for both newsletter and calendar.

    I'll have to play with it once you get the user database sorted. Not sure how it will work as the recipients may or may not have an existing web account which accesses other stuff.

    So if they subscribe to the newsletter, and it just adds them to another group or something, that should work. However if it gives them a default web user account that would be bad, as that gives other access and I don't allow people to register for new accounts.
    What I'm planning to do with the user subscription part, it will just be the extended part of the websignup snippet. The only different, you need to choose the web group default for the signup, and make their username as their email address, and their password will be a random string which later can be reset, if you need to transfer the current newsletter user into your website user later on. This is the plan that Mark and the rest of the core team came up with, and I'm just trying to finish up their idea. So credit should go to Mark, Luca, and the rest of the core team.

    Regards,


  • wendy Reply #7, 6 years, 4 months ago

    Reply
    The first beta release of the snippet. It's suppose to be called done, but I haven't tested the capability of sending it to a lot of multiple users.

    Please report back to me if somebody willing to beta tested this.

    Regards,


  • Zombie Reply #8, 6 years, 4 months ago

    Reply
    Congratulation, you've been subscribed to the system.
    3 times, 3 congratulations: it's a lucky day
    Thanks you a lot for this very expected snippet.


  • wendy Reply #9, 6 years, 4 months ago

    Reply
    Well, I actually want to make a validity check, to make sure that the user is on the group already or not, but it seems to me that it will be a lot of processing power again, because it needs to do a couple trip back to the database.

    NOTE: When you unsubscribed, you're not being removed from the system, but you only going to be removed from the web group of the newsletter. f you decided to subscribed again, it will actually put you in to the group again, and this process can be repeated several times. The bad thing is, the system will use your email address as the username, so if you are a users of the web user, and you use a username different from your email address, then it will create a new ac, when you subscribed to the newsletetr with email address as the username.


  • Dimmy Reply #10, 6 years, 4 months ago

    Reply
    Description: Database calendar module for MODx
    copy/past is nice (;