The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a hack and I am wanting a custom user field(uses Radio Buttons) to only show up in postbit if the user selects yes in their profile. I have tried this:
<if condition="$post['fieldX]"> This does not work for me. It works for text input fields but not radio buttons. I know this is probably simple but could someone shed some light on this for me? Oh and this question is just for my own fyi. Can custom user fields be created automatically when a hack is installed? Thanks for any input. Never mind I figured it out. I forgot the =='Yes' on the end. |
#2
|
|||
|
|||
![]()
This didn't work for me.
<if condition="$post['fieldX] == 'Yes'"> it was yes </if> never prints "it was yes" no matter the setting. AHA! I found the problem. Everyone always uses $post in your examples but that is WRONG. it's bbuserinfo. this works: <if condition="$bbuserinfo[field25]=='Yes'">Code</if> Thank you vbulletin.org! |
#3
|
|||
|
|||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|