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

    I've been creating in Modx for quite a while now and I never would like otherwise. For this next project I need to create the following:

    A (profile) website where:


    • People can create a account and fill out a their details such as age, country etc.
    • In that account people need to fill a description
    • People who logged in, can filter other peoples profile based on the values they filled in (age, country etc.)

    This site has 2K+ users.


    Is Modx the right solution for this or do I need to let this be custom made?

    Thanks so much for your knowledge.


    Kind,
    Ilja
      • 37377
      • 64 Posts
      Hi Ilja,

      I think that by using the 'login' extra you can accomplish it: https://rtfm.modx.com/extras/revo/login

      It allows you to register, update profiles, ...

      Kind regards, Steffan
        • 42042
        • 140 Posts
        Quote from: culd at Mar 18, 2016, 03:43 PM
        Hi Ilja,

        I think that by using the 'login' extra you can accomplish it: https://rtfm.modx.com/extras/revo/login

        It allows you to register, update profiles, ...

        Kind regards, Steffan

        Thanks so much for your reply. I've found this one, in combination with custom fields the profile part could be done. Do you have recommendations on the search part.

        Ilja
          • 41255
          • 19 Posts
          For search you can use MODX Extra SimpleSearch: https://rtfm.modx.com/extras/revo/simplesearch
            • 42042
            • 140 Posts
            Quote from: devlanda at Mar 19, 2016, 01:11 PM
            For search you can use MODX Extra SimpleSearch: https://rtfm.modx.com/extras/revo/simplesearch

            Thanks for your reply. Can I filter on profile (extended)fields with this extra?
              • 41255
              • 19 Posts
              You can take a look at pdoTools, specific pdoUsers:
              http://docs.modx.pro/en/components/pdotools/snippets/pdousers
              http://docs.modx.pro/en/components/pdotools/general-settings

              ClassExtender is also interesting:
              http://bobsguides.com/classextender-class.html

              &where=`"firstName:=":"Bob","OR:firstName:=":"Susan"`


              fastField:
              https://rtfm.modx.com/extras/revo/fastfield [ed. note: devlanda last edited this post 8 years, 1 month ago.]
                • 3749
                • 24,544 Posts
                MODX is definitely the right tool for this.

                ClassExtender adds extra user fields that are not on the User Profile and stores them in a custom DB table, but you need to select the fields ahead of time.

                Of course, you'll also need to consider the UI for users to perform the searches.

                I'd strongly advise *against* any strategy that involves the User Profile extended fields or Template Variables to store the user data. There are many disadvantages to these approaches, but the main one is that searches can become very slow after the number of users gets too large.



                  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
                  • 42042
                  • 140 Posts
                  Thanks both @Devlanda & @BobRay.

                  I like the ClassExtender approach. The thing I don't really get is the search part. So to put it in a question: Can I search the the ClassExtender fields with "SimpleSearch"?


                  Kind,
                  Ilja
                    • 42562
                    • 1,145 Posts
                    Using TinyMagicPublisher (a wrapper for NewsPublisher) - to manage the create and edit pages, flawlessly!
                    The update profile and other things are easy to do yourself.

                    When a user registers and is catalogued under the right usergroup with appropriate MODX permissions, he will see a nice link in his member-only brief update profile page upon successful logon.
                    This link is produced by a snippet that checks if the user has ever created a resource in the parent resource called mysite.com/aboutme!/

                    This link is to the page mysite.com/profile/?create=true
                    If user has at least one resource created, this create page will auto forward to (view/edit my public profile)
                    mysite.com/aboutme!/whatEverPageTitleUserChose.html?edit=true
                    if user has deleted his resource - the link will signify so much.

                    * user may not have more than one resource in the aboutme! section, and user has freedom to change pagetitle at anytime, but you can force the pagetitle to anything you want - like Bob Ray has mentioned.

                    *user may publish and unpublish public profile at anytime

                    *(easy to set this up) user can edit other user fields provided by update profile snippet or ClassExtender while in a TinyMagicPublisher create or edit page
                      TinymceWrapper: Complete back/frontend content solution.
                      Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                      5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                      • 3749
                      • 24,544 Posts
                      Quote from: ilja-web at Mar 21, 2016, 11:52 AM
                      Thanks both @Devlanda & @BobRay.
                      So to put it in a question: Can I search the the ClassExtender fields with "SimpleSearch"?

                      I've never tried, but I very much doubt it. ClassExtender comes with its own search snippets (they're like getResources and getUsers), but anything very complicated might require custom code.
                        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