The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hello,
I want to add some new fields to capture for a new post. These fields will be included in the first post in the postbit area. Things like this: Price: Shipping: What Comes With it: Trades: if yes what: Can someone give me instructions I need to follow to setup the DB and scripts to do this. Thanks. |
#2
|
|||
|
|||
Since this will be adding fields only to the first post of the thread...do I make the cnages in the "post" or "thread" table?
|
#3
|
|||
|
|||
Since it's the first post it would be better to associate it with a thread, rather than put extra fields into each post.
You probably know all this stuff already but. Alter the thread table so every entry has new fields to store the required information. You need to change the template for new thread to include your new input boxes. Then find the part in new thread where it accesses the database thread table to create a new thread. You need to alter this to include your new variables that are passed to it by your template modifications. Looking at the code you can probably tell the syntax. Once the information is in the database you need to find a way to get it out. Using postbit probably isn't the best idea as that deals with every post not just the first one. Perhaps showing the information at the top of each thread would be acceptable? You might be able to get away with not altering showthread.php itself as IIRC the entire thread record is downloaded so you should be able to put it directly in your templates as a variable. Sorry if it doesn't tell you exactly how to do it, but to do that I would have to implement it, and I don't need this feature! |
#4
|
|||
|
|||
That's more than enough Mark thanks.
|
#5
|
|||
|
|||
Mark...I got it to write to the DB....now I'm having problems calling it into the first post.
can you elaborate more on this process to call it in the new thread? Thanks. |
#6
|
|||
|
|||
I'm going off memory so please excuse any errors.
Just looked at showthread.php and it doesn't seem to contain a general thing to pull thread info out of the database. Your probably going to have to put a new database call in there. I believe there is code that will do this for you in forumdisplay.php, the part which downloads into the $thread variable. On you should then be able to extract things by calling the variable $thread[yourinfo] etc. Sorry I haven't time to look into it properly |
#7
|
|||
|
|||
Your correct...I was coming back to tell everyone I figured it out..and I now see your post...but your right.
thanks. |
#8
|
||||
|
||||
If you have the time, could you give us a rundown of the steps to do this? I'm working on the same thing, but still have a few issues to work out. (this is for VB3)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|