ok, add a ne field to your thread table called acclevel, should be a small integer default 0
then edit postings.php:
section stick/unstick threads:
find
PHP Code:
if (!ismoderator($threadinfo[forumid],"canmanagethreads")) {
show_nopermission();
}
below add:
PHP Code:
if($threadinfo[acclevel]==2 && $bbuserinfo[usergroupid]!=6) {
show_nopermission();
}
if($threadinfo[acclevel]==1 && ($bbuserinfo[usergroupid]!=6 && $bbuserinfo[usergroupid]!=5)) {
show_nopermission();
}
switch($bbuserinfo[usergroupid]) {
case 5: $acclevel=1;
break;
case 6: $acclevel=2;
break;
default: $acclevel=0;
}
then replace
PHP Code:
$DB_site->query("UPDATE thread SET sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'");
with
[php]
$DB_site->query("UPDATE thread SET acclevel=$acclevel,sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'");