We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38209
    • 26 Posts
    scherpontwikkeling Reply #11, 14 years ago
    Ok, what you can do is edit the MODX user-edit form and add the newsletters as check boxes. This would mean an admin goes into user management, modifies a user and he/she can then just check the newsletters which the user should be subscribed to...is this a problem? Because we have done this before as well smiley
      • 10378
      • 375 Posts
      Quote from: scherpontwikkeling at Nov 26, 2012, 06:26 AM
      Ok, what you can do is edit the MODX user-edit form and add the newsletters as check boxes. This would mean an admin goes into user management, modifies a user and he/she can then just check the newsletters which the user should be subscribed to...is this a problem? Because we have done this before as well smiley

      Do you mean modifying core files? This is no option for us as we'd like to release the GoodNews newsletter plugin as a MODx extra for the public.
        Freelancer @bitego http://www.bitego.com
        ---
        GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
        More infos here: http://www.bitego.com/extras/goodnews/
        • 38209
        • 26 Posts
        scherpontwikkeling Reply #13, 14 years ago
        No no, of course not...never modify core files smiley

        Hold on, let me put something up for you ;-)
          • 4172
          • 5,888 Posts
          perhaps its possible to use a superboxselect for your categories with some code like that:

          https://forums.modx.com/thread/79754/cmp-superboxselector#dis-post-443020
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 10378
            • 375 Posts
            Quote from: scherpontwikkeling at Nov 26, 2012, 06:35 AM
            No no, of course not...never modify core files smiley

            Hold on, let me put something up for you ;-)

            Now it's getting interesting!
              Freelancer @bitego http://www.bitego.com
              ---
              GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
              More infos here: http://www.bitego.com/extras/goodnews/
              • 10378
              • 375 Posts
              Quote from: Bruno17 at Nov 26, 2012, 06:35 AM
              perhaps its possible to use a superboxselect for your categories with some code like that:

              https://forums.modx.com/thread/79754/cmp-superboxselector#dis-post-443020

              Thanks bruno, but as far as I understand this wouldn't change anything as I still would have the problem that I read values from a custom table and write some values of it to the extended user fields. It would only change the rendering of the interface.
                Freelancer @bitego http://www.bitego.com
                ---
                GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
                More infos here: http://www.bitego.com/extras/goodnews/
                • 38209
                • 26 Posts
                scherpontwikkeling Reply #17, 14 years ago
                Create a new plugin, and select these events: onUserFormPrerender and onUserFormSave and paste the content of plugin.php.txt in the plugin...
                Create a new file in /assets/myscript.js and paste the content of myscript.js.txt

                Go edit a user and you'll see what you see in the attachment...I trust you can work with this ;-)
                  • 38209
                  • 26 Posts
                  scherpontwikkeling Reply #18, 14 years ago
                  With what I gave you, you can build anything you want...I have made some comments in the code so you can get the general direction in which I am pushing you laugh
                    • 38209
                    • 26 Posts
                    scherpontwikkeling Reply #19, 14 years ago
                    Please use this myscript.js.txt ;-)
                      • 10378
                      • 375 Posts
                      Wow - thanks I'll have a look now...
                        Freelancer @bitego http://www.bitego.com
                        ---
                        GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
                        More infos here: http://www.bitego.com/extras/goodnews/