We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    Wow, this is so cool. grin
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 2912
      • 315 Posts
      Hi Scotty,

      I quickly tested it on IE7 and got the following back after changing the POST to GET:

      username=&password=&stayloggedin=&ieservice=&service=Register

      Looks the JS is working but all I’m seeing is a flash and return back to the same page sad

      I will test on IE6 when I get home.

      I have a feeling it could just be my end at work so please don’t take this as gospel. If someone else could test it and post up it would be great.
        BBloke
        • 2912
        • 315 Posts
        I will dick a little deeper but for now when I use IE and click Register the URL is as above.

        When I use FF the URL has ’registernow’

        There’s something not quite getting through to the script which is subsequently getting lost when it runs through its switch routine.

        More to follow. smiley
          BBloke
          • 26435
          • 1,193 Posts
          ARGHHHH!!!!
          The javascript is supposed to set the value of the hidden input named ieservice to the value of the button clicked. I am going to have to try something else I guess.

          Now I wish I had access to IE. I might have to try to install IEs4Linux on my Ubuntu box.

          -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
            • 20289
            • 958 Posts
            Im going to try cause it looks delicious!!! grin
            before that... just an idea that it makes sense to have the optionality in verify mode that allows the users to choose their passwords themselve and just leaving an activation link in their e-mails...?

            Thanks Scotty!
              [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
              [td][Wiki] [Persian support forum]
              [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
              [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
              • 26435
              • 1,193 Posts
              Quote from: MotSmart at Aug 23, 2007, 03:29 PM

              Im going to try cause it looks delicious!!! grin
              before that... just an idea that it makes sense to have the optionality in verify mode that allows the users to choose their passwords themselve and just leaving an activation link in their e-mails...?

              Thanks Scotty!

              You are welcome.
              for now, if you want the user to be able to choose their password, you could use &regType=`instant`, use a custom &registerTpl to show the bare minimum of forms, set the &notify parameter to make sure you get the message that a new user signed up, set &groups to a group where they will not be able to access the profile page, and in the manager web signup email, let them know that they can log in, but they will have to wait for an admin to authorize them for full access.

              I will work on your suggestion for the next release. Keep the ideas coming folks.

              BTW, I downloaded IEs4Linux, and it is AWESOME. I have half a dozen computers running here and none of them are running windows. I installed IEs4Linux on one of my Ubuntu boxes and using WINE and cabextract I am running IE6, IE5.5, and IE5 on Linux! It is great for testing my CSS and JavaScript, and I now have the IE <button> problem fixed. I will be posting in just a few moments version 1.1.1 with some new javascript that lets the forms work in (should be safe to say) all browsers. I have tested on Safari 2 & 3, FireFox, Camino, Opera, IceWeasel, Epiphany, IE6, IE5.5, and IE5. To work in IE, javascript must be enabled (a complicated situation where IE sends the innerText of the button instead of the value attribute... fixed it with some Javascript wink ), but the latest version I have here should work in all other browsers regardless of CSS or Javascript capability.

              -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
                • 26435
                • 1,193 Posts
                I have posted a new release in the MODx Repository!

                08/23/2007 v. 1.1.1
                No new features added in this point release, but many changes to accommodate the atrocity that is Internet Explorer have been made. I have tested this release extensively on IE 5, 5.5, and 6 (using IEs4Linux on Ubuntu Feisty) and found it to be fully functional on all major browsers.

                -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
                  • 23491 ☆ A M B ☆
                  • 1,056 Posts
                  @sD-

                  I started thinking about it, and I wonder if modx_web_user_settings would be a more appropriate fit for "extended" profiling options...

                  ...I’m sort of thinking out loud here...

                  I know this is the LAST thing you want to hear now that you have implemented the option for a custom joined table, but the structure of modx_web_user_settings could easily allow for extended profiling, as it is tied directly to the internalKey, part of the default table structure, and infinitely expandable.

                  Users could pass a list of "custom fields" that are then entered into modx_web_user_settings, prefixed with "wlpe_"


                  e.g.
                  webuser : 123
                  setting_name : wlpe_alternate_phone
                  setting_value : 1234567890

                  Of course, there are some pitfalls:

                  modx_web_user_settings.setting_value is of type "Text". I see both pros and cons to this. As Text, at least it could be used to store almost any type of user attribute, even full on text/descriptions. However, from a programmer’s perspective, this isn’t the most efficient setup--especially if you only need to capture something like a Date/Time value.

                  Anywhow, I’m interested in other’s thoughts regarding this idea. Potentially, this could allow for on-the-fly declaration of custom profile fields, and through the use of "wlpe_" prefix, you could easily hook into the table for integration into the (GUI) Manager > Web Users.

                  Other things that I have been contemplating:

                  Well, what about an extended profile that requires fixed option values? e.g. A dropdown list with Timezone options? ( MDT, EDT, PST, PDT, etc)

                  Well, why not add an entry to modx_web_user_settings with a webuser value of zero! (0 will never exist, and I have used similar technique successfully in the past!)


                  e.g. attribute options record
                  webuser : 0
                  setting_name : wlpe_timezone
                  setting_value : Timezone Label Title:::MDT, EDT, PST, PDT

                  webuser : 0
                  setting_name : wlpe_favorite_music
                  setting_value : What is your favorite music?:::Rock,Rap,Alternative,Country,Gospel

                  I haven’t figured out the ideal way to maintain (via GUI/Snippet/Module?) such predetermined option values, but once they are in the table, coding would be pretty easy!


                  Another Idea: I wonder what it would take to allow categorization of profile sections?

                  E.g. the ability to group profile attributes

                  Maybe this could be defined similarly as above:


                  e.g. profile group example
                  webuser : 0
                  setting_name : wlpe_profile_group_1
                  setting_value : Profile Group 1 Title:::wlpe_timezone,wlpe_custom_2,wlpe_custom3

                  webuser : 0
                  setting_name : wlpe_profile_group_2
                  setting_value : A different Title here:::wlpe_favorite_color,wlpe_favorite_food,wlpe_favorite_music
                    Mike Reid - www.pixelchutes.com
                    MODx Ambassador / Contributor
                    [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                    ________________________________
                    Where every pixel matters.
                    • 13471
                    • 2 Posts
                    Im having a hard time getting the viewprofile service to work. If anyone has any pointers they would be greatly appreciated.
                      • 16194
                      • 103 Posts
                      Quote from: Dr. at Aug 19, 2007, 03:26 AM


                      TODO.
                      1. Fix DOB and Last Login so the unset value is not the UNIX epoch.
                      2. Add TOS agreement which can now be set as "REQUIRED" with the new &regRequired parameter.

                      We’ll see about finishing those tomorrow, I just forgot about them and didn’t remember until after I posted the update and looked at this thread again.

                      Just a little reminder for the TOS grin

                      And there’s another question: what about a possibility to force the user to enter his e-mail address twice in order to prevent typing errors?
                        Impossible is nothing - with ModX