Installed here, nice hack.
One thing though, to make sure users can't manipulate forms and close a thread, you should replace:
Code:
if ($closethread=="yes") {
$DB_site->query("UPDATE thread SET open='0' WHERE threadid='$threadid'");
}
with:
Code:
if ($closethread=="yes"[high] and $permissions['canopenclose']==1[/high]) {
$DB_site->query("UPDATE thread SET open='0' WHERE threadid='$threadid'");
}