We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    Scotty, I don’t think WLPE can do this yet, but to make this a universal application, maybe in a future version, you could allow for a custom date format. Like having &date=`MM-DD-YYYY` in the WLPE call. Types profile, user, and manage would probably be the only ones who would need this.

    Like how the US uses the MM/DD/YYYY format, IIRC, Japan uses DD-MM-YYYY. So having the option to do set that (and have MM-DD-YYYY as a default, I’d assume). That would require having WLPE be able to calculate the age, though, which I’d guess is just tinkering what you already did.

    Now, in the case that a site uses DD-MM-YYYY, but uses the English language file (or heck, if someone has a multilanguage site and found a way to get WLPE to pick the correct lang file), have a [+PLACEHOLDERHERE+] in the language file would make it so the person wouldn’t have to go and edit it. You already do it for stuff like the KB user image limit, the failed login count, etc., so this shouldn’t be that hard, in theory anyway. laugh

    Sorry if that was semi-confusing. I tried to explain the best I could. smiley

    EDIT: I thought of another idea. You know how some sites restrict users below X age? Maybe add a check in the Register code to deny any age below a number set in a config variable like &ageRequired=`13` or &dobRequired=`1-1-1994`, Since WLPE can already get the age from a DOB, I don’t see why it shouldn’t be able to deny a user using that information as well (this might open up the option for a COPPA-type thing, like you see on some forums --- where the under-13 user goes to a seperate register page or something).

    EDIT 2: Does WLPE already have an option to limit the number of words in the signature/comment field and/or allow/disallow basic HTML in that field? That might be a good idea to implement if it doesn’t already have it.
      My Snippets
      -> PopUpChunk v1.0
      • 2327
      • 214 Posts
      Hello,

      I try to make a simple login with webloginpe, including a captcha code . The captcha code displays well, but webloginpe makes fun to know if it returned or not, and thus if it is in accordance.

      My call of webloginpe is :


      [!WebLoginPE? &type=`simple` &lang=`fr` &loginFormTpl=`assets/snippets/webloginpe/LoginPerso.html` &liHomeId=`74` &regRequired=`formcode`!]

      The LoginFormTpl called (LoginPerso.html) contains:


      <div id="wlpeLogin">
      <form id="wlpeLoginForm" action="[~[*id*]~]" method="POST" enctype="multipart/form-data">
      <fieldset id="wlpeLoginFieldset">
      <legend id="wlpeLegend">&nbsp;Merci de bien vouloir vous identifier&nbsp;</legend>
      [+wlpe.message+]


      <label id="wlpeUsernameLabel" for="wlpeUsername">Nom d’utilisateur
      <input id="wlpeUsername" type="text" name="username" />
      </label>


      <label id="wlpePasswordLabel" for="wlpePassword">Mot de passe
      <input id="wlpePassword" type="password" name="password" />
      </label>


      <label id="wlpeStayLoggedInLabel" for="wlpeStayLoggedIn">Memoriser cette connexion ?
      <select id="wlpeStayLoggedIn" name="stayloggedin">
      <option value="">Non</option>
      <option value="3600">Oui, 1 heure</option>
      <option value="86400">Oui, 1 jour</option>
      <option value="604800">Oui, une semaine</option>
      <option value="2678400">Oui, 1 mois</option>
      <option value="315569260">Oui, sans limite</option>
      </select>
      </label>
      <img id="wlpeCaptchaImage" src="[+form.captcha+]" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." />

      <label for="wlpeUserRegisterCaptcha" id="wlpeCaptchaLabel"><span class="required">*</span>Please enter the code in the image.
      <input type="text" id="wlpeUserRegisterCaptcha" name="formcode" >
      </label>

      <button type="submit" id="wlpeLoginButton" name="service" value="login">Se connecter</button>
      <button type="submit" id="wlpeReminderButton" name="service" value="forgot">Mot de passe oublié ?</button></fieldset>

      </form>
      </div>



      A track maybe:
      The captcha image is not linked, so I cannot click above to regenerate it.

      If you have an idea of solution, I am blocked on this problem for this morning.

      Thank you very much smiley
        • 28033
        • 925 Posts
        Hmm...was the CAPTCHA code you used straight from the Register page (it looks like it, IIRC).

        Wouldn’t be suprised if Scotty only included the CAPTCHA-related stuff in the type=`register` part of the webloginpe.class.php file.
          My Snippets
          -> PopUpChunk v1.0
          • 26435
          • 1,193 Posts
          Soshite is right.
          I have only implemented the CAPTCHA code in registration.
          I meant to make it universal, but I forgot about it.
          As for clicking the link....
          Oops! That was copied from xwisdom’s (Raymond Irving) code. He had the image as a link to refresh the page.

          -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
            • 2327
            • 214 Posts
            Thank you very much for your response.

            But I am novice (and my english is very bad...!)

            Thus it is not possible to have the captcha code with this current version for the login simple type ? Nevertheless, this device seems important considering the very well seen blocking occurring after three missed tries. A machine passing here quickly could blocked by numerous addresses. Is not it?
              • 26435
              • 1,193 Posts
              Quote from: astrolabe at Oct 05, 2007, 02:57 AM

              ... A machine passing here quickly could blocked by numerous addresses. Is not it?
              Is this happening a lot at your site?
              Machines hijacking actual usernames and trying a brute force attack for the password?

              -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
                • 2327
                • 214 Posts
                Thank you for your answer which I am not on to understand....

                No, indeed on, it did not arrive at me, but I found the interesting idea, as far as your snippet is really remarkable rolleyes
                  • 28033
                  • 925 Posts
                  Scotty, I’m gonna try tinkering around with WLPE to see if I can get my idea of having WLPE get the sorting option from the URL, and parse it, to work. I have an idea of doing it from what I learned from my PopUpChunk snippet --- I just need to see if it works with WLPE.

                  I’ll give the code for it if it works. smiley
                    My Snippets
                    -> PopUpChunk v1.0
                    • 2327
                    • 214 Posts
                    I test WebloginPe for this evening.

                    somebody has tested the procedure of recovery password ( activateTpl ) ?

                    For me, everything works well (sending of the e-mail with the key of activation). Regrettably, he(it) never re-knows as identical both words of pass bucked up. So impossible to change them via this procedure.

                    Did anybody among meet you this pb?

                    I am sorry to intervene in this forum of expert. But I do not find solution. Thank you if you have an idea smiley
                      • 2327
                      • 214 Posts
                      sorry, I’have find this post to solve this bug. Thank’s.

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