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

    I need a members login section on a new site I am about to start building - I had earmarked LOGIN addon as the solution here. Few questions:

    1. Can one export a XLS or such from MODX which contains all the member information? e.g. username, password and other membership information?

    2. Can MODx be setup to send an email to an identified email address when a member updates their membership details with notes about what they have changed?

    3. Can I expose membership information into a table on a resource - e.g. I want to create a members list page, so selecting to expose specific elements of a members membership information within a table which includes the data for all members. So kind of like using GetResources to pull from the members area to display via a TPL chunk pulling the data fields I want..?


    Thanks

    dubbs.

    This question has been answered by BobRay. See the first response.

    [ed. note: dubbs last edited this post 12 years ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      1. I believe that there is at least one extra for that. http://modx.com/extras/package/xodus

      2. Yes, the UpdateProfile snippet that is part of the Login package can use posthooks to do whatever you like, just write a snippet to use as the posthook.

      3. Yes, the pdoTools package comes with pdoUsers http://docs.modx.pro/en/components/pdotools/snippets/pdousers
        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
        • 8168
        • 1,118 Posts
        Thanks Susan - I will have a look at what you suggest - many thanks smiley
          • 8168
          • 1,118 Posts
          Susan - looks like Xodus is not ready for Revo 2.3 as yet (https://github.com/modxcms/revolution/issues/11630#issue-37173621) - do you know of any other ways or exporting the users data from MODx without needing to use something like phpMyAdmin?
            • 3749
            • 24,544 Posts
            I've written custom snippets to do it, but the method depends on how you plan to use the exported data.

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 8168
              • 1,118 Posts
              Quote from: BobRay at Oct 17, 2014, 06:54 PM
              I've written custom snippets to do it, but the method depends on how you plan to use the exported data.


              Thanks Bob - I have it working using pdoTools - to place the contents of the members data into a resource which can be downloaded - but I fear that security is not as tight as it should be... Any advice on a solution?
              • discuss.answer
                • 3749
                • 24,544 Posts
                I'm not clear on who you want to secure it from, but I sometimes put a tag for this snippet at the top of a resource I want to protect. Only members of the Administrator group (or whatever group you specify) can access the page:

                [[!AdminOnly]]


                /* AdminOnly snippet */
                if (! $modx->user->isMember('Administrator')) {
                   $modx->sendUnauthorizedPage();
                }
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 8168
                  • 1,118 Posts
                  Sounds like a good idea Bob. I only want the CMS admin user to be able to see the resource yes - so this should work very well. Thanks smiley
                    • 3749
                    • 24,544 Posts
                    Glad I could help. smiley
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting