The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help with memberinfo / customfields
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> <if condition="$post['field5']"><strong>What's your name</strong>:<br />$post['field5']<br /></if> <if condition="$post['field6']"><strong>What's your gender</strong>v<br />$post['field6']<br /></if> <if condition="$post['field2']"><strong>Location</strong>:<br />$post['field2']<br /></if> <if condition="$post['field1']"><strong>Biography</strong>:<br />$post['field1']<br /></if> <if condition="$post['field3']"><strong>Interests</strong>:<br />$post['field3']<br /></if> <if condition="$post['field4']"><strong>Occupation</strong>:<br />$post['field4']<br /></if> <if condition="$post['field11']"><strong>Xbox Live Gamer Tag</strong>:<br />$post['field11']<br /></if> <if condition="$post['field12']"><strong>Steam Tag name</strong>:<br />$post['field12']<br /></if> Quote:
|
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
I've looked through the conditionals, I couldn't see anything wrong. I attached the memberinfo if anyone wants to check it out.
|
#4
|
||||
|
||||
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] |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
You can use single quotes in templates, but ONLY in conditionals, so remove them but keep the ones in the conditional.
|
#7
|
||||
|
||||
Yes, thank you very much sabret00the & assassingod. Taking the ' ' out in my custom conditions worked...
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> <if condition="$post['field8']"><strong>What's your level of experience</strong>:<br />$post[field8]<br /></if> <if condition="$post['field9']"><strong>What's your connection speed</strong>:<br />$post[field9]<br /></if> <if condition="$post['field10']"><strong>Intel or AMD</strong>:<br />$post[field10]<br /></if> <if condition="$post['field13']"><strong>What's your processor speed?</strong>:<br />$post[field13]<br /></if> <if condition="$post['field14']"><strong>Other specs for your PC</strong>:<br />$post[field14]<br /></if> |
#8
|
||||
|
||||
Quote:
HTML Code:
<if condition="$post[field1] == '' and $post[field2] == '' and $post[field3] == ''">show this message</if> |
#9
|
||||
|
||||
Yes! thank you!!
|
#10
|
||||
|
||||
Glad I could help
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|