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
    Hi, thanks for all the input Ryan.

    Yes it doesn’t support any fancy queueing support right now. That’s the reason why the versio number still 0.2, wink It’s not full fledged newsletter system yet. I’m looking forward for more support on this part. The queueing part, I might added in the future releases, so everytime it send out an email, it will write a log to itself, and by the time the time out happened, it will continue sending the newsletter from the last list that are not being sent out.

    As far as using mmbercheck snippet, I think everything is being supported built in. The reason to that, because the anchor and the newsletter admin need the same permission, so there is no point in differentiating the auth. I also need to have the ability to allow both super, manager, and web user, which I have my little API being included with it.

    Regading about the {++}, I just don’t want to messed up with built in placeholder from MODx. In case if there is another snippet assigning the same placeholder name, and usually it will cause some problem. It’s just a special tag that I use for all my snippet. I will still use placeholder for its own usefulness, like the the newslisting snippet did its job.

    As far as the effectiveness of the code. I’m not to for sure about the count(array()), but as far as I know, PHP has their own way to optimize the array counting, instead of going through the array in one loop to count it, but they have their own memory to remember the current array capacity. I might be wrong, so correct me.
    The array_flip is the most resource usage function, but I need that to ensure that there is no duplication in the emails list.

    I also want to add more functionality to this system. Any inputs/suggestions are welcomed.
    Thanks Ryan for pointing that out.
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 32241
      • 1,495 Posts
      Anybody use this snippet yet? Any bugs report will be awesome.

      Thanks
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 32241
        • 1,495 Posts
        FYI, there is a duplicate webgroup subscription problem, but it’s minor, so it’s not something that need to be fixed right away. By the time you guys have the new one, it will automtically fix the previous one, when the user subscribe again.

        For more info on the evolution of this script, feel free to visit my testing site. I tried to keep the info updated, everytime I make a changes.

        Thanks
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
          • 6726
          • 7,075 Posts
          Quote from: Djamoer at Jan 31, 2006, 10:09 PM
          Anybody use this snippet yet? Any bugs report will be awesome. Thanks

          So many things cooking !
          But I intend to test it, and I’ll sure report.

          This snippet most definitely will end up being used by many, no doubt smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 32241
            • 1,495 Posts
            Thanks, coming up, I will add one more snippet, it’s 90% done, which allowing front-end editing for web users. It also include Web User API, that I hope can be use by a lot of snippet coder out there. I might start making my own API library, so that for the API that are not on the MODx yet will be stored in this library, so the class can be re-used by other coder.

            FYI, if you can stress test this snippet, it will be awesome. I would like to know the limitation of php mailer, so I have a clear picture on how to do the message queue list system.
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 8471
              • 333 Posts
              I use this snippet, but I have 2 problems:
              -1 I can’t see the subscribe page (with  [!Newsletter? &mode=`signup` &tplSignupForm=`SignupForm`!] )
              -2 When I send a message i receive this error
              MODx encountered the following error while attempting to parse the requested resource: 
              « PHP Parse Error » 
                
              PHP error debug 
                Error:  mail() [function.mail]: SMTP server response: 554 Error: no valid recipients   
                Error type/ Nr.:  Warning - 2   
                File:  C:\sito\manager\includes\document.parser.class.inc.php(691) : eval()'d code   
                Line:  384   
                
              Parser timing 
                MySQL:  0.0265 s s (4 Requests) 
                PHP:  0.8520 s s   
                Total:  0.8785 s s 
              

              Thanks to all rolleyes
                Sorry for my bad English grin
                • 32241
                • 1,495 Posts
                Ok, I’ll look on this
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 32241
                  • 1,495 Posts
                  When you sent ot the newsletter, did you put something on the send to textarea box, for additional email? The error comes from that thing, so I assume you did something with it. Did you enter any users to the system yet?

                  Last question, which version that you use? smiley

                  Thank you
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 8471
                    • 333 Posts
                    Quote from: Djamoer

                    When you sent ot the newsletter, did you put something on the send to textarea box, for additional email?
                    No, I use only register users.
                    Quote from: Djamoer

                    The error comes from that thing, so I assume you did something with it. Did you enter any users to the system yet?
                    Yes, I have 4 users

                    Quote from: Djamoer

                    Last question, which version that you use? smiley
                    The last


                    Thanks a lot for your time Djamoer
                      Sorry for my bad English grin
                      • 32241
                      • 1,495 Posts
                      Quote from: edipo at Feb 08, 2006, 01:34 PM

                      Thanks a lot for your time Djamoer

                      No problem at all.

                      Btw, I couldn’t reproduce the problem, but I’m currently using the latest version which contains a few bugs fixed from version 0.2b.

                      Wanna try the new one? You can visit the testing site to see all the things that was fixed.
                      Hope it solve the problem.

                      One more thing, make sure that you use the default template fist, and see whether it works, here is the snippet calling that I use on my testing server.

                      [!Newsletter? &emailGroup=`Test: Newsletter` &removeUser=`true`!]
                      


                      To access a different mode view, use quesrystring &mode with msg/doc/signup/signout

                      Thanks
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media