hmm, i hope i can code it without testing it
first of all make a new fiel in the post-table called editable small int standart 1
then open your editpost.php
find this:
PHP Code:
if ($bbuserinfo[userid]!=$postinfo[userid]) {
// check user owns this post
show_nopermission();
} else {
replace with
PHP Code:
if ($bbuserinfo[userid]!=$postinfo[userid] or $postinfo[editable]==0) {
// check user owns this post
show_nopermission();
} else {
PHP Code:
eval("dooutput(\"".gettemplate("editpost")."\");");
before add:
PHP Code:
if ($bbuserinfo[usergroupid] == 6 or $bbuserinfo[usergroupid]==5) {
eval("\$admineditpost = \"".gettemplate("admineditpost")."\";");
} else {
$admineditpost = "";
}
thats part of my "More Functions in Edit Post if you are an Admin" hack
create new template $admineditpost contains:
Code:
<tr>
<td bgcolor="#DFDFDF" nowrap><normalfont><b>Post editable</b>
<input type="radio" name="editable" value="yes"> yes
<input type="radio" name="editable" value="no"></normalfont></td>
</tr>
then find
PHP Code:
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
and replace it with:
PHP Code:
if($bbuserinfo[usergroupid]!=6 and $bbuserinfo[usergroupid]!=5) $editable=1;
$DB_site->query("UPDATE post SET editable='".$editable."',title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
test it, i think it should work