![]() |
If ?
I have made a costom profile field with the following:
Add new: Multiple Selection Checkbox. Title: Postbit Description: Show bits of info in the postbit? Limit Selection: 0 Items Per Line: 1 Options: option 1 option 2 option 3 option 4 option 5 option 6 option 7 option 8 Display Order: 6 Field Required: No Field Editable by User: Yes Private Field: No Field Searchable on Members List: No Show on Members List: No Which page displays this option?: Options: Other In a template how do i use an if statement so if option 8 is checked then it will do whatever. And the same for option 1 and all the other options. NOTE: there are multiple checkboxes in the 1 field and using <if condition="$post[fieldX] == 'option 1'"> didn't work. |
Option 1:
Code:
<if condition="$post[fieldx]=='1'"> Code:
<if condition="$post[fieldx]=='2'"> Code:
<if condition="$post[fieldx]=='4'"> Code:
<if condition="$post[fieldx]=='8'"> Code:
<if condition="$post[fieldx]=='16'"> Code:
<if condition="$post[fieldx]=='32'"> Code:
<if condition="$post[fieldx]=='64'"> Code:
<if condition="$post[fieldx]=='128'"> I recommend using individual options for each one then you can toggle the information on and off. |
All times are GMT. The time now is 05:02 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:
|