MyBB Community Forums

Full Version: Adding a new field in forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: 16l1jt.jpg]

Hi guys like in the image above I would like to add another column which will take the Thread prefix as input . Also I would like to add the store image with it.

Like below

[Image: jl417k.jpg]

Also the product image or any image posted in the thread to be displayed in the forums like this

[Image: sm94er.jpg]
Please have a look at it and help me with the same.

Thanks and Regards
Shivam Chopra
basically you need to modify forumdisplay_threadlist & forumdisplay_thread templates and add required column to display thread prefix
Hmmm got this thing and how to add those images?

Thanks
^ image file name should be same as the prefix (eg. ebay.png) and you can use code like below
<img class="threadprefix" src="{$thread['threadprefix']}.png" />
Hi , I am able to add the column for thread prefix name and I can integrate the image too by using the above link but in which folder I have to upload that image??

Also how to get the images marked in the last image posted in the above link?

Thanks
<img class="threadprefix" src="{$thread['threadprefix']}.png" />
for the above code, images are to be uploaded to root folder of the forum

<img class="threadprefix" src="{$mybb->settings['bburl']/images/prefixes/{$thread['threadprefix']}.png" />
if you use above code, images are to be uploaded to ./images/prefixes/ folder

Quote:how to get the images marked in the last image posted in the above link
sorry, I could not understand above requirement. can you elaborate please
(2013-10-16, 10:21 AM).m. Wrote: [ -> ]
<img class="threadprefix" src="{$thread['threadprefix']}.png" />
for the above code, images are to be uploaded to root folder of the forum

<img class="threadprefix" src="{$mybb->settings['bburl']/images/prefixes/{$thread['threadprefix']}.png" />
if you use above code, images are to be uploaded to ./images/prefixes/ folder

Quote:how to get the images marked in the last image posted in the above link
sorry, I could not understand above requirement. can you elaborate please

Nopes sorry to say but its not working... Sad