PDA

View Full Version : How to edit the files concerned by new thread method


Infoman4ever
12-17-2011, 01:22 PM
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 :confused:.
Regards.

kh99
12-17-2011, 01:34 PM
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
12-17-2011, 01:45 PM
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.

kh99
12-17-2011, 07:33 PM
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.