Okay, after quite a while I found the problem: there is no appropriate hook location.
In profile.php there is the hook "profile_editoptions_start" which is closest to where I need it - but the code that checks the checkboxes is only executed just right after it:
Code:
($hook = vBulletinHook::fetch_hook('profile_editoptions_start')) ? eval($hook) : false;
// check the appropriate checkboxes
$checked = array();
foreach ($vbulletin->userinfo AS $key => $val)
{
if ($val != 0)
{
$checked["$key"] = 'checked="checked"';
}
else
{
$checked["$key"] = '';
}
}
So no checked checkboxes when I use this hook.
And the next hook "profile_updateoptions" is already "too late" - nothing gets displayed at all when I use this hook!
I edited profile.php and moved the first hook just a couple of lines down, and then everything worked perfectly - but of course I would prefer if the people who install my product wouldn't have to do that, too.
Should I request a new hook / a change of the hook location?
Or is there any other way to deal with that?
(I am running the latest version of 3.6.8)