Code the plug-in on one of the hooks (newthread_start probably), assign the plug-in to a variable such as $newthreadplugin.
Go to new thread template, create a new fieldset (if you want it fieldset) and echo the variable inside the fieldset.
Such as:
Hook: newthread_start
PHP Code:
PHP Code:
$output = "some code here";
$newthreadplugin = $output;
Template:
<fieldset>
echo $output;
</fieldset>