We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27442
    • 103 Posts
    I’m Using WebLoginPE 1.3.1 with &inputHandler to create ’private’ checkbox options for particular user information. All the database tables seem to be populating data correctly. However, when viewing a user, the private information is blank instead of displaying the phrase ’Private’ which should be LanguageArray[38]. Any indeas? When I turn off the private inputHandler checkbox, the field value is displayed again. So I think it’s working, just not displaying the correct message.
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      post the code that you have... I have just been working on this so I might be able to help.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 27442
        • 103 Posts
        Well, the call is just as documemented..... To edit:
        [!WebLoginPE? &type=`profile` &profileTpl=`UpdateForm` &customFields=`firstname,lastname,marriedname,emailprivate,phoneprivate,mobilephoneprivate,address1private,dobprivate,website,aim,aimprivate,msn,msnprivate,yahoo,yahooprivate,myspace,myspaceprivate,facebook,facebookprivate,city,address1` &inputHandler=`Keep private:userProfileEmailPrivate:emailprivate:checkbox:()||Keep private:userProfilePhonePrivate:phoneprivate:checkbox:()||Keep private:userProfileMobilePhonePrivate:mobilephoneprivate:checkbox:()||Keep private:userProfileAddress1Private:address1private:checkbox:()||Keep private:userProfileDOBPrivate:dobprivate:checkbox:()||Keep private:userProfileAIMPrivate:aimprivate:checkbox:() ||Keep private:userProfileMSNPrivate:msnprivate:checkbox:()||Keep private:userProfileYahooPrivate:yahooprivate:checkbox:()||Keep private:userProfileMyspacePrivate:myspaceprivate:checkbox:()||Keep private:userProfileFacebookPrivate:facebookprivate:checkbox:()` !]
        


        The chunk to display the user info:
        [+wlpe.message+]
        <b>
        <p>If you don't see a particular piece of information for a user here - They either have not added it or have prevented it from displaying.  If you want to edit information for your own profile, visit <a href="[~56~]">your profile</a>.</p>
        </b>
        <table id="wlpeViewProfileTable">
        	<tr>
        		<td colspan=2 class="wlpeViewProfileHeader"><h3>Viewing the profile of "[+view.username+]":</h3></td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Username:</td>
        		<td class="wlpeViewAttributeValue">[+view.username+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Full Name:</td>
        		<td class="wlpeViewAttributeValue">[+view.fullname+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Email:</td>
        		<td class="wlpeViewAttributeValue">[+view.email+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Phone Number:</td>
        		<td class="wlpeViewAttributeValue">[+view.phone+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Mobile Phone Number:</td>
        		<td class="wlpeViewAttributeValue">[+view.mobilephone+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAddress1">Address:</td>
        		<td class="wlpeViewAttributeValue">[+view.address1+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewCity">City:</td>
        		<td class="wlpeViewAttributeValue">[+view.city+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">State:</td>
        		<td class="wlpeViewAttributeValue">[+view.state+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Country:</td>
        		<td class="wlpeViewAttributeValue">[+view.country+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Age:</td>
        		<td class="wlpeViewAttributeValue">[+view.age+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Gender:</td>
        		<td class="wlpeViewAttributeValue">[+view.gender+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Website:</td>
        		<td class="wlpeViewAttributeValue"><a href="[+view.website+]">[+view.website+]</a></td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">AIM username:</td>
        		<td class="wlpeViewAttributeValue">[+view.aim+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">MSN Messenger username:</td>
        		<td class="wlpeViewAttributeValue">[+view.msn+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Yahoo! Messenger username:</td>
        		<td class="wlpeViewAttributeValue">[+view.yahoo+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Myspace profile:</td>
        		<td class="wlpeViewAttributeValue"><a href="[+view.myspace+]">[+view.myspace+]</a></td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Facebook profile:</td>
        		<td class="wlpeViewAttributeValue"><a href="[+view.facebook+]">[+view.facebook+]</a></td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Signature:</td>
        		<td class="wlpeViewAttributeValue">[+view.comment+]</td>
        	</tr>
        	<tr>
        		<td class="wlpeViewAttribute">Photo:</td>
        		<td class="wlpeViewAttributeValue"><img src="[+view.photo+]" alt="[+view.photo+]" title="[+view.username+]" /></td>
        	</tr>
        	<tr>
        		<td colspan="2" class="wlpeViewContact">
        			<form name="wlpeViewContactForm" method="post" action="[~[*id*]~]">
        				<fieldset id="wlpeViewContactFormFieldset">
        					<h4>Contact [+view.username+]</h4>
        					<label for"wlpeViewContactSubject" id="wlpeViewContactSubjectLabel">Subject:
        						<input type="text" id="wlpeViewContactSubject" name="subject" />
        					</label>
        					
        					<label for"wlpeViewContactMessage" id="wlpeViewContactMessageLabel">Message:
        						<textarea id="wlpeViewContactMessage" name="message"></textarea>
        					</label>
        				</fieldset>
        				<fieldset id="wlpeViewContactButtons">
        					<button type="submit" id="wlpeContactSend" name="service" value="messageuser">Send Message to [+view.username+]</button>
        				</fieldset>
        			</form>
        		</td>
        	</tr>
        </table>


        The problem is that instead of displaying the phrase Private (as it’s supposed to) for information that the user has marked private, nothing is displayed.  If you look at webloginpe.class.php around line 1400, LanguageArray[38] should be replacing the information, but it is not.

        If someone would simply confirm this behavior, I’ll post it to the Google Code as a bug.

        Thanks.
          • 28033
          • 925 Posts
          Out of curiosity, if you successfully edit your profile (or do anything that triggers a message), does it return the message, or do you get a blank message?

          If it’s the latter, I know the problem / how to fix it.
            My Snippets
            -> PopUpChunk v1.0
            • 27442
            • 103 Posts
            A message like ’your profile has been updated’ ? Yes, I see those fine.
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              If you look at your placeholders in the form they should show the private setting. [+form.emailprivate+] for example.

                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 27442
                • 103 Posts
                Yes, that is the format of the private placeholders in my update/signup forms.

                the private function allows the data to be displayed (or not) as expected. However, when made private, it just appears blank instead of displaying the words from LanguageArray[38]. In other words, when using a &type=`users` call any info marked as private is supposed to dispaly as Private, but instead absolutely nothing is displayed - as if the user didn’t enter anything into that field.

                Does the word Private display properly for you?
                  • 27442
                  • 103 Posts
                  Well, for reasons, that I don’t understand, it now seems to be displaying correctly - showing ’Private’ instead of just empty. Thanks for the help anyway.
                    • 25551 ☆ A M B ☆
                    • 1,231 Posts
                    I was about to say, yes it does display for me! Good to hear you got that sorted out.
                      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                      AugmentBLU - MODX Partner

                      BLUcart - MODX Revolution E-Commerce & Shopping Cart