MyBB Tutorials

Add Custom Forum Icons change

Submitted by Supreme, , Thread ID: 30381

Thread Closed
06-03-2017, 06:09 PM
#1
I don't know if it's been posted before, so apologies. I see this asked time to time and It's a simple thing to do. Change your Forum Thread icons.

You want to go into your Admin Control Panel, got to Templates > Forumbit Templates > forumbit_depth2_forum

You're going to be looking for this line of code:
PHP Code:
<td class="{$bgcolor}align="center" valign="top" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}id="mark_read_{$forum['fid']}"></div></td

And you'll need to change it out with this:


PHP Code:
<td class="{$bgcolor}align="center" valign="top" width="1"><img src="images/ficons/{$forum['fid']}.png" /></td

Essentially what this line of code is doing, is replacing the default forum icon to a one you've assigned in the images/ficons/. You can name the ficons folder anything you want, however, change the name in the code, otherwise your icons won't show. You can also change the file format from .png to anything you want (like .gif), but again, you'll need to change it in the code.

How to get the forum icon ID and Icon:

In order to actually get the forum Icon, create the thread you want, and reload your forum. It'll come up saying you either have no new posts, or you do. Simply right click and copy image location. Open a new tab and paste what you've just copied. You'll get something like this: www.example.com/ficons/icon_1_off.png. The part we're interested in is the ending. The ending is, icon_1_off.png, thus meaning your forum icon ID is icon_1_off, for that thread.

Simply find an image, or make on in photoshop / illustrator, get it down to the size you want, probably around 50x50, and save it as a png (or whatever your code image format is), with the forum icon ID as it's name. Upload that into your ficons folder, and you're done!

Hope this helped someone, if you're confused or have any problems, just reply and I'll try my best to help you!
[Image: xvv2qQA.png]

Users browsing this thread: