Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 5 Years, 6 Months ago add custom forum icons ?
#1
Solved: 5 Years, 6 Months ago
hi

i want to add custom forum icons in 1.8 but the templates changed is there anyway to add it 
but without the on off and offlock icons

thanks
Reply
#2
Solved: 5 Years, 6 Months ago
you can replace the one used now, (default mybb icons) just make shore to make em the same size.
All found in /images
Reply
#3
Solved: 5 Years, 6 Months ago
nope i want each forum own icon
Reply
#4
Solved: 5 Years, 6 Months ago
goto ACP >> Templates >> Forumbit templates >> forumbit_depth2_forum

and find....


<td class="{$bgcolor}" align="center" valign="top" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></div></td>

replace it with....

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


Now goto,  Cpanel >> File Manager >> Your Forum Path >> images >> create a folder named "ficons" and upload the icon images inside it named after the forum id

so for a forum whose id is 4, you need to upload a file named 4.png inside /images/ficons folder...
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#5
Solved: 5 Years, 6 Months ago
thanks !
Reply
#6
Solved: 5 Years, 6 Months ago
Hello,

Do I need a "Template Conditionals" plugin installed? Is there any way to create on/off icons as well? I'm planning to use gif images for on/off icons. Thanks.

Is this code correct?

<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']}" />
I apologize for bumping.

write my essay today on PHP coding and technology
Reply
#7
Solved: 5 Years, 6 Months ago
^ Template Conditionals plugin is not required for using above given code.
And the code should work.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)