MyBB Community Forums

Full Version: How do I determine which checkboxes are checked by default?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For composing or replying to a PM, how do I set which checkbox options are pre-selected and which ones are not?
I'd like to expand this question. Is there a basic rule of thumb for finding/editing all defaulted check boxes and bullets in various places of the forum? I'm finding a couple other areas where I'd like to edit what the default option is too.

For example - when you move a thread I'd like to change the default selection to simply "move" instead of copy.

What's the best way to go about doing these small tweaks? What line of code can I search for in an FTP command line (grep) to find the files these settings are in, etc? Or is there an easier way perhaps?

I have a plugin that edits the ones at registration but no matter what kind of search I perform I cannot seem to find how to do it elsewhere.
All this stuff is in the templates themselves. No easy way to do it except to do each one manually and change the checked status, AFAIK.
I have never been able to find a way to do this via the templates. For example in the template for sending a PM I thought this would be the place to edit...

<label><input type="checkbox" class="checkbox" name="options[signature]" value="1" tabindex="6" {$optionschecked['signature']} />{$lang->options_sig}</label><br />
<label><input type="checkbox" class="checkbox" name="options[disablesmilies]" value="1" tabindex="7" {$optionschecked['disablesmilies']} />{$lang->options_disable_smilies}</label><br />
<label><input type="checkbox" class="checkbox" name="options[savecopy]" value="1" tabindex="8" {$optionschecked['savecopy']} />{$lang->options_save_copy}</label><br />
<label><input type="checkbox" class="checkbox" name="options[readreceipt]" value="1" tabindex="9" {$optionschecked['readreceipt']} />{$lang->options_read_receipt}</label><br />

...but it doesn't seem to be? Nothing about those stands out to me as what to change because they all have the same value "1" but some of them are pre-checked and some are not when I send a PM. How would I turn off (uncheck) the check in the signature box for example? Seems like I'd have to edit the {$optionschecked['signature']} or something like that but I don't know how?