The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding additional fields on New Thread
What PHP file specifically submits the data through a query to create a new thread? I am trying to add 2 additional fields when creating a new thread, but cannot seem to locate the query that adds the data from a typical new thread to the database.
If anyone could please assist with this, I'd appreciate it very much. I have been scanning through files all night . |
#2
|
|||
|
|||
It is built using the thread datamanagers.
The best way to handle it would be:
PHP Code:
|
#3
|
||||
|
||||
- Alter table thread to add your fields
- Adjust Template newthread - Creae a Plugin for threadpfdata_start to add the fields to its validfields - Create a Plugin for newthread_post_start to set the fields in $post to the cleaned form data - Create a Plugin for newpost_process to set the values from $post to the Datamanager This method does not cause additional queries |
#4
|
|||
|
|||
Can that method be used to add fields in other tables?
The method I mentioned above actually modifies a different table, because im storing certain information outside of that table. |
#5
|
||||
|
||||
No. But as I understood the initial request, he wants to add data to the thread table.
|
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
I'm having this same trouble trying to find the code for posting a thread to the thread table. I too want to populate some additional fields in the table. Surely there must be some query somewhere with 'INSERT' within it? Does anyone know where to find it?
|
#8
|
|||
|
|||
Quote:
Kirby, when you say - Adjust Template newthread how do we alter it, what do we add/take out? and the rest of the crap, what dose that mean? could you elaberate a bit please ^^ EDIT: kirby, do i ahve to edit the 'thead table' if its going to have nothign to do with the table? mine has to do with the postbit :S |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|