We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    Ok I got it working.. only on registration that is...
    i used $_POST[’username’] but then ofcource for editing this would not work. mm maybe i put this in the wrong spot: $this->Username = $_POST[’username’]; ? where in de code do i set this?

    it looks like $this->Username never makes it into the CreateUserImage()
      follow me on twitter: @dimmy01
      • 7455
      • 2,204 Posts
      Bit off topic.

      made you a little printstyle for your doc site this way prints of de docs looks and reads nicer.

      greets Dim
        follow me on twitter: @dimmy01
        • 8619
        • 229 Posts
        Ok, playing around with this, and I LIKE IT A LOT!

        This looks like it will do just what I need it to do, however one problem I have and I’m not sure if I am missing something or not.

        I have a "View Profiles" document with the snippet call: [!WebLoginPE? &type=`users`!]

        When you click on the username to view more details, I get a "404" page. I can’t find how to get the detailed information to show up. Am I missing a parameter or do I need something else?
          • 23491 ☆ A M B ☆
          • 1,056 Posts
          Quote from: Dr. at Sep 12, 2007, 01:41 AM

          WebLoginPE explodes &disableServices at the comma into an array.
          At every TYPE checkpoint and at every SERVICE, WebLoginPE checks to see if that type or service is in the array of disabled services. If it is, a return statement is issued and no code is executed.

          Bravo, Scotty!! This is indeed huge, IMO, and I am very excited to see implementation already worked out! Great work (as always)
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 31037
            • 358 Posts
            I can create accounts with international characters with WebLoginPE, but when trying to log in with that name just get "The username you entered does not exist."

            Anyone else seen this?
              • 26435
              • 1,193 Posts
              ScottyDelicious Reply #246, 19 years ago
              Quote from: Dimmy at Sep 12, 2007, 06:54 AM

              Ok I got it working.. only on registration that is...
              i used $_POST[’username’] but then ofcource for editing this would not work. mm maybe i put this in the wrong spot: $this->Username = $_POST[’username’]; ? where in de code do i set this?

              it looks like $this->Username never makes it into the CreateUserImage()
              Dimmy, I think the problem might be that my conditional is not returning false.
              I will fix it today and get it out to you ASAP.

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


                I send pointless little messages
                • 26435
                • 1,193 Posts
                ScottyDelicious Reply #247, 19 years ago
                Quote from: ejcross at Sep 12, 2007, 10:09 AM
                ...I have a "View Profiles" document with the snippet call: [!WebLoginPE? &type=`users`!]

                When you click on the username to view more details, I get a "404" page. I can’t find how to get the detailed information to show up. Am I missing a parameter or do I need something else?
                No, I don’t think you are missing anything. A few things come to mind when you are getting a 404 page instead of the requested data.
                #1) a snippet is throwing an error. If you are logged into the manager, you MAY see the error details, otherwise, MODx tries to hide error reports for users as much as possible, so if something breaks.... send them to the 404!

                #2) Access Permissions on the page. Are they set to "All Document Groups (Public)"?

                #3) Page caching. In the "Page Settings" tab of this document is the "Cacheable" box checked? I always have my pages with dynamic content (like the users page) set to cacheable unchecked (not cacheable).

                #4) Clear the cache. Manager > Site > Clear Cache.

                Quote from: Uncle68 at Sep 12, 2007, 01:15 PM

                I can create accounts with international characters with WebLoginPE, but when trying to log in with that name just get "The username you entered does not exist."

                Anyone else seen this?
                First I would check the POST data being fed to the script.
                Put a snippet on the page with this content:
                <?php
                print 'POST Data:<pre>'.print_r($_POST, true).'</pre>';
                ?>

                See what shows up for the username.
                If $_POST[’username’] is showing up as expected, then there is a problem with WebLoginPE.

                -sD-
                Dr. Scotty Delicious, Scientist DFPA.

                  Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                  All of the above... in no specific order.


                  I send pointless little messages
                  • 31037
                  • 358 Posts
                  Quote from: Dr. at Sep 12, 2007, 01:40 PM
                  See what shows up for the username.
                  If $_POST[’username’] is showing up as expected, then there is a problem with WebLoginPE.
                  The username is there:

                  Array
                  (
                      [username] => Ådi
                      [password] => ******
                      [stayloggedin] => 
                      [serviceButtonValue] => login
                      [service] => 
                  )
                  
                  The username you entered does not exist.
                    • 26435
                    • 1,193 Posts
                    ScottyDelicious Reply #249, 19 years ago
                    Quote from: Uncle68 at Sep 12, 2007, 02:24 PM

                    The username is there:
                    Interesting.
                    I have no Idea what the problem is. I will look into it, but It probably won’t make it into 1.3.0.

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


                      I send pointless little messages
                      • 8619
                      • 229 Posts
                      Quote from: Dr. at Sep 12, 2007, 01:40 PM

                      Quote from: ejcross at Sep 12, 2007, 10:09 AM
                      ...I have a "View Profiles" document with the snippet call: [!WebLoginPE? &type=`users`!]

                      When you click on the username to view more details, I get a "404" page. I can’t find how to get the detailed information to show up. Am I missing a parameter or do I need something else?
                      No, I don’t think you are missing anything. A few things come to mind when you are getting a 404 page instead of the requested data.
                      #1) a snippet is throwing an error. If you are logged into the manager, you MAY see the error details, otherwise, MODx tries to hide error reports for users as much as possible, so if something breaks.... send them to the 404!

                      #2) Access Permissions on the page. Are they set to "All Document Groups (Public)"?

                      #3) Page caching. In the "Page Settings" tab of this document is the "Cacheable" box checked? I always have my pages with dynamic content (like the users page) set to cacheable unchecked (not cacheable).

                      #4) Clear the cache. Manager > Site > Clear Cache.


                      ScottyD:

                      I can’t see any errors anywhere, nothing in the system events file;

                      Access permissions are like this: The pages are in a container that requires login to access as this will be our members area. Access permissions are set to registered users and the pages are granted access for registered users.

                      The page cache is unchecked on each page, and I have cleared the site cache.

                      Still the same problem going to the 404.

                      Anything else to check? This is on a default sample site install of MODx 0.9.6 on my server running PHP 5.1.6 and MqSql 5.0.27.

                      You can see it here: ejcross.com/ubc and the login is ubctester and the password is ubctester.