MyBB Community Forums

Full Version: Font Awesome 5 Paperclip İcons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
forumdisplay_thread_attachment_count replace with

<div class="float_right" style="margin:10px;color:red;">
<i class="fas fa-paperclip" title="{$attachment_count}"></i>
</div>

post_attachments_new Find

<img src="{$theme['imgdir']}/paperclip.png" alt="" />

replace with

<i class="fas fa-paperclip" style="color:red;"></i>


headerinclude {$ stil} Add below


<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
... or, may be, without font-awesome, replace with svg:
<div class="float_right" title="{$attachment_count}" style="width:16px; height:16px;">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48" version="1.1">
<g id="paperclip"><path style="fill:red;" d="M 18.2 41 c -2.1 0 -4.4 -0.7 -6.8 -2.6 c -2.6 -2 -4 -4.4 -4.4 -7.1 c -0.6 -4.5 2.3 -8.3 2.4 -8.4 L 21.4 7.7 c 0.7 -0.9 1.9 -1 2.8 -0.3 s 1 1.9 0.3 2.8 L 12.7 25.4 c -0.4 0.6 -4.2 5.7 1.2 9.9 c 5.4 4.2 9.5 -0.7 10 -1.3 l 14.3 -18.3 c 0.6 -0.8 2.2 -3.4 -0.7 -5.7 c -3.1 -2.4 -5.5 0.4 -5.8 0.7 L 17.5 29 c -0.6 0.8 -0.1 1.3 0.2 1.5 c 0.2 0.2 0.8 0.6 1.5 -0.2 l 12.7 -16.4 c 0.7 -0.9 1.9 -1 2.8 -0.4 c 0.9 0.7 1 1.9 0.4 2.8 L 22.3 32.8 c -1.2 1.6 -4.2 3.1 -7.1 0.9 c -1.6 -1.2 -2.3 -2.9 -1.9 -4.8 c 0.2 -1.2 0.9 -2.1 1 -2.3 L 28.5 8.2 c 2 -2.6 6.7 -5 11.4 -1.4 c 2.6 2 3.6 4.7 3.1 7.6 c -0.4 2.1 -1.5 3.5 -1.6 3.7 L 27 36.5 C 25.5 38.5 22.2 41 18.2 41 Z "></path></g></svg>
</div>