The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is is possible to add checkbox options in the ACP for products?
|
#2
|
||||
|
||||
![]()
Sure, go in debug mode and examine one of the built-in options that uses checkboxes.
|
#3
|
|||
|
|||
![]()
hmm
Code:
<settinggroup name="bbcode" displayorder="300"> <setting varname="allowedbbcodes" displayorder="10"> <datatype>bitfield</datatype> <optioncode>bitfield:nocache|allowedbbcodes</optioncode> <defaultvalue>1023</defaultvalue> </setting> </settinggroup> Code:
<group name="allowedbbcodes"> <bitfield name="allow_bbcode_basic">1</bitfield> <bitfield name="allow_bbcode_color">2</bitfield> <bitfield name="allow_bbcode_size">4</bitfield> <bitfield name="allow_bbcode_font">8</bitfield> <bitfield name="allow_bbcode_align">16</bitfield> <bitfield name="allow_bbcode_list">32</bitfield> <bitfield name="allow_bbcode_link">64</bitfield> <bitfield name="allow_bbcode_code">128</bitfield> <bitfield name="allow_bbcode_php">256</bitfield> <bitfield name="allow_bbcode_html">512</bitfield> </group> --------------- Added [DATE]1193862860[/DATE] at [TIME]1193862860[/TIME] --------------- i still cant figure it out. |
#4
|
|||
|
|||
![]()
anyone?
|
#5
|
||||
|
||||
![]()
Examine the Inferno vBshout mod, it uses them.
|
#6
|
|||
|
|||
![]() |
#7
|
||||
|
||||
![]()
No problem. I've never had to use them, so I can't offer any direct help, but hopefully you can figure something out from the examples.
|
#8
|
|||
|
|||
![]()
Ok so i was able to do it... Wow its easier than i though but still confusing how the actual check boxes are processed.
Values: 1 2 4 8 16 32 64 .... I used 19 boxes and it sure multiplies fast... the 20th box's value would be 524288 lol... around 35 the actual value length is over 11 digits and i think it may messup inside the database, im not sure. |
#9
|
||||
|
||||
![]()
How is the bitfield represented in vB's php code? If it's an int it should be 32 bits on most hardware, giving you a max value of about 2 billion. There shouldn't be any problems in the database, since setting values are stored as text.
|
#10
|
|||
|
|||
![]()
oh i thought they were stored in an INT field, INT is 11
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|