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?
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.
0
Best Answer
-
UnderDog MVP
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.
0
Answers
Something like the flagging plugin?
I just want to inject a discussion right into the forum, just like they started it.
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?