from Freddie
https://vborg.vbsupport.ru/showthrea...959#post228959 suggested using the permissions system so is this correct for instructions ?
ismoderator($foruminfo['forumid'])
find lines 242-245 in newreply.php
PHP Code:
} else {
if ($attachmentid and !$foruminfo[moderateattach]) {
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
}
change to
PHP Code:
} else {
if ($closethread=="yes" and ismoderator($foruminfo['forumid']) ) {
$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, on or around Line 450:
Code:
$maxattachsize_temp = getmaxattachsize();
Add BEFORE that:
PHP Code:
if (ismoderator($foruminfo['forumid'])) {
$closethreadchecked=iif(trim($closethread)=="yes","checked","");
eval("\$closethreadbox = \"".gettemplate("newpost_closethread")."\";");
} else {
$closethreadbox="";
}
is it correct ?