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
    Quote from: Dr. at Sep 14, 2007, 05:49 AM


    Quote from: Dimmy at Sep 14, 2007, 05:06 AM

    Bug: Date (dob) in standard form is not saved its set to epoch (01-01-1970)
    In registration, profile, or both?

    -sD-
    Dr. Scotty Delicious, Scientist DFPA.

    both
      follow me on twitter: @dimmy01
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      Quote from: Dimmy at Sep 14, 2007, 04:37 AM

      Maybe there needs to be a plugin that deletes the extra field info when you deside to delete a webuser from the manager.

      This sounds like a great idea, however, I would think the deletion of "web_user_attributes_extended" user data should be optional...Some may wish to retain the additional profile attributes they captured, for reporting purposes, historical, etc, etc.

      1. In the case of the plugin idea, one can simply disable/not install the plugin should they choose to retain this information.
      1a. The customTable parameter should also be present in the plugin, as one may use different table(s) from the default _extended. Maybe even a list of tables, depending on customTable usage...

      2. In the case of "self deleted" profiles, one would likely need to send a snippet parameter to retain the data should they not want it removed (provided sD implements _extended data removal on profile deletion via the snippet)

        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 8619
        • 229 Posts
        Ok, so I was having a problem working on this snippet while on a subfolder in my testing environment. I have found a fix to allow FURL’s to work in order to solve a problem that I was having where the FURLS were turned off, but it wasn’t allowing me to see the members profile page because it was putting "?" marks in the urls.

        I was getting this in my urls: http://ejcross.com/ubc/index.php?id=50?service=viewprofile&username=ubctester

        Notice the question marks? They were throwing off the snippet call. So I researched the FURLS here:

        http://modxcms.com/forums/index.php/topic,4700.0.html

        and added this to the <HEAD> section of my template:

        <base href="[(site_url)]"></base>

        and then added this correction to point to the right subfolder in my .htaccess file:

        RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]

        where "modx" is the subfolder name under to root of the site.

        Mine was http://ejcross.com/ubc for the site root of the testing site, and this has corrected the FURL’s issue and now the snippet is working wonderfully!

        I proclaim to definately not be an expert with .htaccess/php/apache/etc. so I hope this might help someone else.
          • 31037
          • 358 Posts
          I love this snippet and managed to set up it pretty well.

          I have some issues I would like to sort out:

          1. DOB

          I would like to have 3 selects for dob: Year, month and day.
          How would I do that with wlpe?

          2. Input handler

          a) I need the form elements to be formatted a bit different than what it does default:
          <label for="someId">Some text</label>
          <input .... />
          (When using the "for" attribute that is the correct way of formatting it.)
          How would I do that?

          b) As I’m currently creating an non English site I need to create a custom input handler for gender. But when creating that custom handler and setting the name part to "gender" it just doesn’t show up. If I set it to anything else it’s there again.

          c) Very small issue: With the input handler it’s not possible to add a colon in the label, as that would give an extra colon in the call. I guess I could set it with js if it’s important to me... smiley

          Perhaps the input handler should just set the options, not the label part, that would solve both a) and c).

          3. Log ip-addresses and block user

          I want to be able to log every ip-address the user uses when logging in, to be able to ban abusers.
          For that there must be a custom field in the custom table where ip:s are stored, and also a way to ban people.
          My question is: Should I make this my self, or is this interesting enough for others to so that it perhaps could be a new function in comming versions of WebLoginPE?

          4. International characters
          I have the issue with not being able to log in with names with international characters, but that I’ve already reported. smiley Forcing users use just English letters would not work very well in non-english countries.
          Also, would international characters be a problem if a user called MÖDx tries to upload a picture? Haven’t tested that part yet.

          5. Disable instead of delete
          I haven’t come that far yet, but is it possible to "disable" a user instead of deleting the account? If someone are doing nasty things on my community I would like to be able to disable the account while keeping the data for tracking issues.
          Also, while I’m at it, it should be nice to have a parameter that says accounts should be disabled instead of deleted when the users deletes them selfs, also for tracking issues.
          Again, I probably could do this myself, but... tongue

          I hope you don’t take it as I’m (whateverbadthingyouwant) with all my questions/suggestions! tongue
            • 26435
            • 1,193 Posts
            ScottyDelicious Reply #315, 19 years ago
            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            1. DOB

            I would like to have 3 selects for dob: Year, month and day.
            How would I do that with wlpe?
            I like that too. can do!

            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            2. Input handler

            a) I need the form elements to be formatted a bit different than what it does default:
            <label for="someId">Some text</label>
            <input .... />
            (When using the "for" attribute that is the correct way of formatting it.)
            How would I do that?

            b) As I’m currently creating an non English site I need to create a custom input handler for gender. But when creating that custom handler and setting the name part to "gender" it just doesn’t show up. If I set it to anything else it’s there again.

            c) Very small issue: With the input handler it’s not possible to add a colon in the label, as that would give an extra colon in the call. I guess I could set it with js if it’s important to me... smiley

            Perhaps the input handler should just set the options, not the label part, that would solve both a) and c).
            I totally agree. I will change that. Everyone can label it themselves, right?

            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            3. Log ip-addresses and block user

            I want to be able to log every ip-address the user uses when logging in, to be able to ban abusers.
            For that there must be a custom field in the custom table where ip:s are stored, and also a way to ban people.
            My question is: Should I make this my self, or is this interesting enough for others to so that it perhaps could be a new function in comming versions of WebLoginPE?
            It already gets logged in the ’active_users’ table.
            Of course I could add placeholders for ALL the predefined variables in PHP. I already set them for POST data with the [+post.whatever+] placeholder. I could probably add [+server.whatever+]. For instance: [+server.REMOTE_ADDR+] for the user’s IP.

            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            4. International characters
            I have the issue with not being able to log in with names with international characters, but that I’ve already reported. smiley Forcing users use just English letters would not work very well in non-english countries.
            Also, would international characters be a problem if a user called MÖDx tries to upload a picture? Haven’t tested that part yet.
            I am not sure what the problem is? I have not been able to recreate this error (using non-english, UTF characters) on any of my servers.

            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            5. Disable instead of delete
            I haven’t come that far yet, but is it possible to "disable" a user instead of deleting the account? If someone are doing nasty things on my community I would like to be able to disable the account while keeping the data for tracking issues.
            Also, while I’m at it, it should be nice to have a parameter that says accounts should be disabled instead of deleted when the users deletes them selfs, also for tracking issues.
            Again, I probably could do this myself, but... tongue
            Good point.

            Quote from: Uncle68 at Sep 14, 2007, 11:08 AM

            I hope you don’t take it as I’m (whateverbadthingyouwant) with all my questions/suggestions! tongue

            -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
              • 33337
              • 3,975 Posts
              Zaigham (aka zi) Reply #316, 19 years ago
              A small suggestion/request:

              How about having FURLs for profiles? i.e. site.com/users/123 OR site.com/users/username ... dont know how difficult it is, but we can have a custom field for user to input their desired alias.

              Keep up the sterling job, you guys always amaze me! may be someday I will join you in coding.... smiley

              all the best
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 26435
                • 1,193 Posts
                ScottyDelicious Reply #317, 19 years ago
                Quote from: zi at Sep 14, 2007, 12:43 PM

                A small suggestion/request:

                How about having FURLs for profiles? i.e. site.com/users/123 OR site.com/users/username ... dont know how difficult it is, but we can have a custom field for user to input their desired alias.

                Keep up the sterling job, you guys always amaze me! may be someday I will join you in coding.... smiley

                all the best
                Hmmm.
                Sounds neat, but I have no idea how to do that???
                Let me talk to OG about it. He should probably know if it is even possible? it actually might be possible with .htaccess? I don’t know for sure.

                -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
                  One question I have about the documentation.

                  The <select multiple> part. When a user selects more that one thing, how does WLPE store it in the database? Let’s say I had a website for the main PS2 games in the Final Fantasy franchise, with a multiple select with these options...

                  Final Fantasy X
                  Final Fantasy X-2
                  Final Fantasy XII

                  The bolded parts are the choices the user picks, for let’s say, games they have in their collection. When this is outputed in the user’s Profile, does it output it like this...

                  My Collection: Final Fantasy X, Final Fantasy XII (Bolded text being what’s in the database.)

                  Or does it work in some other fashion?
                    My Snippets
                    -> PopUpChunk v1.0
                    • 26435
                    • 1,193 Posts
                    ScottyDelicious Reply #319, 19 years ago
                    When WebLoginPE encounters a "select multiple", as you may know, the $_POST value is an array.
                    WebLoginPE implodes that array.

                    The values you had in your post would be stored in the database as:

                    Final Fantasy X||Final Fantasy X-2


                    -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
                      Okay. So do you know how it’ll output that when the field is called in the View User Profile page? I was thinking of using this for a list of clubs/fanlistings a user is a member of, once HTML is allowed in inputHandler, hence why I’m asking. It’ll also be useful for the collection/wishlist stuff, like I mentioned earlier.

                      BTW, I replied to your PM, and sent an extra one w/ something I forgot to put in the first one.
                        My Snippets
                        -> PopUpChunk v1.0