Created a topic, added some replies, then closed the topic, but the quote link is still active and allows me to post replies to the topic, even though it is closed.
Logged In: YES user_id=2006889 Originator: NO
I'm changing big parts of the code at the moment and found the same error. You can also post if you type in the posting url manually.
To remove the quote icon when a topic is locked, open "topic.php" ans change the line
---- $html.=$skin->makeKnownLink('Special:Post/reply','<img src="'.$wgScriptPath.'/extensions/mwbb/comment.png" />','tid='.$topic_data['topic_id'].'"e='.$data[$i]['post_id']); ----
to these lines
---- if ($topic_data['topic_status']!=STAT_CLOSED) { $html.=$skin->makeKnownLink('Special:Post/reply','<img src="'.$wgScriptPath.'/extensions/mwbb/comment.png" />','tid='.$topic_data['topic_id'].'"e='.$data[$i]['post_id']); } ----
To avoid posting by typing in the post url manually, open "post.php" an add after the line
---- $topic_data=$topic_data[0]; ----
this source code
---- if($topic_data['topic_status']==STAT_CLOSED){ $wgOut->errorpage('m_notification','topic_closed'); } ----
Log in to post a comment.
Logged In: YES
user_id=2006889
Originator: NO
I'm changing big parts of the code at the moment and found the same error. You can also post if you type in the posting url manually.
To remove the quote icon when a topic is locked, open "topic.php" ans change the line
----
$html.=$skin->makeKnownLink('Special:Post/reply','<img src="'.$wgScriptPath.'/extensions/mwbb/comment.png" />','tid='.$topic_data['topic_id'].'"e='.$data[$i]['post_id']);
----
to these lines
----
if ($topic_data['topic_status']!=STAT_CLOSED)
{
$html.=$skin->makeKnownLink('Special:Post/reply','<img src="'.$wgScriptPath.'/extensions/mwbb/comment.png" />','tid='.$topic_data['topic_id'].'"e='.$data[$i]['post_id']);
}
----
To avoid posting by typing in the post url manually, open "post.php" an add after the line
----
$topic_data=$topic_data[0];
----
this source code
----
if($topic_data['topic_status']==STAT_CLOSED){
$wgOut->errorpage('m_notification','topic_closed');
}
----