We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    Remember the issue I had with the "Private" text not showing up? I decided to test out putting a non-matching field in the password field, since I knew that would have to turn out a error.

    Not suprisingly, I get no error at all. Natta, zip, nothing. Now, I know there has to be an issue with something if it’s doing that. Now, I know WLPE is trying to post the error, because it’s doing this...

    <div class="wlpeMessage"><p class="wlpeMessageText"> <br /></p></div>


    ...which creates a "space" where the error should be. Since this seems to be an issue of WLPE not assigning the array string(s) in the lang file, I’d wouldn’t be suprised if this was the root of the "Private" issue I had before. Is there some sort of &_____=`` I need to set for the language file, or is there something amiss with my class.php file for WLPE? Or did I miss something in my custom chunk template?

    Since I know the snippet call isn’t causing this, I’ll post only the chunk data...

    [+wlpe.message+]
    <form enctype="multipart/form-data" id="wlpeUserProfileForm" action="[~[*id*]~]" method="POST">
    
    <b class="heading">myBasicInformation</b><br />
    If you do not have the information to fill in a field, just leave it blank. You do not need to add N/A, etc., in those field(s).<p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileFullName"><b>Display Name</b></td>
      <td align="left" width="25%" class="tab2">[+form.emailprivate+] <label for="wlpeUserProfileEmail">E-Mail Address</td>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileDob"><b>Birthdate<br />(MM-DD-YYYY)</b></td>
      <td align="left" width="100%" class="tab2"><b>Gender</b></td>
     </tr>
     <tr>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileFullName" type="text" name="fullname" value="[+user.fullname+]" /></label></td>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileEmail" type="text" name="email" value="[+user.email+]" /></label></td>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileDob" type="text" name="dob" value="[+user.dob+]" /></label></td>
      <td align="left" width="100%" class="tab3">[+form.gender+]</td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="33%" class="tab2"><b>Country</b></td>
      <td align="left" width="33%" class="tab2"><label for="wlpeUserProfileState"><b>State</b></td>
      <td align="left" width="33%" class="tab2"><label for="wlpeUserProfileZip">ZIP Code</td>
     </tr>
     <tr>
      <td align="left" width="100%" class="tab3">[+form.country+]</td>
      <td align="left" width="33%" class="tab3"><input id="wlpeUserProfileState" type="text" name="state" value="[+user.state+]" /></label></td>
      <td align="left" width="33%" class="tab3"><input id="wlpeUserProfileZip" type="text" name="zip" value="[+user.zip+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePhone"><b>Phone #</b></td>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileMobile">Cell Phone #</td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePhone" type="text" name="phone" value="[+user.phone+]" /></label></td>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileMobile" type="text" name="mobilephone" value="[+user.mobilephone+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <b class="heading">myPersonality</b>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2">Current Avatar</td>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePhoto" id="wlpeUserPhotoLabel">Upload an Avatar</td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3"><img id="wlpeUserProfilePhotoImg" src="[+user.photo+]" alt="[+user.username+]" title="[+user.fullname+]" height="100" width="100" /></td>
      <td align="left" width="50%" class="tab3"><input type="hidden" id="wlpeUserHiddenPhoto" name="userphoto" value="[+user.photo+]" /><input id="wlpeUserProfilePhoto" type="file" name="photo" value="" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <label for="wlpeUserProfileComment">This is your signature for your <b>mySymphonic</b> account. It will appear in your profile, and wherever you post.<br />
    <textarea id="wlpeUserProfileComment" name="comment">[+user.comment+]</textarea>
    </label>
    <p></p>
    
    <b class="heading">myFavorites</b>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2">Favorite Tales Game</td>
      <td align="left" width="50%" class="tab2">Favorite Tales Anime</b></td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3">[+form.favtalesgame+]</td>
      <td align="left" width="50%" class="tab3">[+form.favtalesanime+]</label></td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileFavothergame">Other Favorite Game</td>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileFavotheranime">Other Favorite Anime</td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileFavothergame" type="text" name="otherfavgame" value="[+user.otherfavgame+]" /></label></td>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileFavotheranime" type="text" name="otherfavanime" value="[+user.otherfavanime+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <b class="heading">myIdentity</b>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileAim"><img src="/mysymphonic/im/aim.png" align="absmiddle" vspace="3"  /> <b>AIM</b></td>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileIcq"><img src="/mysymphonic/im/icq.png" align="absmiddle" vspace="3"  /> <b>ICQ</b></td>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileIcq"><img src="/mysymphonic/im/skype.png" align="absmiddle" vspace="3"  /> <b>Skype</b></td>
      <td align="left" width="25%" class="tab2"><label for="wlpeUserProfileWlm"><img src="/mysymphonic/im/wlm.png" align="absmiddle" vspace="3"  /> <b>WLM / MSN</b></td>
     </tr>
     <tr>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileAim" type="text" name="aim" value="[+user.aim+]" /></label></td>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileIcq" type="text" name="icq" value="[+user.icq+]" /></label></td>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileSkype" type="text" name="skype" value="[+user.skype+]" /></label></td>
      <td align="left" width="25%" class="tab3"><input id="wlpeUserProfileWlm" type="text" name="wlm" value="[+user.wlm+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="100%" class="tab2"><label for="wlpeUserProfileYim"><img src="/mysymphonic/im/yim.png" align="absmiddle" vspace="3"  /> <b>YIM</b></td>
     </tr>
     <tr>
      <td align="left" width="100%" class="tab3"><input id="wlpeUserProfileYim" type="text" name="yim" value="[+user.yim+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="33%" class="tab2"><label for="wlpeUserProfileForumgallery"><img src="/mysymphonic/interactive/forum.png" align="absmiddle" vspace="3"  /> <b>Forum</b> <b>/</b> <img src="/mysymphonic/interactive/gallery.png" align="absmiddle" vspace="3"  /> <b>Gallery</b></td>
      <td align="left" width="33%" class="tab2"><label for="wlpeUserProfileOekaki"><img src="/mysymphonic/interactive/oekaki.png" align="absmiddle" vspace="3"  /> <b>Oekaki</b></td>
      <td align="left" width="33%" class="tab2"><label for="wlpeUserProfileBlog"><img src="/mysymphonic/interactive/blog.png" align="absmiddle" vspace="3"  /> <b>Blog</b></td>
     </tr>
     <tr>
      <td align="left" width="33%" class="tab3"><input id="wlpeUserProfileForumgallery" type="text" name="forumgallery" value="[+user.forumgallery+]" /></label></td>
      <td align="left" width="33%" class="tab3"><input id="wlpeUserProfileOekaki" type="text" name="oekaki" value="[+user.oekaki+]" /></label></td>
      <td align="left" width="33%" class="tab3"><input id="wlpeUserProfileBlog" type="text" name="blog" value="[+user.blog+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileWebsitename"><b>Website Name</b></td>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileWebsiteurl"><b>Website URL (w/ http://)</b></td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileWebsitename" type="text" name="websitename" value="[+user.websitename+]" /></label></td>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileWebsiteurl" type="text" name="websiteurl" value="[+user.websiteurl+]" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <b class="heading">myPassword</b><br />
    If you need to change your password, please use the form below. If not, do not enter anything into these two fields.<p></p>
    
    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
     <tr>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePassword"><b>New Password?</b></td>
      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePasswordConfirm"><b>Confirm New Password</b></td>
     </tr>
     <tr>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePassword" type="password" name="password" value="" /></label></td>
      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePasswordConfirm" type="password" name="password.confirm" value="" /></label></td>
     </tr>
    </table>
    <p></p>
    
    <div align="center">
     <fieldset id="wlpeUserProfileButtons">
      <button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofile">Save</button>
      <button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Done</button>
      <button type="submit" id="wlpeProfileLogoutButton" name="service" value="logout">Logout</button>
      <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofile">Delete My Profile</button>
     </fieldset>
    </div>
    
    </form>


    EDIT: Looking at the webloginpe.class.php file, it seems WLPE is creating the DIV’s, but isn’t applying the lang text. I’m going to reupload a fresh copy of the class file, and see if that fixes it.

    EDIT #2: Nope, didn’t change anything. This doesn’t make any sense. It CAN’T be my chunk, because the <div> and <p> tags must be taken from the class file, since the lang and the chunk don’t have the code to make that. Also, I can also confirm this extends to the lang for a bad DOB, because I messed around with that to see how it needed to be inputted, and that error string didn’t appear where it should have.
      My Snippets
      -> PopUpChunk v1.0
      • 26435
      • 1,193 Posts
      Just to debug this, add this line to the __construct() method in webloginpe.class.php after $this->LanguageArray = $LanguageArray (or whatver the line is?).

      print 'LANGUAGE ARRAY:<br/><pre>'.print_r($this->LanguageArray, true).'</pre>';


      That should print out every line of the language array. If you dont see a bunch of code on your page after "LANGUAGE ARRAY", then we have a problem. wink

      -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
        • 28033
        • 925 Posts
        I found where the password stuff is. I get LANGUAGE ARRAY: , followed by nothing, natta, zip, el zilcho. So apparently something’s amiss here. Here’s the code I put in to make it happen...

        if ($_POST[$field] !== $_POST[$confirm])
        	{
        		$error = $this->LanguageArray[2].' <br />';
        		print 'LANGUAGE ARRAY:<br/><pre>'.print_r($this->LanguageArray, true).'</pre>';
        		$fieldMessage .= str_replace('[+000+]', '"'.$field.'"', $error);
        	}


        That was around Line 861 for me.
          My Snippets
          -> PopUpChunk v1.0
          • 26435
          • 1,193 Posts
          I want to see if it is even getting passed to the construct method.

          __contstruct() should look something like this:
          function __construct($LanguageArray, $dateFormat = '%A %B %d, %Y at %I:%M %p', $UserImageSettings = '105000,100,100', $type = 'simple')
          	{
          		require_once 'manager/includes/controls/class.phpmailer.php';
          		$this->LanguageArray = $LanguageArray;
          		$this->DateFormat = $dateFormat;
          		$this->UserImageSettings = $UserImageSettings;
          		$this->Type = $type;
          	}

          edit it to look like this:
          function __construct($LanguageArray, $dateFormat = '%A %B %d, %Y at %I:%M %p', $UserImageSettings = '105000,100,100', $type = 'simple')
          	{
          		require_once 'manager/includes/controls/class.phpmailer.php';
          		$this->LanguageArray = $LanguageArray;
                          // Added to debug the language array... To make sure it is getting passed.
                          print 'Passed LanguageArray:<br/><pre>'.print_r($LanguageArray, true).'</pre>';
                          print 'this->LanguageArray:<br/><pre>'.print_r($this->LanguageArray, true).'</pre>';
          		$this->DateFormat = $dateFormat;
          		$this->UserImageSettings = $UserImageSettings;
          		$this->Type = $type;
          	}
          


          good luck.

          -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
            • 28033
            • 925 Posts
            When I do that, I get this error when I view ANY page powered by MODx...

            Fatal error: Class ’WebLoginPE’ not found in /hsphere/local/home/tales/tales.rpgplanet.gamespy.com/manager/includes/document.parser.class.inc.php(766) : eval()’d code on line 39

            That’s can’t be good...
              My Snippets
              -> PopUpChunk v1.0
              • 26435
              • 1,193 Posts
              You did copy the contents of the new webloginpe.snippet.php file into the manager, right?

              -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
                • 28033
                • 925 Posts
                Quote from: Dr. at Sep 19, 2007, 09:29 PM

                You did copy the contents of the new webloginpe.snippet.php file into the manager, right?

                -sD-
                Dr. Scotty Delicious, DFPA.

                Yep, it’s v1.3.0.

                EDIT: I reuploaded a "fresh" version of the Class file, and it gave the same error again (IIRC, I had applied a bugfix by pixelchutes earlier.)

                Since I’m not skilled in PHP errors, what does that error I’m getting mean in layman’s terms?
                  My Snippets
                  -> PopUpChunk v1.0
                  • 26435
                  • 1,193 Posts
                  I think it means that it could not construct the WebLoginPE object. Possible due to an error in the code I gave you. I will test some things when I get home and give you properly working code.

                  -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
                    • 5568
                    • 35 Posts
                    Quote from: Soshite at Sep 19, 2007, 01:30 AM

                    Remember the issue I had with the "Private" text not showing up? I decided to test out putting a non-matching field in the password field, since I knew that would have to turn out a error.

                    Not suprisingly, I get no error at all. Natta, zip, nothing. Now, I know there has to be an issue with something if it’s doing that. Now, I know WLPE is trying to post the error, because it’s doing this...


                    [+wlpe.message+]
                    <form enctype="multipart/form-data" id="wlpeUserProfileForm" action="[~[*id*]~]" method="POST">
                    
                    <b class="heading">myBasicInformation</b><br />
                    If you do not have the information to fill in a field, just leave it blank. You do not need to add N/A, etc., in those field(s).<p></p>
                    
                    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                    <b class="heading">myPassword</b><br />
                    If you need to change your password, please use the form below. If not, do not enter anything into these two fields.<p></p>
                    
                    <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                    
                    ... lots of missing stuff here.....
                    
                     <tr>
                      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePassword"><b>New Password?</b></td>
                      <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePasswordConfirm"><b>Confirm New Password</b></td>
                     </tr>
                     <tr>
                      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePassword" type="password" name="password" value="" /></label></td>
                      <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePasswordConfirm" type="password" name="password.confirm" value="" /></label></td>
                     </tr>
                    </table>
                    <p></p>
                    
                    <div align="center">
                     <fieldset id="wlpeUserProfileButtons">
                      <button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofile">Save</button>
                      <button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Done</button>
                      <button type="submit" id="wlpeProfileLogoutButton" name="service" value="logout">Logout</button>
                      <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofile">Delete My Profile</button>
                     </fieldset>
                    </div>
                    
                    </form>


                    ... more missing stuff here...


                    Just to rule some other possible problems, you might try changing your name="password.confirm" to name="passwordconfirm" and your Save button’s value="saveprofile" to value="saveprofilesimple" if you do not have type=`simple` in the snippet call? Just an idea, it may not work, but it can’t hurt to try it out?

                    Good luck,
                    Mark
                      • 26435
                      • 1,193 Posts
                      Quote from: cobnet at Sep 20, 2007, 03:30 AM

                      Just to rule some other possible problems, you might try changing your name="password.confirm" to name="passwordconfirm" and your Save button’s value="saveprofile" to value="saveprofilesimple" if you do not have type=`simple` in the snippet call? Just an idea, it may not work, but it can’t hurt to try it out?

                      Good luck,
                      Mark

                      type=`simple` by default, but I know you meant type=`profile`
                      Good catch my friend. Cobnet also gets an Advanced Pirating Degree for his excellent feedback and investigation.

                      -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