MyBB Community Forums
Font Awesome & RPG Awesome - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Font Awesome & RPG Awesome (/thread-217020.html)



Font Awesome & RPG Awesome - Kenjiraw - 2018-04-17

Hello there! I will share with you 4 similar codes I made for FontAwesome and RPGAwesome. I will be simple.

First of all if you want RPGAwesome you have to download it and upload it to your server.

In your headerinclude:

<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://domaine.tld/path/to/RPG-Awesome/css/rpg-awesome.min.css" />

MyCode:

Regex:

\[fa ([a-z\-]+)\]
\[fa ([a-z0-9\-]+) ([a-z0-9\-]+)\]
\[ra ([a-z\-]+)\]
\[ra ([a-z0-9\-]+) ([a-z0-9\-]+)\]
(Icons with dash separated words like 'player-teleport' are supported aswell.)

Replace (respectively):

<i class="fa fa-$1"></i>
<i class="fa fa-$1 fa-$2"></i>
<i class="ra ra-$1"></i>
<i class="ra ra-$1 ra-$2"></i>

These codes, and similars, work:

[fa music]
[fa music lg]
[fa 2x music]
[ra pill]
[ra pill 3x]
[ra 4x pill]



RE: Font Awesome & RPG Awesome - .m. - 2018-04-17

^ looks like it can be useful for some users Smile