View Full Version : MySQL insert commands for new thread
Hiya,
can anyone point out to me what the necessary mysql inserts / updates are if I want to make a new thread from a specific user in a specific forum?
i'd also like to increase the user's post count.
I just don't know where everywhere must be data inserted / updated.
Thx!
Xenon
02-02-2004, 09:20 PM
open includes/functions_newpost.php and take a look at build_new_post, that functions does what you need
Thx @ Xenon,
that's what I needed.
Xenon
02-03-2004, 04:47 PM
glad i could help
version2
02-05-2004, 12:49 AM
glad i could help
Now the question is...good grief! What are all the values you need to feed that monster of a function.
wsjb78
02-05-2004, 05:29 AM
Well, I just deleted all the "useless" things so far... :)
version2
02-05-2004, 02:21 PM
Well, I just deleted all the "useless" things so far... :)
What do you mean?
wsjb78
02-05-2004, 02:36 PM
well, there are a lot of things in that function but for my purposes a lot of those checks are unnecessary so I removed them :)
Xenon
02-05-2004, 05:01 PM
@version2: the info-arrays are containint the name/values of the corresponding DB entries of thread/forum/post table
version2
02-07-2004, 11:48 PM
@version2: the info-arrays are containint the name/values of the corresponding DB entries of thread/forum/post table
Still dont understand the schema of the arrays. I am working through it though.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.