The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to edit the files concerned by new thread method
Hey folks
I just started VB4 products programming and got the first levels, I need now to modify the thread method a bit, how? I need a new information relative to a new thread -using a particular function- to be added once it's submitted, for this purpose, I modified the table "thread" and added a new column that's done, but what I'm missing is where (templates, plugins, files, ...) and what (just few hints) should I modify to add the new information about the thread? Really need a push, I have to perform this modification as soon as possible . Regards. |
#2
|
|||
|
|||
I think you'd want to edit the newthread template to add an input field for your data. Then I think the best thing to do would be to look at newthread.php and see how it handles the existing fields. When you're looking in there you'll see where the hooks are. I think it's possible to do what you want using plugins at those hook locations.
|
Благодарность от: | ||
Infoman4ever |
#3
|
|||
|
|||
I found a way to do so, I added a new plugin which is linked to the hook "showthread_getinfo", the plugins contains the update query of the new column.
Thank you kh99 very much for giving me some ideas. |
#4
|
|||
|
|||
I'm glad you got it working - I was trying to figure out how to explain it in more detail, but really the best thing it to just look at the code and see what's happening.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|