MyBB Community Forums

Full Version: Adding extra field while creating thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I have a online shopping forum.

can u tell me guys how to add extra fields which creating a thread? and that will show in a separate coloumn on the board?

e.g. people can select amazon/bestbuy etc and that store name appears on the forum view in a separate column next to Forum/Replies/Views

hope you got it guys Big Grin

[attachment=29587]

added a screenshot, and that should make it clear.
You can use XThreads http://mybbhacks.zingaburga.com/showthre...288&page=1 (xthreads-1.63.7z)

Create a custom selectbox field with your values, name it xxx, then add {$GLOBALS['threadfields']['xxx']} to forumdisplay_thread to display it there.
Here tutorial for something similar: http://mybbhacks.zingaburga.com/showthread.php?tid=285

@down, read the tutorial.. and instead of wrapping {VALUE} with <div></div>, add another <td> in forumdisplay_thread with {$GLOBALS['threadfields']['xxx']} inside it. Can't help you further without admin access and since I don't have much time lately, that would be a paid work for little money.
hi
yes i found the xthreads.

but dont know how to show it in a new column on the thread list view
can u help in coding and making 2 new coloumns?