ok...quickreply gives its data to addpost.php
So, in addpost.php
search for:
if ($Main) {
$query = "
SELECT B_Board
FROM {$config['tbprefix']}Posts
WHERE B_Number='$Main'
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($Board) = $dbh->fetch_array($sth);
}
Insert underneath:
if ($Main) {
// Check to see if they can reply to this thread
$query = "
SELECT B_Sticky,B_Status,B_PosterId
FROM {$config['tbprefix']}Posts
WHERE B_Number='$Main'
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($issticky,$bstatus,$mainposterid) = $dbh->fetch_array($sth);
if ($issticky == "2" && ($user['U_Status'] != "Administrator")) {
$html->not_right($ubbt_lang['NO_R_ANNOUNCE'],$Cat);
}
// ---------------------------------------------------------------------------
// If we are in the special forum and not a admin or mod
//and not the user that started the thread they can't proceed
if (($Board == "short_name_of_the_special_forum") &&
($user['U_Number'] != $mainposterid) &&
($user['U_Status'] != "Administrator") &&
($user['U_Status'] != "Moderator") ){
$html -> not_right("This is the special Blog forum, you can only reply to your own threads!",$Cat);
}
}
This should work, but again, I didn't test it.