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.

Can I add discussion using code?

edited March 2012 in Vanilla 2.0 - 2.8

I have custom pages that have content on them and I want to be able to create a discussion in a specific category when users click on a button to tell me when there is a problem with the content.

Best Answer

  • UnderDogUnderDog MVP
    Answer ✓

    User clicks button as if there's a problem with content

    Dialog is shown

    Dialog is filled

    Discussion is created in specific category, concerning the custom page

    That would require modification of the code. I can recommend modifying the Flagging plugin.

    There was an error rendering this rich post.

Answers

  • lucluc ✭✭

    Something like the flagging plugin?

  • I just want to inject a discussion right into the forum, just like they started it.

  • UnderDogUnderDog MVP
    Answer ✓

    User clicks button as if there's a problem with content

    Dialog is shown

    Dialog is filled

    Discussion is created in specific category, concerning the custom page

    That would require modification of the code. I can recommend modifying the Flagging plugin.

    There was an error rendering this rich post.

  • I guess I will just use a mySQL insert...

  • I cant just $discussion = new discussion("stuff in discussion...") at some point?

Sign In or Register to comment.