The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Do I Call A Field?
How do you call a field to show on the profile from what they entered on their edit details page?
|
#2
|
||||
|
||||
Use this:
<if condition="$post['fieldXX']">$post[fieldXX]</if> Replace XX with the profile field number |
#3
|
|||
|
|||
I have put that into the script and nothing is working.
www.projekttalk.com/index.php user - test Pass - test Anyone? I am using Field 2, which has the Location inside. |
#4
|
||||
|
||||
Sorry for not being more precise. That the code you use in a template.
Use code: <if condition="$post['field2']">$post[field2]</if> |
#5
|
|||
|
|||
Thanks Zaiaku,
I understand what you meant on the first post and I did replace the X's with field2, but it's just not pulling the data. This is VB3.7 (Beta 3) in the Memberinfo template |
#6
|
||||
|
||||
Sorry my mistake I was thinking postbit not memberinfo
<if condition="$userinfo[field13]">$userinfo[field2]</if> |
#7
|
|||
|
|||
Does the first Field13 need to be changed to 2 as well?
|
#8
|
||||
|
||||
Yes sorry about that.
|
#9
|
|||
|
|||
You are a star, worked a treat!
One last question regarding this... How do I do it so that if no data is entered, it will say "No information" |
#10
|
||||
|
||||
Use this:
<if condition="$userinfo[field2]">$userinfo[field2]<else />No Infomation</if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|