We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    Quote from: sottwell at Aug 30, 2007, 12:49 AM

    I hope the php 5 version is still available? I was waiting for you to release 1.2...

    Agreed!
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 25663 MODX Staff
      • 12,272 Posts
      Quote from: Dr. at Aug 30, 2007, 12:21 AM

      I feel like such a sellout whore! :’(
      Don’t feel bad. Pirates are expected to be promiscuous.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 26435
        • 1,193 Posts
        Quote from: sottwell at Aug 30, 2007, 12:49 AM

        I hope the php 5 version is still available? I was waiting for you to release 1.2...
        I made sure no function was lost (other than data encapsulation) while regressing to PHP4 compatability.
        1.2.0 will be available soon with all the features I mentioned earlier, plus it will work under php4.

        WebLoginPE did not take advantage of any PHP5 specific functionality, I just made use of PHP5 specific syntax, declaring variables and methods as public, protected, and private for data encapsulation. I just wanted to do my part to further the acceptance of php5.

        @ Ryan:
        Yeah... filthy buggers. hopping from port to port.

        -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
          • 28033
          • 925 Posts
          I installed this script tonight, and it’s working flawlessly. Plus, I can be logged into the Manager and the Web User interface without one logging out the other. ^.^

          To get rid of stuff like the Register link, it seems you have to stream/comment out it, since removing the button code for it "deactivates" the other buttons/etc.

          Two things I had questions about...

          1) When someone puts in the incorrect username/password, is there a template that controls the output of that text --- basically, is that part allowed to have a custom template like the others?

          2) In Opera 9.23, it seems that "Wand" function will not login in like it should. It doesn’t give any errors --- it just refreshes the page. I have to manually input in the data to get it to login right. Dunno what is causing this, though.

          Anyways, congrats on this script. Very nice work. smiley
            My Snippets
            -> PopUpChunk v1.0
            • 26435
            • 1,193 Posts
            Quote from: Soshite at Aug 31, 2007, 11:30 PM

            I installed this script tonight, and it’s working flawlessly. Plus, I can be logged into the Manager and the Web User interface without one logging out the other. ^.^
            Glad it is working. laugh
            Quote from: Soshite at Aug 31, 2007, 11:30 PM

            To get rid of stuff like the Register link, it seems you have to stream/comment out it, since removing the button code for it "deactivates" the other buttons/etc.
            Whoa? that’s weird. I haven’t noticed that. I will look into it.
            Quote from: Soshite at Aug 31, 2007, 11:30 PM

            Two things I had questions about...

            1) When someone puts in the incorrect username/password, is there a template that controls the output of that text --- basically, is that part allowed to have a custom template like the others?
            No. But that is a brilliant idea! Consider it done. I might even put it into a placeholder so you can put it anywhere on the page.
            Quote from: Soshite at Aug 31, 2007, 11:30 PM

            2) In Opera 9.23, it seems that "Wand" function will not login in like it should. It doesn’t give any errors --- it just refreshes the page. I have to manually input in the data to get it to login right. Dunno what is causing this, though.
            Also very interesting. I have never used the wand (or even heard about it before now. I will put this on the "to do" list.
            Thanks a lot for your feed back.
            Quote from: Soshite at Aug 31, 2007, 11:30 PM

            Anyways, congrats on this script. Very nice work. smiley
            Thank you.

            -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
              • 28033
              • 925 Posts
              Yeah, like when I removed the fieldsets orginally (before just applying border=none in my CSS), or removed one of the buttons, it wouldn’t let me login, let the buttons do their work, etc.

              I think maybe, WebLoginPE was "looking" for a line of text that the fieldset/button had, and since it couldn’t find it, it couldn’t look in the snippet code to process whatever call it needed to do. Basically, I’m guessing it needs to "see" it, even if it’s not using that function at all.

              Most people shouldn’t be affeced by this, since they wouldn’t be using just the login part of the code like I am, thankfully. smiley
                My Snippets
                -> PopUpChunk v1.0
                • 26435
                • 1,193 Posts
                Quote from: Soshite at Aug 31, 2007, 11:49 PM

                I think maybe, WebLoginPE was "looking" for a line of text that the fieldset/button had, and since it couldn’t find it, it couldn’t look in the snippet code to process whatever call it needed to do. Basically, I’m guessing it needs to "see" it, even if it’s not using that function at all.

                The way WebLoginPE gets its different ’Views’ is by using a post back function based on $_POST[’service’].
                Each button has the ’name’ attribute set to "service" and the value set to a certain service that WebLoginPE provides.
                If you try to delete the name ("service") or it’s value, it just won’t work.

                The default set of buttons looks like this:
                <button type="submit" id="wlpeLoginButton" name="service" value="login">Login</button>
                <button type="submit" id="wlpeReminderButton" name="service" value="forgot">Forgot Password</button>
                <button type="submit" id="wlpeRegisterButton" name="service" value="registernew">Register</button>
                

                They do not need to be in a fieldset, it just helps keep it clean XHTML.
                Notice the name="service" on all the buttons. That is important. Also notice the value. That is the code WebLoginPE executes on submit.

                if you want to get rid of the register button, just use this code:
                <button type="submit" id="whateverIdYouWant" name="service" value="login">Login</button>
                <button type="submit" id="AnotherIdYouLike" name="service" value="forgot">Forgot Password</button>
                


                I hope that helps explain/clarify how WLPE works for those who want to use custom templates.

                -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 #108, 19 years ago
                  Updated to 1.2.0. Get it NOW in the MODx Repository.

                  09/02/2007 v. 1.2.0
                  1. WebLoginPE will now function under PHP4. No functions or services were lost.
                  2. Case insensitive login.
                  3. Added &type=`users` to view all web users and individual user profiles.
                  4. Added form input confirmation by with the use of name="inputname.confirm".
                  5. WebLoginPE messages/errors are now templateable and set in a placeholder so you can display them anywhere on your page or in your forms.
                  6. email address are verified against a simple regular expression to see if they match a standard email address format.
                  7. New parameter &inputHandler for super-fine control of your form’s <select>, <select multiple>, <input type="radio" /> and <input type="checkbox" /> form elements.

                  -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
                    • 28033
                    • 925 Posts
                    I noticed in Uncle68’s PPP thread that he was reconmending PPP users to use WebLoginPE. I’d be willing to switch over to it, but I need to know a few things first...

                    1) In PPP, there is the ability to have certain fields that only Admins can edit? As an example, on my website, I have Achievements for stuff like submitting graphics or game information. I need an easy way to add them for my users (going into phpMyAdmin could get annoying after a while, just to add an Achievement.

                    2) In PPP, people can "sort" users by those who have a website, or have an AIM account. This is basically done by adding a filter in the PPP snippet call, like website or aim. Can this be replicated in WebLoginPE?
                      My Snippets
                      -> PopUpChunk v1.0
                      • 26435
                      • 1,193 Posts
                      ScottyDelicious Reply #110, 19 years ago
                      Quote from: Soshite at Sep 02, 2007, 08:48 AM

                      I noticed in Uncle68’s PPP thread that he was reconmending PPP users to use WebLoginPE. I’d be willing to switch over to it, but I need to know a few things first...

                      1) In PPP, there is the ability to have certain fields that only Admins can edit? As an example, on my website, I have Achievements for stuff like submitting graphics or game information. I need an easy way to add them for my users (going into phpMyAdmin could get annoying after a while, just to add an Achievement.
                      By "Admins" are you referring to:

                      • Managers, from the Backend.
                      • Members of the webgroup "Admins"
                      • or Members of a webgroup that was specified in the snippet call?

                      Quote from: Soshite at Sep 02, 2007, 08:48 AM

                      2) In PPP, people can "sort" users by those who have a website, or have an AIM account. This is basically done by adding a filter in the PPP snippet call, like website or aim. Can this be replicated in WebLoginPE?
                      Intersting.
                      I have been working on a parameter called &sortBy (and of course &sortOrder [ASC:DESC]) for the WebLoginPE &type=`users` call. This parameter will accept one argument, a table column name such as username, lastlogin, internalKey, etc..., and will sort the entire list of users by the value of that column.

                      I love your idea and I will implement the &filter parameter for the users list which will accept a comma separated list of table column names to filter. If the user has data stored in all the columns specified, they would be shown in the list, else they would be excluded.

                      So if you wanted to show all the users who entered their AIM account you would use &filter=`aim` (assuming the customField you used was "aim". If you wanted to show all the users who entered a website AND a phone number, then sort them by date of birth, you would use &filter=`website,phone` &sortBy=`dob` &sortOrder=`ASC`

                      Just thinking out loud here, but... Yeah... I like that idea grin

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


                        I send pointless little messages