Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: gergy008 on August 26, 2011, 11:02:29 AM

Title: How can I create a thread from the MySQL Command line?
Post by: gergy008 on August 26, 2011, 11:02:29 AM
What is the SQL needed to create a new thread, I would like to intergrate this into my java program so I can create threads in a board for specific things.

For example, A thread by the user Gergy008, what would I need to change and where can I get the code?

Thanks,
Gergy

P.S How could I delete threads the same way too?
Title: Re: How can I create a thread from the MySQL Command line?
Post by: ascaland on August 26, 2011, 05:21:36 PM
To be honest I think you should have a look at the createPost() (http://support.simplemachines.org/function_db/index.php?action=view_function;id=323) function to get an idea how posts and new topics are entered into SMF. Once you figure this out, it should be fairly easy to figure out how to delete topics/posts.