Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

How can I add a second"Post Comment" form on the discussion page?

smoigecomsmoigecom New
edited July 2011 in Vanilla 2.0 Help
I was trying to add a second form right after the title but I haven't figured it out. Please help.
Tagged:

Best Answer

  • lucluc ✭✭
    Answer ✓
    I think you should modify this one (in a theme)
    applications/vanilla/views/discussion/index.php

    Around line 66, you should have (I'm checking this on latest unstable, hence line numbers might not be the same).

    if ($Session->IsValid() && $Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $this->Discussion->PermissionCategoryID)) {
    echo $this->FetchView('comment', 'post');
    }
    and add the same thing on the same file where you want it to go.
    I'd say around the Event "BeforeDiscussion"

    As there is an event, I'd say, maybe you can use a plugin too (hence no need to modify the view if you change themes).

Answers

Sign In or Register to comment.