MyBB Tutorials

[For 1.8] Replace PM icons with Font Awesome

Submitted by e8iw2f3, , Thread ID: 24371

Thread Closed
e8iw2f3
Member
Level:
1
Reputation:
17
Posts:
177
Likes:
13
Credits:
156
26-11-2016, 11:09 AM
#1
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


Code:
.x_new_pm:before {font-family:FontAwesome; content: "\f003"; font-size:16px}
.x_old_pm:before {font-family:FontAwesome; content: "\f2b7"; font-size:16px}
.x_fw_pm:before {font-family:FontAwesome; content: "\f2b7"; position:absolute; font-size:16px}
.x_fw_pm:after {font-family:FontAwesome; content: "\f178"; position:relative; top:11px; left:5px; color:#5b94c5; font-size:16px}
.x_re_pm:before {font-family:FontAwesome; content: "\f2b7"; position:absolute; font-size:16px}
.x_re_pm:after {font-family:FontAwesome; content: "\f177"; position:relative; top:11px; right:5px; color:#663096; font-size:16px}

Step 3:

Inprivate_messagebit andprivate_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:

[Image: before.png]

After:

[Image: after.png]

RE: [For 1.8] Replace PM icons with Font Awesome

tronturbo
Banned
Level:
0
Reputation:
0
Posts:
9
Likes:
0
Credits:
0
21-12-2016, 06:14 PM
#2
I will definately try but the default one is pretty nice already

RE: [For 1.8] Replace PM icons with Font Awesome

Guest
Level:
0
Posts:
N/A
Likes:
0
Credits:
0
03-07-2017, 09:11 PM
#3
This made the Pm page look so much nicer. Thank you!

RE: [For 1.8] Replace PM icons with Font Awesome

caxakoxeve
Novice
Level:
0
Reputation:
0
Posts:
24
Likes:
0
Credits:
1
27-07-2017, 01:17 AM
#4
Nice tutorial thanks for this.

Users browsing this thread: 1 Guest(s)