Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Post Discussion Backend

Can anyone point to me which file I need to edit if I customize the "start a new discussion" form? I found it months ago but couldn't locate it now.
I'm more of interested in the backend code that processes the form when a user hits the "post discussion" button.



  • Options

    Anyone please?

  • Options

    you generally don't edit the core file, if you you edit the core, that is is your fork and now you support that software entirely. You will not be able to upgrade without that info being overwritten.

    plugins are generally extended through hooks, you hook into an event. If you want to change how the discussion in saved, you can hook into the DicussionModel at the appropriate event. There are also events in the controller an view.

    it is not like the old days when the form process itself. the form is just a view.

    good idea to read up on MVC.

    grep is your friend.

  • Options

    Thanks, x00. I understand your point. So where is that file? I just need to peek. Thanks.

  • Options

    Found it : /applications/vanilla/controllers/class.postcontroller.php

Sign In or Register to comment.