Thanks Opstery, good hint, but still I couldn't get it to work.
Now I have it like this:
Code:
$template_hook['usercp_options_privacy'] .='<fieldset class="fieldset">
<legend><label for="cb_allowsioc">Export SHA1</label></legend>
<table cellpadding="0" cellspacing="'.$stylevar[formspacer].'" border="0" width="100%">
<tr>
<td>
Export encrypted version of my e-mail address
</td>
</tr>
<tr>
<td><label for="cb_allowsioc"><input type="checkbox" name="siocbitoptions[allowsioc]" value="1" id="cb_allowsioc" '.$checked[allowsioc].' />Export SHA1</label><input type="hidden" name="set_options[allowsioc]" value="1" /></td>
</tr>
</table>
</fieldset> ';
This should be right and $stylevar[formspacer]
does get expanded. But still no checked checkbox - everything gets saved correctly though when I check the box (it also did that before).
Somehow I suspect there is another obvious thing I am missing - any other suggestions what might be wrong? Maybe another hook location instead of global_start?