The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ok, I set up a user profile field with multiple check boxes so I could group several display toggles together. I figured it would be stored as an array..
Well, it's not. It's binary. I haven't dealt with binary conversions since I had a C=64. Specifically I need to extract a single bit and the evaluate it as true(1) or false (0) I see a decbin function that will return the number as a binary string. The problem then is how to convert the string into an array?? ::scratches head:: |
#2
|
||||
|
||||
![]()
Nevermind - found a function on www.php.net that handled the problem.
|
#3
|
||||
|
||||
![]() Quote:
![]() |
#4
|
||||
|
||||
![]()
Ok
PHP Code:
This script will handle up to 32 checkboxes. EDIT: This can be plugged into you PHPINCLUDE_START template. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|