(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:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
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:
<img src="{$theme['imgdir']}/{$msgstatus}.png" alt="{$msgalt}" title="{$msgalt}" />
and replace with:
<span class="x_{$msgstatus}" title="{$msgalt}"></span>
Add to usercp.css:
/** FA PM Icons **/
.x_new_pm:before {
font-family: "Font Awesome 5 Free";
content: "\f0e0";
font-size: 16px;
}
.x_old_pm:before {
font-family: "Font Awesome 5 Free";
content: "\f2b6";
font-size: 16px;
}
.x_fw_pm:before {
font-family: "Font Awesome 5 Free";
content: "\f2b6";
position: absolute;
font-size: 16px;
}
.x_fw_pm:after {
font-family: "Font Awesome 5 Free";
content: "\f30b";
position: relative;
top: 11px;
left: 5px;
color: #5b94c5;
font-size: 16px;
font-weight: 900;
}
.x_re_pm:before {
font-family: "Font Awesome 5 Free";
content: "\f2b6";
position: absolute;
font-size: 16px;
}
.x_re_pm:after {
font-family: "Font Awesome 5 Free";
content: "\f30a";
position: relative;
top: 11px;
right: 5px;
color: #663096;
font-size: 16px;
font-weight: 900;
}
*Simply updated for FA5 usage while compiling, creating and updating all FA5 related tuts here: https://community.mybb.com/thread-220017...15632.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:
<img src="{$theme['imgdir']}/new_pm.png" alt="" />
Replace with:
<span class="x_new_pm"></span>
in private_tracking_readmessage:
Find:
<img src="{$theme['imgdir']}/old_pm.png" alt="" />
Replace with:
<span class="x_old_pm"></span>