We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9941
    • 65 Posts
    Not sure if this is the right topic thread... but what I’m looking for is an option to create a user in a web group with a public form without the need for a password (can be blank password or auto-generated) AND have it log them in on refresh with a redirect to page option.

    Can WebLoginPE do this out of the box, maybe by setting the password in a hidden field to empty?

    I can use PHX to check if they are already logged in and in the correct web group... and show the form if not logged in, otherwise show the content... I just need the form to log them in.

    What I’m trying to do is set up a downloads directory where the user must fill in at least their email address (as username) in order to get access. I can do this easily with an eForm call and a cookie but I want to get the data into ModX Users/Groups for future use and don’t want to hack it together myself if I can use an existing solution that is community supported.

    Any thoughts? I’ll be installing WebLoginPE this morning to try it out as described and will check back here later to either post my results (for others looking to do the same) or else ask for more help ;-p





      • 28033
      • 925 Posts
      Might be best to post this in the sub-forum for WLPE. He’d probably see it easier than in this thread (since this existed before WLPE got its own sub-forum).
        My Snippets
        -> PopUpChunk v1.0
        • 22025
        • 5 Posts
        I have a question .
        I want to give permission to users to edit their attributes but I dont want them to change certain fields (email , password is ok but not certain fields ) . Only admins can edit all fields ..

        Can I do that ?
          • 26435
          • 1,193 Posts
          Quote from: odin88 at Dec 03, 2007, 10:44 PM

          I have a question .
          I want to give permission to users to edit their attributes but I dont want them to change certain fields (email , password is ok but not certain fields ) . Only admins can edit all fields ..

          Can I do that ?

          Yes, create a chunk that is a form with access to only the fields you want the user to be able to edit.
          I would start with this template: http://docs.webloginpe.info/Default%20Forms/defaultProfileTpl.html.txt
          Copy it to a new chunk (called {{userProfile}} for example) and delete the fields you don’t want them to be able to access, and add any custom fields you might need.

          Then on the profile page add the parameter &profileTpl=`userProfile`

          The key here is to offer them only fields that you want them to have access to. WebLoginPE will only update the database for the fields in your form.

          -sD-
          Dr. Scotty Delicious, DFPA.
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 22025
            • 5 Posts
            thanks for ur respond .
            BTW .. i add some new fields .. and it will come up on web_user_extended table ..
            how can I add web user in MODx CMS back end instead edit a new template call register ..
              • 13736
              • 345 Posts
              I would start with this template: http://docs.webloginpe.info/Default%20Forms/defaultProfileTpl.html.txt

              From the WebLoginPE snippet and a similar custom template is there a way to let the user see and change the web groups that he/she is a member of?

                • 400
                • 40 Posts
                Error in move_uploaded_file()

                Code:

                $userImage = $userImageFilePath_.strtolower(str_replace(' ', '-', basename( $_FILES['photo']['name'])));


                as I understand it $userImageFilePath different

                $userImageFilePath = $modx->config['base_path'].'assets/snippets/webloginpe/userimages/'.str_replace(' ', '_', strtolower($currentWebUser['username'])).$ext;


                in fact - $modx->config[’base_path’].’assets/snippets/webloginpe/userimages/’
                  • 13825
                  • 55 Posts
                  Anyone know why when signing up as a new user the email field isn’t validated?? I think i managed to sign up with ’test’.

                  thanks
                    • 28033
                    • 925 Posts
                    Quote from: jdelight at Dec 12, 2007, 10:13 AM

                    Anyone know why when signing up as a new user the email field isn’t validated?? I think i managed to sign up with ’test’.

                    thanks

                    It’s a known issue, IIRC.

                    *reminds self he needs to help implement that tongue*
                      My Snippets
                      -> PopUpChunk v1.0
                      • 2954
                      • 40 Posts
                      Scotty D,

                      The templates you provide for registration states that certain fields are required, but the default WebLoginPE call doesn’t require them. Being a bit of a MODx newbie I really struggled to realize that the solution was to add:

                      &regRequired=(email,username,fullname,password,password.confirm,tos)

                      To my WebLoginPE call. Without this, the form was simply submitting to itself without progressing. No error message, nothing.

                      I thought there was something wrong with the [+wlpe.message+] placeholder for the longest time.

                      So for anyone else who got lost in that particular rabbit hole i figured I’d post this.

                      B-dog Sputnik B-)