The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
I had just now figured that out and came back to tell you. Lol! BUT... IT ALL WORKS NOW!! Yeay!!!!
Thanks sooooo much for your help!! I really appreciate it! For anyone that wants to know, the final working code to display a custom user profile field variable (multiple selection checkbox values) in a template is: Code:
<vb:if condition="$userinfo['field23'] & 1"> Unknown</vb:if> <vb:if condition="$userinfo['field23'] & 2"> No Food</vb:if> <vb:if condition="$userinfo['field23'] & 4"> Breakfast</vb:if> <vb:if condition="$userinfo['field23'] & 8"> Lunch</vb:if> <vb:if condition="$userinfo['field23'] & 16"> Dinner</vb:if> <vb:if condition="$userinfo['field23'] & 32"> Snacks</vb:if> |
#22
|
||||
|
||||
Edit: Nevermind I just saw your post after refreshing .
What template are you including this in? *You can view the current usergroups in the Usergroup Manager, hover over the usefield link to see a URL displayed in your browser and note the id# . |
#23
|
||||
|
||||
I don't know much but shouldn't it be something like this:
HTML Code:
<vb:if condition="$vbulletin->userinfo['field23'] == '1'">
|
#24
|
|||
|
|||
It's a multiple selection profile field, so you can think of the value as a binary number where each possible selection is represented by one of the bits. The '&' operator can be used to test one bit at a time.
|
#25
|
||||
|
||||
What I posted last does work. I am going to attempt to put this together as a mod. I will reference it here when I am done. Wish me luck! I've never posted a mod before!
@KH99 and @OcR Envy, I will include you for helping me! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|