The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
bitfield default value?
ok so i switched over to using bitfields and i have them working properly although i cant figure out how to have them all checked by default in the admin cp
i have my setting as follows: Code:
<setting varname="drc_sg" displayorder="60"> <datatype>bitfield</datatype> <optioncode>bitfield:drc_sg|blah</optioncode> <defaultvalue>15</defaultvalue> </setting> NVM -_- should of figured it was binary for users who came here looking for an answer - i have 6 options that i want all yes. 1 means yes(checked) so that would be 111111 (in order how you wrote your options) now convert that number from binary and that gives you 63 as a default value so if you want every other one toggled itd be 101010 converted gives you a default value of 42 hope this helps someone |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|