Menu

#3 Can click on quote link when topic closed

open
None
5
2007-10-29
2007-03-22
No

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.

Discussion

  • Gooped Stinkfly

    Gooped Stinkfly - 2007-10-29
    • assigned_to: nobody --> stinkfly
     
  • Matthias Hielscher

    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'].'&quote='.$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'].'&quote='.$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.

MongoDB Logo MongoDB