We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts

    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 wink

    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 Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 32241
      • 1,495 Posts
      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.
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 6726
        • 7,075 Posts
        Wendy, I am amazed by all the things you come up with lately !
        Man, are you hyperactive or what wink ??

        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 smiley
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 4095
          • 372 Posts
          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 smiley
            [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
            Admin Sandbox Login: sandbox Password: castle
            • 18397
            • 3,250 Posts
            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?
              • 32241
              • 1,495 Posts
              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 smiley


              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 Novianto
                [font=Verdana]PT DJAMOER Technology Media
                [font=Verdana]Xituz Media
                • 32241
                • 1,495 Posts
                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,
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 34162
                  • 1 Posts
                  Congratulation, you’ve been subscribed to the system.
                  3 times, 3 congratulations: it’s a lucky day laugh

                  Thanks you a lot for this very expected snippet.
                    • 32241
                    • 1,495 Posts
                    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 accunt, when you subscribed to the newsletetr with email address as the username.
                      Wendy Novianto
                      [font=Verdana]PT DJAMOER Technology Media
                      [font=Verdana]Xituz Media
                      • 7455
                      • 2,204 Posts
                      ???

                      Description: Database calendar module for MODx
                      copy/past is nice (;
                        follow me on twitter: @dimmy01