Add discussions from server command line?
Can you create new discussions in a forum from the server command line?
I run an educational forum for discussion about exercises posted online. I have a system set up to post new exercises as HTML files to the server. I would like to automatically include a link saying "Discuss this problem in the forum" that links to a new Vanilla discussion specifically about the problem.
I'm hoping there is a simple way to create a new discussion with a given title from the server's command line. Maybe a mysql command directly to the database?
My exercise publishing script could run the command on the server to create a new discussion for each new exercise, then include the link to that particular discussion on the exercise page.
Is this possible? Any ideas?
Answers
Its certainly possible. Take a look at the discussions table in your database to see what the insert will need to contain.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained