MyBB Community Forums

Full Version: write THREAD from php code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there!

I wanted to know if you know kindly plugin / library written in php to insert new threads/posts from my own php code ?

My db is MySQL.

Not knowing some fields of the tables I'm afraid of making mistakes.

Thanks everybody.

Giorgio
I don't understand. Insert code from your own PHP code? What do you mean?
(2012-04-16, 07:49 PM)Fábio Maia Wrote: [ -> ]I don't understand. Insert code from your own PHP code? What do you mean?

I'm sorry for my English, I have corrected the text
There's a plugin about that, you can write on templates your own php code, but use it at your own risk.

The right way it´s ussing a sql sentence. But you have some code ??

If you want to try insert some messages auto. Well yo have to made an insert on the tables like posts and threads, but you have to insert correct data, like username, id, date, etc values. Because this is the right way i think. And you have to put an fid (in what forum you want to put the thread, or fid, tid for your post, anyway, you have to put more info).