Ok, i fixed it. Here we go:
In the
Hack Instructions find:
Code:
} else {
if ($closethread=="yes" and $permissions['canopenclose']==1) {
$DB_site->query("UPDATE thread SET open='0' WHERE threadid='$threadid'");
}
if ($attachmentid and !$foruminfo[moderateattach]) {
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
}
and replace it with:
Code:
} else {
if ($closethread=="yes" and ($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)) {
$DB_site->query("UPDATE thread SET open='0' WHERE threadid='$threadid'");
}
if ($attachmentid and !$foruminfo[moderateattach]) {
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
}
Find:
Code:
if ($permissions['canopenclose']==1) {
$closethreadchecked=iif(trim($closethread)=="yes","checked","");
eval("\$closethreadbox = \"".gettemplate("newpost_closethread")."\";");
} else {
$closethreadbox="";
}
and replace it with:
Code:
if ($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7) {
$closethreadchecked=iif(trim($closethread)=="yes","checked","");
eval("\$closethreadbox = \"".gettemplate("newpost_closethread")."\";");
} else {
$closethreadbox="";
}
This changes make the checkbox available for mods (usergroupid 7), Super Mods (usergroupid 5) and Admins (usergroupid 6). If you don't like any of these groups to have the checkbox, delete that usergroup from the if-question -->
$bbuserinfo[usergroupid]==X and the || beetween the next group.
Sorry for my bad english...