We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17883
    • 1,039 Posts
      • 1649
      • 13 Posts
      Hi,

      What is the snippet call you’ve used for the AJAX login at:

      http://demo.scottydelicious.com/ajax-login.html

      Thanks
        • 26435
        • 1,193 Posts
        Quote from: andytwiz at Oct 19, 2007, 03:13 PM

        Hi,

        What is the snippet call you’ve used for the AJAX login at:

        http://demo.scottydelicious.com/ajax-login.html

        Thanks

        For now, I nixed the Ajax login on that page because I couldn’t get Jot to play nice being loaded dynamically from another page and inserted into the DOM of the ajax-login page. Posting a comment would fail until the page refreshed, which... defeats the purpose of the AJAX login?

        Anyway, here is the code for the WebLoginPE call for an AJAX login:
        [!WebLoginPE? &groups=`Registered Users` &regHomeId=`3` &profileHomeId=`2` &loadJquery=`true` &customJs=`assets/snippets/webloginpe/js/example.js`!]


        "example.js" takes care of hijacking the form and posting to my taconite XML page to log the user in asynchronously.


        -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
          • 1649
          • 13 Posts
          Quote from: Dr. at Oct 19, 2007, 03:34 PM


          Anyway, here is the code for the WebLoginPE call for an AJAX login:
          [!WebLoginPE? &groups=`Registered Users` &regHomeId=`3` &profileHomeId=`2` &loadJquery=`true` &customJs=`assets/snippets/webloginpe/js/example.js`!]


          "example.js" takes care of hijacking the form and posting to my taconite XML page to log the user in asynchronously.


          Thanks - any idea why clicking the buttons does nothing? I’ve checked the javascript source paths are correct. Nothing happens in IE or Firefox.

          Cheers
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            Could someone give me a very basic run down on exactly how to get his working? I really can’t sus it out.

            I see the register form on my site but when i put the info in, it’s not showing up on my database.

            I’m useing the latest version of modx and webloginPE.

            Many thanks!


            Also, i forgot to ask... the registration form doesn’t look too good on my site as it’s not lined up correctly. Where do i actually find the file to edit? Yes i’m a total novice but hopfully some help will get me understanding the whole modX thing. I’ve read the tuts etc but i keep ready most of them are out of date so it’s best to ask.

            Userimages upload isn’t working either. The folder permissions is set to 777 and it still won’t receive uploads. Anyidea?
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 33175
              • 711 Posts
              Hi,

              This snippet is very beautiful !
              I adopt it now laugh

              In the file "webloginpe.class.php", at the line 2886, an error message is in english. Is it possible to use a langage file instead (for next release of course ! wink ) ?

              	
              function ValidateEmail($Email)
              {
              	if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $Email))
              	{ 
              	return $this->FormatMessage('The Email address you provided does not appear to be a properly formatted address.');
              	}
              ...


              Thanks for all
                Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
                • 33175
                • 711 Posts
                Hi,

                I have some problem with the registration : no email is sent.
                Do I need to configure something in modx or WebloginPE ?

                Thanks

                Edit (20:30) : I received my email very late but it is ok smiley
                  Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
                  • 1649
                  • 13 Posts
                  Quote from: andytwiz at Oct 19, 2007, 04:01 PM

                  Quote from: Dr. at Oct 19, 2007, 03:34 PM


                  Anyway, here is the code for the WebLoginPE call for an AJAX login:
                  [!WebLoginPE? &groups=`Registered Users` &regHomeId=`3` &profileHomeId=`2` &loadJquery=`true` &customJs=`assets/snippets/webloginpe/js/example.js`!]


                  "example.js" takes care of hijacking the form and posting to my taconite XML page to log the user in asynchronously.


                  Thanks - any idea why clicking the buttons does nothing? I’ve checked the javascript source paths are correct. Nothing happens in IE or Firefox.

                  Cheers


                  Hi,

                  I’ve created a ’taconite’ XML page (id=4) with snippet:

                  [!WebLoginPE? &type=`taconite` &groups=`Members` &loadJquery=`true` &customJs=`assets/snippets/webloginpe/js/example.js`!]

                  and edited example.js to include

                  var options = {
                  url: ’index.php?id=4’,
                  target: ’#messages’,
                  success: taconiteFollowUp
                  };

                  and on my WebLoginPE page I have:

                  <div id="messages"></div>
                  [!WebLoginPE? &groups=`Members` &loadJquery=`true` &customJs=`assets/snippets/webloginpe/js/example.js`!]

                  but I’m still not getting anywhere.. Any ideas/hints?

                  Thanks

                    • 32699 ☆ A M B ☆
                    • 427 Posts
                    Quote from: Dr. at Sep 14, 2007, 09:08 PM

                    Quote from: Soshite at Sep 14, 2007, 08:58 PM

                    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.

                    Good point. Maybe it would be better for me to store it in the database as a comma separated list. That way on the view user page, when it outputs the value of "favorite_cars" it will display:
                    Ferrari,Lamborghini,peugeot

                    instead of:
                    Ferrari||Lamborghini||peugeot

                    I simply used double pipes because I thought it would be less likely to be a value stored than a comma would? Now that I think about it, a comma would be a rather uncommon occurrence in a <select multiple>.

                    BTW, I got your PMs and I will give a personal response to them ASAP. I truly appreciate your feedback. I think you and I have very different expectations for WebLoginPE, so it is crucial that you keep me informed so we can keep this as universally useful as possible.

                    -sD-
                    Dr. Scotty Delicious, Scientist




                    I was just thinking. What would keep someone from using the WebloginPE to initially create an account entering in what ever USER info is needed in the attributes and extended attributes (or what ever you name it) database tables.

                    AFTER this account is created have ANOTHER page calling ANOTHER call to the snippet to ANOTHER extra database to do a proper id / name look up table for this type of example.

                    Basically what I am saying: this appears to be modular, so lets leave it that way.

                    Have a form for the general contact into (you probably don’t want being changed much anyway), and another form which still uses the main info ( not necessarily the extended), but has the games (or whatever) attached to it.

                    basically user 1 and a user 2 in the new table would merely be
                    (Field 1) (Field 2)
                    USER ID GAME
                    1 Crysis
                    1 Quake 4
                    1 Unreal27
                    2 Pong
                    2 Myst

                    I’m not sure how much of this should be in the scope of WebloginPE and how much of it should actually fall on the shoulders of the site designer / webmaster / owner/ whatever
                      Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                      Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                      • 32699 ☆ A M B ☆
                      • 427 Posts
                      Any release date on 1.31?

                      Following the threads and hacks is a pain (and I write php / ajax/ mysql backends).

                      Thought I was applying patches necessary for 1.30 and THEN an announcement on the release of 1.30 comes up.

                      I guess I’m asking if someone can post the 1.30 class file and the other files that where changes as a zip, or can Scotty release the 1.31 version?

                      For anyone interested the thread for 1.30 actually starts here: http://modxcms.com/forums/index.php/topic,17359.msg113791.html#msg113791.

                      Scotty, can you make a point to add that kind of link when you add updates and you mention the new version in the first post of the thread.. I do not have a problem seeing this thread get to over 100 pages. As it was I just ran back through the first 18 pages of the thread to find the actual start point for the edits and hacks (before I just to the support thread which should also be listed as a link in the first post -- I know, I know that link is the top of page 25).

                      The Bug forum is found at http://modxcms.com/forums/index.php/topic,18271.msg114872.html#msg114872
                        Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                        Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com