The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
so i finally got checkboxes working in my product now i have 2 questions about using them.
1. as of right now my checkboxes show in a list like: 1 2 3 4 5 i want them to show up next to each other like 1 2 3 4 5 so just wondering how i can do that. 2. now that i have the checkboxes, how exactly do i use the $vboptions[drc_sg] with them in an if statement. exp: Code:
<if condition="$vboptions[drc_sg] == CHECKED">show this</if> Code:
<setting varname="drc_sg" displayorder="20">
<datatype>free</datatype>
<optioncode>checkbox
0|one
1|two
2|three
3|four
4|five
5|six</optioncode>
<defaultvalue>a:6:{i:0;i:1;i:1;i:1;i:2;i:1;i:3;i:1;i:4;i:1;i:5;}</defaultvalue>
</setting>
Code:
<if condition="$vboptions[drc_sg] == a:6:{i:3;i:1}">show this</if>
and yeah... that if condition failed but hey worth a shot lol --------------- Added [DATE]1423743629[/DATE] at [TIME]1423743629[/TIME] --------------- no longer using this method, although a response for future use could still prove helpful =) |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|