We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2954
    • 40 Posts
    I’ve reinstalled WebLoginPE just to verify this, and it’s a repeatable problem.

    My registration form will not add users to the database when fields are required. If they are empty, it just returns to the registration form without posting a message as to why. If they are filled, it does the same or says that a required field hasn’t been registered. It’s almost like it is returning to the same form each time and posting the message from the previous one.

    [move] shocked it’s crazy[/move]. Your help would be greatly appreciated.

    Here’s my snippet call (on an uncached page):

    [!WebLoginPE? &groups=`Customers` &type=`register` &regType=`instant` &regSuccessId=`1025` &regSuccessPause=`0` &regRequired=`email, username, password, fullname, formcode, tos`!]


      • 2954
      • 40 Posts
      I was able to find and resolve this error in part.

      The "tos" field, being a checkbox, requires additional handling in the webloginpe.class.php. Starting line 456 it should be updated to something like:

      if ($_POST[$field] == ’’ || empty($_POST[$field]))
      {
      $test_this_value = $_POST[’tos’];
      if ($field == ’tos’)
      {
      return $this->FormatMessage($this->LanguageArray[34]);
      }
      if ($test_this_value != ’on’) {
      return $this->FormatMessage($this->LanguageArray[106]);
      }
      }

      And this line should be added to en.php in your lang folder (or whichever language you should use):

      $wlpe_lang[106] = ’Be sure to check off "I agree to Terms of Service."’;

      This will provide an accurate answer to visitors who don’t check it off, and allow the form to go through.

      Scotty or anyone else, did I miss something here that I had to do this hack and apparently no one else had to?
        • 2954
        • 40 Posts
        Hey Scotty,

        Do you have a "forgot username" button/function for WebLoginPE?

        Thanks
          • 32699 ☆ A M B ☆
          • 427 Posts
          I would suggest this topic get locked and all links from the repo and SD’s site be changed to the subforum: http://modxcms.com/forums/index.php/board,275.0.html

            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
            • 2954
            • 40 Posts
            I am trying to find a way to get the login page to go directly to the page I wish it to show, rather than showing a temporary "defaultLoginTemplate" page.

            Any advice on the "Best Practices" way to modify the code? All my attempts to date have had unexpected/unpleasant ramifications.

            Thanks
              • 2954
              • 40 Posts
              I am getting an error on my Logout - session_destroy = Trying to destroy an uninitialized session

              I was able to fix it by adding a "test" session just before the command. Any clues as to what is going on?

              BTW, the error only shows on Mac.
                • 32699 ☆ A M B ☆
                • 427 Posts
                Try visiting the actual support forums. I gave the link above.


                Scotty lock this thread and change the snippet page in the repo to point to correct page please.
                  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
                  • 10190
                  • 187 Posts
                  Hello,

                  I’ve implemented the WebLoginPE snippet (1.3.0) in my modx 0.9.6.1

                  At first sight everything looks fine, but if I try to register a new user, I get the followining error:

                  Fatal error: Call to undefined function: issuccess() in /var/www/MODx-0.9.1/manager/includes/document.parser.class.inc.php(745) : eval()’d code on line 65

                  I don’t know what’s inside the eval’d code, but as far as can see it (by using grep) the function should maybe be called with an capital S: isSuccess()?

                  I found such named funktions in scriptacolous and the mootools, but don’t know if this is connected to webloginpe’s ajax functions?

                  Can anyone help me getting webloginpe running?

                  Cheers
                  Frisco
                    • 26435
                    • 1,193 Posts
                    Quote from: wshawn at Jan 05, 2008, 08:03 AM

                    Try visiting the actual support forums. I gave the link above.


                    Scotty lock this thread and change the snippet page in the repo to point to correct page please.
                    I can’t lock it... I haven’t got the powerrrr! :’(
                      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
                      Quote from: Dr. at Jan 25, 2008, 05:00 AM

                      I can’t lock it... I haven’t got the powerrrr! :’(
                      Yes you sure can!, just edit the first post and lock it :-]
                        [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]