Font-Awesome Forum Icons - Printable Version +- D&D Forums - MyBB Plugins & Themes (https://developement.design/forum) +-- Forum: MyBB General Discussions (https://developement.design/forum/forumdisplay.php?fid=23) +--- Forum: Tricks & Tutorials (https://developement.design/forum/forumdisplay.php?fid=11) +--- Thread: Font-Awesome Forum Icons (/showthread.php?tid=30) |
Font-Awesome Forum Icons - AmazOuz - 01-03-2018 Hello folks Her's a new useful tutorial from MyBB community (https://community.mybb.com/thread-212919.html) FOR EMERALD THEME : GO DIRECTLY TO THE STEP 5 1. Loading Font Awesome In your Templates section of the MyBB ACP, find the Ungrouped Templates -> headerinclude template. Add the following after {$stylesheets}: Code: Code: <link href='//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'> 2. Adding Your Icon Still in Templates, find Forum Bit Templates -> forumbit_depth2_forum (Do the same for forumbit_depth2_cat) and replace: Code: Code: <span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span> With: Code: Code: <div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-comments"></i></div> Now find the following in your global.css: Code: Code: .forum_status { Replace it with: Code: Code: .forum_status { 3. Fix Your Legend If you wish to keep your forum icon legend, find your Index Page Templates -> index template and replace the contents with this: Code: Code: <html> 4. Adding Font-Awesome Subforum Icons Find this in Forum Bit Templates -> forumbit_depth3_statusicon: Code: Code: <div title="{$lightbulb['altonoff']}" class="subforumicon subforum_{$lightbulb['folder']} ajax_mark_read" id="mark_read_{$forum['fid']}"></div> Replace it with: Code: Code: <div title="{$lightbulb['altonoff']}" class="subforumicon subforum_{$lightbulb['folder']} ajax_mark_read" id="mark_read_{$forum['fid']}"><i class="fa fa-comment"></i></div> Then in global.css find this: Code: Code: .subforumicon { Replace it with: Code: Code: .subforumicon { 5. Adding Font-Awesome Forum Icons Still in Templates, find Forum Bit Templates -> forumbit_depth2_forum (Do the same for forumbit_depth2_cat) and replace: Code: Code: <div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-comments"></i></div> With: Code: Code: <div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read ficons_{$forum['fid']}" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-comments"></i></div> Find the following in global.css: Code: Code: .forum_status { After it, add this: Code: Code: .ficons_2 i:before { Quote: Wrote:ficons_1,2,3 etc are your forums ID, if you don't know your forum ID just hover to one of the forums and underneath left hand corner of your screen you'll see something like forumdisplay.php?fid=9 or go inside your forum and on the search bar you will see fid ID. All credits go to Eric J. Previews: http://i.imgur.com/qhS0HWt.png http://i.imgur.com/5gpXDz4.png http://i.imgur.com/QoHmvQ0.png http://i.imgur.com/INysr98.png |