Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

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

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

Best Answer

  • lucluc ✭✭
    Accepted Answer
    I think you should modify this one (in a theme)

    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).


Sign In or Register to comment.