MyBB Community Forums

Full Version: The little icon next to threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I use a custom image for certain categories?
For example mines look like this 
http://screenshot.sh/m1R41Lgd6BVfv

I want to be able to change them, so that it can be for example like this
http://screenshot.sh/mMzdzJkWuwCf5
(2015-08-11, 07:21 PM)Mutual Wrote: [ -> ]How can I use a custom image for certain categories?
For example mines look like this 
http://screenshot.sh/m1R41Lgd6BVfv

I want to be able to change them, so that it can be for example like this
http://screenshot.sh/mMzdzJkWuwCf5

In the default theme, these icons are stored in /images/forum_icon_sprite.png. But these only know,
  • new message(s)
  • no new messages
  • locked
  • moved
Your board seem to use the same but in the example you show there is much more variation in icons, so this will require a large scale edit of your theme.
Any way to specifically change one categories icon?
(2015-08-11, 08:44 PM)Mutual Wrote: [ -> ]Any way to specifically change one categories icon?

I don't know what you mean by this. If you stick to the 4 categories I mentioned before, you can make a new sprite png. If you have the 4 different icons for these categories, I could make the sprite for you. When they have the sane dimensions as the existing ones, nothing else has to be changed, else the css must also be changed.
I wasn't clear, lets say i find an icon download it and want to use it for that forum what do I have to change for that icon to show next to that forum.
If you are wanting to add individual icons for each forum you'll need to go into the forumbit_depth2_forum template and add {$forum['fid']} variable to the class that affects the images and which will create unique css classes for it and then add the css code for each new forum and set the images. You got to hard code each forum represented by its id in the css.
check this plugin: http://community.mybb.com/mods.php?action=view&pid=457

or follow this Tutorial: http://community.mybb.com/thread-92128.html (yes its old but still works if you understand the logic)