View Full Version : $post[fieldx] question
Stickers
08-02-2007, 09:18 PM
Hi all,
does $post[fieldx] works in de header template?, anyone who can help me?
<if condition="$post[fieldX] != ''">
$post[fieldX]
</if>
Cheerz
EnIgMa1234
08-02-2007, 09:24 PM
yea it should work.
dont forget to change the x
Stickers
08-02-2007, 09:43 PM
Hi EnIgMa1234,
Nope not working for me,
i have made 2 radio buttons with the User Profile Field Manager with the text Yes and No (just for testing)
but when i add this in my header
<if condition="$post[field5] != ''">
$post[field5]
</if>
I dont see the text Yes or No, think i do something wrong :rolleyes:
Thanks....
Opserty
08-02-2007, 09:51 PM
In the header template?
I think you should be using $vbulletin->userinfo[field5] instead of $post[field5]
That will return what you have input for your own profile.
Stickers
08-02-2007, 09:58 PM
nope, all i get is this Array[field5]
Thanks
Opserty
08-02-2007, 10:10 PM
Try $bbuserinfo[field5]
That reminds me I need to find out what the difference is between them.
Stickers
08-02-2007, 10:17 PM
Oh i love you, thats the one..
thank you
Opserty
08-02-2007, 10:23 PM
Oh i love youEasy tiger! :p
Kirk Y
08-02-2007, 11:56 PM
Try $bbuserinfo[field5]
That reminds me I need to find out what the difference is between them.
$vbulletin->userinfo is the class used in PHP; not in templates -- unless you used {$vbulletin->userinfo}.
$bbuserinfo is its template equivalent.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.