MyBB 1.8.x Mod  Replace postbit online/offline images with Fontawesome icons
#1
Bug 
Replace postbit online/offline images with Fontawesome icons

For Font Awesome 4: Este lo tengo instado en el hosting Font Awezome Username Style
In headerinclude add:
Quote:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

Replace postbit_online with:
Quote:<a href="online.php" title="{$lang->postbit_status_online}"><i class="fa fa-check-circle online" alt="{$lang->postbit_status_online}"></i></a>


Replace postbit_offline with:
Quote:<i class="fa fa-times-circle offline" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}"></i>


For Font Awesome 5:
In headerinclude add:
Quote:<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">



Replace postbit_online with:
Quote:<a href="online.php" title="{$lang->postbit_status_online}"><i class="fas fa-check-circle online" alt="{$lang->postbit_status_online}"></i></a>


Replace postbit_offline with:
Quote:<i class="fas fa-times-circle offline" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}"></i>

You can then modify further by css for example this basic usage is pulling from existing offline and online class for coloring..., so you could replace those in the call with your custom classes and allow for positioning, coloring, and whatever else you so desire...

Tutorial por: vintagedaddyo
User Vintagendaddyo

Cool
[Image: 51.jpg]
We11World [ Winning Eleven ] , Blog , Archive Forums
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Bug MyBB 1.8.x Mod  [Tutorial] Replace showthread sprite with your own individual images by vintagedaddyo DiegoPino 0 12 12-06-2019, 08:55 PM
Last Post: DiegoPino
Star MyBB 1.8.x Mod  Add simple css and fontawesome userbars DiegoPino 0 1,167 09-22-2018, 12:55 AM
Last Post: DiegoPino

Forum Jump:


Users browsing this thread: 1 Guest(s)