![]() |
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?
|
Use this:
<if condition="$post['fieldXX']">$post[fieldXX]</if> Replace XX with the profile field number |
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. |
Sorry for not being more precise. That the code you use in a template.
Use code: <if condition="$post['field2']">$post[field2]</if> |
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 |
Sorry my mistake I was thinking postbit not memberinfo
<if condition="$userinfo[field13]">$userinfo[field2]</if> |
Does the first Field13 need to be changed to 2 as well?
|
Yes sorry about that.
|
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" |
Use this:
<if condition="$userinfo[field2]">$userinfo[field2]<else />No Infomation</if> |
All times are GMT. The time now is 08:07 PM. |
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:
|