MyBB Community Forums

Full Version: Change icons to custom icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
OMG!!! Its easy.
As you have already applied custom icons just remove the default column. Here is how:

Go to forumbit_depth1_cat
Find:
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
Make it:
<td class="tcat" ><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
If your colspan is 3 (as you have an addl column for icons) then reduce it to 2.

Go to forumbit_depth2_forum
Remove this:
<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>
(2012-10-28, 12:03 PM)effone Wrote: [ -> ]OMG!!! Its easy.
As you have already applied custom icons just remove the default column. Here is how:

Go to forumbit_depth1_cat
Find:
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
Make it:
<td class="tcat" ><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
If your colspan is 3 (as you have an addl column for icons) then reduce it to 2.

Go to forumbit_depth2_forum
Remove this:
<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>

Yeah thanks, and how to set own custom icons for the image from colom 1 ?? the ON OFF and OFFLOCK images ????

And please if u gif answer don't begin with "omg it's so simple" because it's not for everyone simple!! Thats why people ask for help, and then is it not nice to start your post like that

Thanks
I actually didn't get the discussion first, so I got excited when I've come to understand what you want. Sorry.

Well, those three icons are pointed through a dynamic variable to fixed filename, as you see:
{$lightbulb['folder']}.gif

So, just place your custom 3 icons naming on.gif, off.gif, offlock.gif (don't change the names) inside your theme image directory.
Make sure you have {$theme['imgdir']} before {$lightbulb['folder']} in your image path.
{$theme['imgdir']}/{$lightbulb['folder']}.gif
(2012-10-28, 01:48 PM)effone Wrote: [ -> ]I actually didn't get the discussion first, so I got excited when I've come to understand what you want. Sorry.

Well, those three icons are pointed through a dynamic variable to fixed filename, as you see:
{$lightbulb['folder']}.gif

So, just place your custom 3 icons naming on.gif, off.gif, offlock.gif.
Make sure you have {$theme['imgdir']} before {$lightbulb['folder']} in your image path.
{$theme['imgdir']}/{$lightbulb['folder']}.gif


Thanks, but set this on all forums the same image or can I select for each forum a diffrent image??

So there is no way to select one image for each forum, I need always edit the ON OFF OFFLOCK icons ???
I'm losing the point again. You need separate custom on-off-offlock for every individual forums?

Then the right answer is what anori provided to you:
Remove your custom icon column and use this technique to the default icon column.

[color=#000000][font=Tahoma, 'Trebuchet MS', Arial, sans-serif]ACP -> Templates & Style -> Templates -> YOUR_THEME Templates -> Forum Bit Templates -> forumbit_depth2_forum

Seach for:[code]<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /> 

Replace with:
<img src="{$theme['imgdir']}/ficon/icon_{$forum['fid']}_{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /> 

Create a new folder insede your theme image folder and name it ficon and upload each independ forum icon this way:

icon_X_on.png
icon_X_off.png
icon_X_offlock.png

X = Forum ID
Works, but how to get this work for forums that be a Category or link, because this images not showing up by this 2 forums Sad

Thanks
... forums that be a Category or link ...
Didn't get you, snap please ...
(2012-10-28, 03:30 PM)effone Wrote: [ -> ]... forums that be a Category or link ...
Didn't get you, snap please ...

If u made a forum, u can made the forum a forum, category or a link.
And all forums that are a forum have now showing a image but the forums that I set as category or link not. So I need to fix that to...

[Image: 51mjG.png]

[Image: lbECV.png]
OK, got what you said, but that should work for that case too.
Don't know man, I've to check back...
(2012-10-28, 03:45 PM)effone Wrote: [ -> ]OK, got what you said, but that should work for that case too.
Don't know man, I've to check back...

Hmmm strange, I have set it like every other picture... But I wait untill you or someone else got a sollution.

Thanks annyway helping me so good!!

One Sollution........
For the forums that are category if u put the code also in the forumbit_depth2_cat then it works!!!

Now only the linked forum Toungue

I have found it and now everywhere is a icon like I want.

Thanks
Pages: 1 2