Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Discussion info/opts

edited April 2007 in Vanilla 1.0 Help
Hi I wanted to know where can I see if a discussion is closed and also how could I restrict people from writing in a discussion without closing it


  • Options
    Assuming this is for your personal forum, If it is closed (locked) there will be a label saying closed or locked, or whatever you set it to in your Application Settings. If you don't want people to be able to reply to a post without actually locking it, you can do this through the Category Roles or Multi-Roles add-on. by creating a category and not giving that role the ability to reply to it.
  • Options

    Jugoso is asking how he can know if a discussion it's closed inside an extension. Something like:

    if ($Context->Discussion->Closed) { // discussion is closed } else { // discussion is open }

    Also, he's asking how ShowForm works. We've tried something like "ShowForm = 0" for a Discussion (so no one can reply, like in Category Roles) but it doesn't work. We don't know why :(

    Thanks for yout attention :)
This discussion has been closed.