Quote:
Originally Posted by Brad.loo
Yes number 1 would be the better option at least imo, it would not add as much overhead as that JOIN would each page view.
|
Well, I've managed to accomplish #1 above.
I've created a new column in the 'thread' table. And I've tweaked /includes/functions_newpost.php just a tiny little bit, so that 'field9' from the user profile is written to the 'thread' table every time a new thread is created.
See:
https://vborg.vbsupport.ru/showthread.php?t=62507 if you're interested in the particulars.
Which brings me back to my initial question.
I would now like to modify the 'threadbit' template in the following ways:
1) Since ALL threads in these Classified Ad forums have ZERO replies, I think I can do without this column on my forumdisplay.php output.
2) I would like to ADD a small column -- to the right of "Thread/ Thread Starter", and to the left of "Last Post" -- to display the contents of this new 'field9' column in my 'thread' table. (Maybe just MOVE the 'replies' column?)
3) I would like these changes to impact ONLY the specified Classified Ad forums. Ideally, I would like the conditional to check for the "category" or parent forum if possible -- so that any new sub-forums I create would also be affected without re-hacking. But if that's not possible, I can specify the individual forum IDs manually.
If I make the new colum the same width as the old "replies" column that I'm removing, it won't muck up the rest of the design too terribly much.
Any guidance for a first-timer re: adding this sort of conditional to the threadbit template?
Regards,
Bill