@Brogan you're like my XenForo parent. You always seem to be the one to help me!
Okay, so I'm seeing this.
Code:
a:4:{s:9:"showStaff";s:1:"1";s:15:"displayMultiple";s:1:"1";s:13:"hideUserTitle";b:0;s:17:"showStaffAndOther";b:0;}
I know this is serialized, although I don't have a key to tell me what means what.
Converted it looks like...
Code:
array (
'showStaff' => '1',
'displayMultiple' => '1',
'hideUserTitle' => false,
'showStaffAndOther' => false,
)
So is there a real difference between s:1:"1" and b:0? Well I would think b is a boolean so to match it would be b:1.
So in code I would do something like
Code:
if($options->formatParameter.myCheckbox) { }
As long as the default value is...
Code:
a:1:{s:11:"myCheckbox";b:0;}
And my Array suboptions are just "myCheckbox"?
Also, what about naming them? I know with other stuff you can put
option = {xen: phrase myPhrase}
So what about with check boxes?
Thanks again
@Brogan
I'm trying to catch on quickly here.