![]() |
Making use of the User Profile field Multiple Checkboxes
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:: |
Nevermind - found a function on www.php.net that handled the problem.
|
Quote:
|
Ok
PHP Code:
This script will handle up to 32 checkboxes. EDIT: This can be plugged into you PHPINCLUDE_START template. |
All times are GMT. The time now is 04:46 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:
|