MyBB Community Forums

Full Version: Getting info from newthread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2012-10-17, 06:22 AM)Aniruddh Wrote: [ -> ]so, like $db(query here)?
My code was just a little half to explain you how it works. You've to create function and add all this inside a function and then call that function using the hooks.

This all is complicated in start, I'd advice you to see how hello world or other simple plugins are made first so it'll give you an idea.
I have already looked at many plugins, to help me with the settings, its just the database thing that has stumped me Sad

I am still not getting how to take info from the field.
If the name of the field is 'username', can I use $_POST['username']?
And then do something like
$db->query('INSERT INTO threads blah blah');
See this plugin as reference of inserting input data from newthread;
http://forum.mybboard.pl/watek-mybb-thre...-1-3_29174
Oh thanks Yaldaram, btw, your plugins helped me understand MyBB Settings Big Grin
So, that's thanks twice Smile
Pages: 1 2