![]() |
[For 1.8] Replace PM icons with Font Awesome - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: [For 1.8] Replace PM icons with Font Awesome (/thread-206180.html) |
Replace PM icons with Font Awesome - Ashley1 - 2016-11-26 Ignore step 1 if you are already linking to Font Awesome CSS, although you need to make sure that it's the latest version (4.7.0 at this time) as these icons are new. Step 1: In headerinclude add above {$stylesheets}: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> Step 2: Add to usercp.css Step 3: In private_messagebit and private_search_messagebit templates: Find <img src="{$theme['imgdir']}/{$msgstatus}.png" alt="{$msgalt}" title="{$msgalt}" /> and replace with: <span class="x_{$msgstatus}" title="{$msgalt}"></span> Before: After: RE: Replace PM icons with Font Awesome - Donald_Duck - 2016-11-26 Nice , provide same for postbit buttons and thread create close buttons RE: Replace PM icons with Font Awesome - day-day - 2016-11-26 Looks AWESOME! Hope to see some more as Donald Duck stated RE: Replace PM icons with Font Awesome - Ashley1 - 2016-11-27 For the thread buttons: forumdisplay_newthread Replace with: <a href="newthread.php?fid={$fid}" class="button" style="text-decoration:none"><i class="fa fa-file-text" aria-hidden="true" style="color:#008000"></i> {$lang->post_thread}</a> showthread_newreply Replace with: <a href="newreply.php?tid={$tid}" class="button" style="text-decoration:none"><i class="fa fa-comments" aria-hidden="true" style="color:#ffff00"></i> {$lang->new_reply}</a> showthread_newreply_closed Replace with: <a href="newreply.php?tid={$tid}" class="button" style="text-decoration:none"><i class="fa fa-lock" aria-hidden="true" style="color:#ffd700"></i> {$lang->thread_closed}</a> showthread_newthread Replace with: <a href="newthread.php?fid={$fid}" class="button" style="text-decoration:none"><i class="fa fa-comments" aria-hidden="true" style="color:#ffd700"></i> {$lang->post_thread}</a> RE: Replace PM icons with Font Awesome - beautes - 2017-01-30 Great stuff, thanks RE: Replace PM icons with Font Awesome - Eldenroot - 2017-02-04 What about PM tracking and the legend shown below the thread/forum (print, subscribe, etc.) ![]() RE: Replace PM icons with Font Awesome - User 6029 - 2018-11-02 (2016-11-26, 07:53 AM)Ashley1 Wrote: -- SNIP -- Replace PM icons with Font Awesome - Font Awesome 5 Original tutorial credit to Ashley1 @ https://community.mybb.com/thread-206180.html Here I have simply updated it for Font Awesome 5 usage: Example: For Font Awesome 5: In headerinclude add:
NOTE: You can skip the header include if you already have the font awesome included in your headerinclude say from other tutorials. In private_messagebit and private_search_messagebit templates: Find:
and replace with:
Add to usercp.css:
*Simply updated for FA5 usage while compiling, creating and updating all FA5 related tuts here: https://community.mybb.com/thread-220017-post-1315632.html Update: This tutorial so far has not touched the icons in pm tracking so we need to account for that like so: Example: in private_tracking_unreadmessage: Find:
Replace with:
in private_tracking_readmessage: Find:
Replace with:
|