We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1236
    • 33 Posts
    I’ve been searching around the forum, but haven’t found what I need yet. I’m building a community site which of course, has member profiles. All members are at the moment registered as web-users. I have a few things I’d like to make possible. First, I’d like to customize the information that a web-user can have. In other words, more available attributes to the web-user (like instant messaging addressess etc.) smiley Second, I’d like the web-user to be able to manage his/hers member profile data from the front-end after been logged in.

    Has someone already done something similar to this? Snippet of some sort? If not, I’m propably going to start coding one grin What changes does the new modx release hold for the whole user management thingy, if any?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      As far as I know no one has done this yet. There are three tables in the database that you will be interested in, web_users, web_user_attributes and web_user_settings.

      The web_user_settings table takes three fields, webuser (user ID), setting_name (key), setting-value (value); you can use this to store any information on users that you want.

      The web_user_attributes table is mostly for system use, such as blocked status and login count. I would recommend not using the other "personal information" fields in that table; use the web_user_settings table for personal data instead for consistancy and organization.

      The "internalKey" value is the main web_users ID number; this is an auto-increment value generated on creating a new user. It is stored in the SESSION array as webInternalKey for web users and mgrInternalKey for manager users.
        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
        • 1236
        • 33 Posts
        Thanks for the info! I’ll get my hand dirty with this soon. grin
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Another point, in the active_users table web user IDs are stored as negative values (-3) while manager users are stored as positive values (3).
            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
            • 2430
            • 12 Posts
              • 28033
              • 925 Posts
              Quote from: Auke at May 08, 2007, 02:47 AM

              Check out -> http://modxcms.com/forums/index.php/topic,8922.120.html

              Grz,
              Auke.

              Yep, that plugin is awesome. I’m doing stuff like IM fields, and that helps out a lot (setting it up is a little rough, but it’s easy once you understand how it works).
                My Snippets
                -> PopUpChunk v1.0