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
    did anyone grabbed all the fixes and aplyed it to a set of files I can get?

    maybe someone can get the time to release a 1.3.1 or even 1.3.0.1 version containing the fixes?

    Dimmy
      follow me on twitter: @dimmy01
      • 31471
      • 206 Posts
      Quote from: wshawn at Dec 21, 2007, 08:21 AM

      Symptom:
      During User Registration date was being saved as a single int instead of a full unix time stamp as expected.

      Cause:
      After reading the register function I noticed that MakeDateForDb was never called

      Snippet call:
      WebLoginPE? &type=`register` &regType=`instant`


      Quick Fix:

      Open webloginpe.class.php

      Around line 583 look for:
      	// If all that crap checks out, now we can create the account.


      Just above it place:
      ///credit: W. Shawn Wilkerson: process dates into proper unix timestamp 
      if ($dob!='') // don't try to format an empty string.
      {
      	$dob = $this->MakeDateForDb($dob);
      }
      


      There may be a better place for this change, but I’ll leave that up to Scotty for the next version.

      If this was already mentioned, 45 minutes of searching did not show it.

      Hope this helps someone
      If this doesn’t help, what should I do then?

      Edit: Sorry, I was messing up the versions of my class.php files.
      The above fix is working just fine!
        • 28033
        • 925 Posts
        I’ll add this in the documentation for v1.3.1, but in the meantime, here’s a quick fix if you’re having issues with the language file text appearing on your website...

        Look at the snippet code, and look at where it deals with the /lang folder. You’ll need to make it like this...

        include_once '/ABSOLUTE/PATH/TO/LANG/FILE/assets/snippets/webloginpe/lang/'.$lang.'.php';


        Basically, you have to make a direct path to where the file is on the server. Why this happens, I don’t know.

        This fix is also needed in function __construct in the class.php file. You’ll have to manually include it.
          My Snippets
          -> PopUpChunk v1.0
          • 24339
          • 1 Posts
          Quote from: vhollo at May 10, 2008, 06:43 PM

          Quote from: wshawn at Dec 21, 2007, 08:21 AM

          Symptom:
          During User Registration date was being saved as a single int instead of a full unix time stamp as expected.

          Cause:
          After reading the register function I noticed that MakeDateForDb was never called

          Snippet call:
          WebLoginPE? &type=`register` &regType=`instant`


          Quick Fix:

          Open webloginpe.class.php

          Around line 583 look for:
          	// If all that crap checks out, now we can create the account.


          Just above it place:
          ///credit: W. Shawn Wilkerson: process dates into proper unix timestamp 
          if ($dob!='') // don't try to format an empty string.
          {
          	$dob = $this->MakeDateForDb($dob);
          }
          


          There may be a better place for this change, but I’ll leave that up to Scotty for the next version.

          If this was already mentioned, 45 minutes of searching did not show it.

          Hope this helps someone
          If this doesn’t help, what should I do then?

          Edit: Sorry, I was messing up the versions of my class.php files.
          The above fix is working just fine!

          Hi
          You have to find line like this:
          $dob = $modx->db->escape($modx->stripTags($_POST['dob']));
          

          and place next the line:
          $dob = strtotime($dob);
          

          This action fixes the problem with adding dob during registration.
          Sorry for my english smiley