MyBB Community Forums
Custom Forum Icons ~ A Unique icon for Each Forum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: Custom Forum Icons ~ A Unique icon for Each Forum (/thread-92128.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: Custom Forum Icons ~ A Unique icon for Each Forum - r3nt3r - 2014-10-12

I'm using the default mybb 1.8.0 theme and this seems not to work. It just doesn't show the icons and if I try to change the default icons to custom nothing changes like they can't be changed. What I'm doing wrong?
EDIT: I was editing wrong code Big Grin Everything works perfectly!!!


RE: Custom Forum Icons ~ A Unique icon for Each Forum - GamingCave - 2014-10-15

Sweet, just got this up on my 1.8 forum


RE: Custom Forum Icons ~ A Unique icon for Each Forum - Zeromadafaka - 2014-12-19

(2014-07-30, 08:40 AM)Cedric Wrote: Very nice, but very outdated tutorial. You should update it, like removing the useless class="" & id="" stuff...

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

Should be

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

etc, sure doesnt make much of a difference, but, it should clean up the html & indeed reflect your knowledge Wink

img tag should have an alt and a title


RE: Custom Forum Icons ~ A Unique icon for Each Forum - expat - 2015-02-01

Anyone got fully updated for 1.8 thanks?


RE: Custom Forum Icons ~ A Unique icon for Each Forum - ridharezzag - 2015-04-28

is this works on 1.8.4 ?


RE: Custom Forum Icons ~ A Unique icon for Each Forum - MikeInToshx - 2015-05-22

Is this working for 1.8? Anyone..


RE: Custom Forum Icons ~ A Unique icon for Each Forum - ridharezzag - 2015-05-23

(2015-05-22, 09:13 PM)MikeInToshx Wrote: Is this working for 1.8? Anyone..

Im using plugin works fine. 
http://community.mybb.com/mods.php?action=view&pid=457


RE: Custom Forum Icons ~ A Unique icon for Each Forum - MikeInToshx - 2015-05-25

Not a big fan of using plugins, not for this type of thing atleast.
There used to be a way / little trick with the google seo plugin but it doesnt support mybb 1.8 ..
Does anyone know how to add costum icons without using a plugin please?

I got it working. Though only did it for the index page.

All I did was replacing the image folder variable and add the images to the folder with their forum id.


RE: Custom Forum Icons ~ A Unique icon for Each Forum - GreyGhost - 2015-06-23

(2015-05-25, 10:58 PM)MikeInToshx Wrote: Not a big fan of using plugins, not for this type of thing atleast.
There used to be a way / little trick with the google seo plugin but it doesnt support mybb 1.8 ..
Does anyone know how to add costum icons without using a plugin please?

I got it working. Though only did it for the index page.

All I did was replacing the image folder variable and add the images to the folder with their forum id.

Hi there,

Did you get it working to the point where if you click and Icon it changes it to the forum read icon?

I have this working for my 1.8 board, and have icons for read and unread forums. However if you click a forum to mark it as read, it does not change unless you refresh the page.

Thanks!


RE: Custom Forum Icons ~ A Unique icon for Each Forum - Adedayo - 2019-01-16

(2011-04-13, 12:23 PM)Yaldaram Wrote: This tutorial will allow you to use separate and unique Custom Forum Icons for each Forum and show images on Index and Forumdisplay Pages without running a single query OR without using a single plugin. You need to edit 3 templates;

Go to: ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth1_cat > and find;
<td class="thead" colspan="5">
and Change it to;
<td class="thead" colspan="6">

Within the same template find;
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
and Change it to;
<td class="tcat" colspan="3"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>

Save [i]forumbit_depth1_cat[/i] template.

Now Go to: ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth2_forum and find;
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
and Add the following code just after that;
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="images/ficons/{$forum['fid']}.png" alt="" title="" class="" id="" /></td>

Save [i]forumbit_depth2_forum[/i] template.

On this point you can see an <img src=""> tag with a {$forum['fid']}.png variable. This variable is the key in our tutorial which show a Unique Custom Icon in front of its corresponding Forum ID.

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;
<td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>
and Change it to;
<td class="thead" colspan="6" align="center"><strong>{$lang->sub_forums_in}</strong></td>

Within the same template find;
<td class="tcat" width="2%">&nbsp;</td>
and the following just after that;
<td class="tcat" width="2%">&nbsp;</td>

Save [i]forumdisplay_subforums[/i] template.

Now you can see something like this;



Thanks.  --- [Image: rep.gif]

Thanks Nice Thread but I can't find all you wrote anylonger in Forum_depth1_cat