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.

HTML in post NOT in Comments?

edited July 2006 in Vanilla 1.0 Help
Is it possible to have a the ability to post HTML when Starting Discussion, but to disable it for those posting comments?


  • Options
    MarkMark Vanilla Staff
    As an extension I bet you could do it.
  • Options
    It's not a perfect solution, but if you have two groups of people, one which starts discussions and uses HTML, and another which cannot start discussions and isn't allowed to use HTML, you can set up role privileges like that.

    Otherwise, you could probably do what you asked for, but it would take some coding. If you can somehow get the Comment ID number and the Discussion object in the string formatter (can you?), you can compare the Comment ID to the Discussion object's First Comment ID field.

    If that doesn't work, maybe you could switch rich text formatting off/on in the comments template file.
  • Options
    Or you could wrap the HTML Formatter extension in an
    if ($Context->SelfUrl == 'post.php') { }
  • Options
    Wait... that wouldn't work. You'd be able to select HTML on the discussion creation page, but the formatter wouldn't exist on the comment page, so the post would be rendered in plain text.
  • Options
    edited July 2006
    I am guessing the users permission setting is stored in their session or cookie? I could write a wrapper as "a_magical_me" suggested, but instead of looking for the url, look for the users permissions, and if their group is allowed to start a discussion then show the...oh wait no that wouldn't work either Hmm I might have to "hack around" a bit ey
  • Options
    This sounds like an interesting challenge. I'll keep an eye open for possible solutions while I work on my extensions.
  • Options
    I'm pretty sure if you wrapped the right bit in that it could work? I'm not sure what the right bit is though :D
This discussion has been closed.