dartho,
I'm trying out your modification and am in the process of installing it, but I have a question for ya...
Rather than having us make a template modification above
{vb:raw threadmanagement}, as it says in the instructions, could you not add that bit as an extra template and add it to
$threadmanagement in the
newthread_form_complete hook location?
Like...
TEMPLATE (vbookie_threadmanagement):
HTML Code:
<vb:if condition="$show['vbookieevent']">
<div class="blockrow">
<p class="label">Post a {vb:rawphrase vbookie} Event</p>
<dl class="group dep_group">
<dt>
<label for="cb_postvbookieevent">
<input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" /> {vb:rawphrase yes_post_a_vbookieevent_thread}
</label>
</dt>
</dl>
</div>
</vb:if>
PLUGIN (newthread_form_complete):
PHP Code:
$templater = vB_Template::create('vbookie_threadmanagement');
$templater->register('show', $show);
$templater->register('vbookie', $vbookie);
$templater->register('checked', $checked);
$templater->register('yes_post_a_vbookieevent_thread', $yes_post_a_vbookieevent_thread);
$threadmanagement = $templater->render() . $threadmanagement;
$show['additional_options'] = ($show['misc_options'] OR !empty($attachmentoption) OR $show['member'] OR $show['poll'] OR !empty($threadmanagement));
I'm sorry if it seems like I'm butting in, or if the above code wouldn't work, but it just makes sense to me to have as few template edits as possible, and wouldn't that reduce your template edits to zero? :3