![]() |
Help with memberinfo / customfields
1 Attachment(s)
I am trying to take out $customfields and replace it with this:
Code:
<if condition="$userinfo[birthday]"><strong>Birthday</strong>:<br />$userinfo[birthday]<br /></if> Quote:
|
As the error message states, you are missing the </if> for an <if> (you need to close a conditional statement.) That is most likely the problem, anyways; look thru your code and make sure you didn't miss any.
|
I've looked through the conditionals, I couldn't see anything wrong. I attached the memberinfo if anyone wants to check it out.
|
try this not sure if it will work but it oculd be that simple
remove the hyphens beside each of the fieldid's ie. $post[field2] |
Quote:
|
You can use single quotes in templates, but ONLY in conditionals, so remove them but keep the ones in the conditional.
|
Yes, thank you very much sabret00the & assassingod. Taking the ' ' out in my custom conditions worked... :D
Would it be possible to display a message if a member did not have any (none) of these specific fields filled out: Code:
<if condition="$post['field7']"><strong>Tell us more about your PC</strong>:<br />$post[field7]<br /></if> |
Quote:
HTML Code:
<if condition="$post[field1] == '' and $post[field2] == '' and $post[field3] == ''">show this message</if> |
Yes! thank you!!
|
Glad I could help :)
|
All times are GMT. The time now is 08:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|