MyBB Community Forums

Full Version: custom subforum icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

MikeInToshx

Hi guys, as the titel says, is it possible to use couple custom icons for subforums I created for tutorials?

Example:
http://computerhelpforum.be/forumdisplay.php?fid=47
Instead of the round buttons, custom images.
Custom Forum Icons ~ A Unique icon for Each Forum
this tutorial by Yaldaram should work for both forums and sub-forums

MikeInToshx

Do I have to replace all of the code just for the sub forums too?

MikeInToshx

So do I have to put all code in? As I dont want custom icons on the index page
you can use the specific code given for the sub-forums

MikeInToshx

So ive done this: and it doesnt work?


Go to: Cpanel > File Manager > public_html > [ Your Forum Path ] > images > and make a folder with "ficons" name (without quotes).

Now all you need to do is to copy images to be used as Custom Forum Icons (relevant to the Forum Name) and upload them to ./images/ficons/ folder.

NOTE: Image's name should be same to the Forum ID. For example if your Forum ID (where these Icons are going to show) is 2 then you'll have to rename the Icon as 2.png and upload it to images/ficons/ folder. Do the same with rest of the Icons.

Now we have almost finished to show Custom icons on Index. Next, we have to do it on Forumdisplay pages.

Go to: ACP > Templates > Your theme's templates > Forumdisplay templates > forumdisplay_subforums and find;

PHP Code:
<td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>

and Change it to;
PHP Code:
<td class="thead" colspan="6" align="center"><strong>{$lang->sub_forums_in}</strong></td>

Within the same template find;
PHP Code:
<td class="tcat" width="2%">&nbsp;</td>

and the following just after that;

PHP Code:
<td class="tcat" width="2%">&nbsp;</td>

Save forumdisplay_subforums template.

I reverted it to Original.. when i changed ALL the code just like in the tutorial, my index was f**** up Sad