We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5727
    • 160 Posts
    It should not cause any problem if you don’t have those lines, it simply throws a warning in the Javascript console. Somehow, the error was stopping TinyMCE’s pop-ups from closing but they were still working. I just had to manually close it. I think it might be because I’m using developer extensions with Firefox. Let’s just wait for 0.9.7 tongue
      Olivier Deland
      Montreal, Canada - Web Developer
      • 3602
      • 6 Posts
      Thanks ConseilsWeb
      Your Hack is wondeful wink
      Nice Work
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Updated to 1.5

        I needed to have multilanguage capabilities in the registration form, so I’ve added options to the registration snippet to allow using a chunk as a template for the form using placeholders, and to set a lang variable to override the default in the config.php file.

        [!KoopsMailinglistX? &tpl=`KoopsForm` &lang=`nl`!]


        Sample chunk template:
        <form id="km_form" action="[~[*id*]~]" method="post">
        <fieldset>
          <input type="hidden" name="op" value="set" />
          <label for="km_email">[+km_intro+] <input type="text" id="km_email" name="email" class="text" /></label>
          <label for="km_sub"><input type="radio" class="radio" id="km_sub" name="option" value="subscribe" CHECKED />[+km_sub+]</label>
          <label for="km_unsub"><input type="radio" class="radio" id="km_unsub" name="option" value="unsubscribe" />[+km_unsub+]</label>
          <input type="submit" class="button" value="[+km_submit+]" />
        </fieldset>
        </form>
          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
          • 16194
          • 103 Posts
          My hosting company allows a maximum execution time for scripts of 1.5 seconds.

          The last Mailing List script I used was a very, very simple Pearl script. The problem is that
          I have more than 4000 addresses in my mailing list and the old script only sends out around
          500 Mails because then it reaches the 1.5 seconds.

          Will this problem also occur with KoopsMailinglist?
            Impossible is nothing - with ModX
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            I have no idea. The core of this is Koops Mailinglist; you will need to either ask him, or give it a try and see.

            You may find that you need to subscribe to a mailing service. It will cost, but with that many subscribers it’s asking a bit much for mailing "on the cheap".
              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
              • 16879
              • 87 Posts
              Hi - got this working as far as subscribing/unsubscribing goes but when I send a mail I get

              Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/b23glob/public_html/assets/modules/koopsmailinglist/admin.php on line 91
              The mail has been sent.


              But no mail actually gets sent. Any ideas as to what’s happening here anyone?
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Yes, you’ve got safe mode on in your PHP, and it won’t let you change the time limit for the script to run.
                  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
                  • 16879
                  • 87 Posts
                  Ah, right.
                  And how would I go about turning safe mode off then?


                  s’oK - sorted - all working now! Nice adaptation!

                  Now, all I need it to do is to collect more info i.e. firstname, surname, company name and URL! Anyone done this already before I start mangling code?
                    • 4966
                    • 143 Posts
                    I am in the Admin menu - List which list the subscribers. Problem, at the bottom of the list is the number of pages, when I click on 2 it does not list page 2, same for 3 and the other pages. The only page displayed is 1. I tested this in serveral browers on both the pc and mac and it’s still a problem. When I hover over the 2, 3, etc I see that the l value is changing and looks correct. I don’t know what else to check so I can’t fix it. Anyone have a suggestion?

                    charlie-imac
                      • 4966
                      • 143 Posts
                      Anyone?