We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44437
    • 74 Posts
    Hey guys & gals,

    I was wondering if it is possible to update a logged in user's profile picture on the front end using modx file manager. I was able to give the user the ability to upload and edit/change the profile picture via a prehook within the UpdateProfile snippet. If the user wants to change their profile picture, he/she would have to upload another photo to the server.

    But what if I wanted the user to have the ability to use past images that he/she had already uploaded? Can this be done? And if so, how?
      • 3749
      • 24,544 Posts
      You might be able to use your prehook to add thumbnails of the user's existing pictures to your UpdateProfile page and let the user select one. The thumbnails could have radio buttons to select one so the selection would be part of the $_POST array. You'd have to build that part of the form on the fly in your prehook.
        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