We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    This is an auto-generated support/comment thread for KoopsMailinglistX.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    A major hack of the Koops Mailinglist package to embed it in MODx as a module and a snippet.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 25663 MODX Staff
      • 12,272 Posts
      Very cool Susan. How does it compare to phpList?

      From what it sounds like, having the bounce and list management functions of phpList combined with the sending capabilities of Koops would be an amazing e-marketing platform.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Updated the repository with the production version. My apologies for accidentally zipping and uploading a development version. It really should work now.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 6926
          • 41 Posts
          Hi,
          I just installed the module on my modx. All worked well, it showed me the form too with subscribe and unsubscribe options but when I put my email address with the subscribe option checked, it did not show me any confirmation message nor it added my email to the list.

          Can you tell me what can be causing this issue?

          Thanks
          Deep
            Deep Ganatra
            Web1 Solutions
            • 6926
            • 41 Posts
            Okay, I figured out, it was happening because I had enabled the cache. I disabled it and it worked.

            One more thing I noticed, I tried 2 things:

            The system did not show me error when I clicked on submit without filling any info, I also entered invalid email address...

            Edit: Okay, here are some more bugs....

            When you have xx inactive members and 0 are older than 48 hours, and you click on the link to delete them, it shows following error:
            
            Warning: Missing argument 1 for removebulk() in /home/youth/public_html/assets/modules/koopsmailinglist/functions.php on line 191
            
            Warning: Missing argument 2 for removebulk() in /home/youth/public_html/assets/modules/koopsmailinglist/functions.php on line 191
            
            Fatal error: Call to a member function on a non-object in /home/youth/public_html/assets/modules/koopsmailinglist/functions.php on line 195


            Edit 2: Oops one more serious bug, when you enter email address without @ i.e. just the name, the script adds hostname of the server with @ and subscribes the same i.e. if you have entered deep it will subscribe email deep@my_server_hostname.com I got to know about it when I got an email just now to my mailbox...

            I hope these pointers help you to  make this module stronger.

            Edit 3: I wish to use this plugin the side bar of my menu and with no radio buttons for subscribe or unsubscribe i.e. default subscribe should be passed. Can you suggest me how I can do it?

            Thanks
            Deep

            P.S. One suggestion, why not show option for newsletter at the time of registration? If members have checked it, it will add them in the list.
              Deep Ganatra
              Web1 Solutions
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Yes, I noticed that the error handling is not at all robust. That is the first priority.

              Replace admin.php in the koopsmailinglist folder with this, it fixes the "missing argument" errors.

              (get rid of the .txt suffix in the filename; it’s needed to attach to the forum)
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I wish to use this plugin the side bar of my menu and with no radio buttons for subscribe or unsubscribe i.e. default subscribe should be passed. Can you suggest me how I can do it?

                The easiest way would be to edit the snippet code, where the form is generated. Comment out the second radio input, and change the first radio input to a "hidden" input, and get rid of the "checked" attribute and the label:

                  <input type="hidden" name="option" value="subscribe">
                //  <input type="radio" name="option" value="unsubscribe">'.$l_unsubscribe.'   
                
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Updated to version 1.3 (oops, not 1.5, this is what happens when typing in the dark...).

                  Improved error checking, bugfixes and email validation. Updated version added to the Resources repository.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 6926
                    • 41 Posts
                    Hi,
                    Sorry for not replying till now, my work is not allowing me to sit and work on this site. I will work on the site in next few hours and get back to you here. Thanks so much for the help.

                    Regards,
                    Deep
                      Deep Ganatra
                      Web1 Solutions
                      • 6926
                      • 41 Posts
                      Hi,
                      I just tried the code, it works well if I am placing it in a page seperately but it does not work If I am placing it in a chunk and calling it. it shows me the form and all but the values does not get passed through the form.

                      2nd thing I wanted as, can you tell me the file which shows errors and confirmation messages? I wish to show the errors in the form on Javascript alert boxes instead of current way. But my first goal will be to get it working on the left column. You can check it here

                      Last thing, you have forgotten to upload version 1.5 in downloads section, it still shows 1.3

                      Thanks
                      Deep
                        Deep Ganatra
                        Web1 Solutions