MyBB Community Forums

Full Version: Unique Category On/Off/Locked Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi there,

I am running a 1.6.x forum, and I have several forums. Now adding unique forum icons for new/old/locked (on.gif, off.gif, offlock.gif) was simple, so long as they were Forums. I achieved this through a mod I installed.

Now that's all fine, however when I changed the forum to a Category which resides in a category the posticons don't display any longer.

So this is my request:

How can I get a unique New/Old/Locked icon for each category I have? So that no one category has the same icons.

Example:
  • Category (No Icon)
    • Sub-Category (Icon for On/Off/Lock)
      • Forum 1 (No icon needed)
      • Forum 2 (No icon needed)
        • Sub-Forum 1 (No icon needed)
        • Sub-Forum 2 (No icon needed)

And I'll have about 5x that above at the least, so that's why each Sub-Category has to have its own icons. Is there any way I could do this?

Thanks in advance for your time! Smile
(2011-05-07, 11:38 AM)Yaldaram Wrote: [ -> ]Like this: http://community.mybb.com/thread-92128.html ?

Thanks for your reply, but as far as I can tell that's just one single image, and for a Forum not Category. I need to have unique On/Off/Locked icons. Those that use on.gif, off.gif and offlock.gif same as found in this very forum, but the difference is that they are all the same.
Go to: ACP > templates > Forumbit Templates > forumbit_depth1_cat > and find;
<div><strong><a href="{$forum_url}">
and Change it to;
<div><img src="images/ficons/{$forum['fid']}.png"><strong><a href="{$forum_url}">

Now you've to do is to Make a folder in ./images/ folder and rename it to "ficons" (without quote)

Upload .png Images renaming them 1.png 2.png etc. depend upon the ID of that category.

It should be look like this now;
[attachment=22598]
(2011-05-07, 11:51 AM)Yaldaram Wrote: [ -> ]Go to: ACP > templates > Forumbit Templates > forumbit_depth1_cat > and find;
<div><strong><a href="{$forum_url}">
and Change it to;
<div><img src="images/ficons/{$forum['fid']}.png"><strong><a href="{$forum_url}">

Now you've to do is to Make a folder in ./images/ folder and rename it to "ficons" (without quote)

Upload .png Images renaming them 1.png 2.png etc. depend upon the ID of that category.

It should be look like this now;

Alright, I shall give this a try anyhow. I hope you are understanding what I mean by the On/Off/Locked icons. You know if no new posts are made in that category the icon of that category is usually grayed or dimmed... Then when a new post is made it changes to a full-color icon, and when locked usually a small lock is placed on that image. That is what I am talking about. Smile

Thanks again, will try your above suggestion and get back to you.
Oh no, that'll require a plugin I think. And as far as I know, there isn't one like this available.
Alright Change above <img src> tag with this;
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
(2011-05-07, 11:55 AM)faviouz Wrote: [ -> ]Oh no, that'll require a plugin I think. And as far as I know, there isn't one like this available.

Ah damn. Sad You see I used: http://mods.mybb.com/view/custom-forum-icons

But as I said above, it doesn't work when I create a forum in the category. I hope what I wish to achieve is possible. Sad
Actually, what Yaldaram posted above seems to work. I just tried it. Smile
(2011-05-07, 12:11 PM)faviouz Wrote: [ -> ]Actually, what Yaldaram posted above seems to work. I just tried it. Smile

Really? I'm so lost now with his 3 posts, hahaha. Would you mind just posting the steps I need to do? He overwrite twice so I got lost. Confused
Pages: 1 2