Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.33 veröffentlicht (03.01.23)

Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
MyFontAwesomeIcons FA4
Eine neue Erweiterung wurde veröffentlicht: MyFontAwesomeIcons FA4

Zitat:MyFontAwesomeIcons FA4 (Font Awesome 4.7 version) ** A continuation and update of build #3 version 1.1 https://community.mybb.com/mods.php?acti...9&bid=2993 to keep the FA 4.7 option available

Lets you implement custom Font-Awesome 4.7 icons for your forums.

Created by Ethan DeLong & Vintagedaddyo

This is a highly modified version of the plugin: MyForumIcons - Custom Forum Icons by Ethan DeLong

Specifically modified by Vintagedaddyo for Font-Awesome 4.7 implementation after several user requests for something of the sort.

This will allow you to add custom Font-Awesome 4.7 icons for your forums.

You can specify a css name to your forum's custom font-awesome icon by going to the ACP => Forum Management => Edit Forum.

localization support:

- english
- englishgb
- espanol
- french
- italiano

What is new in version 1.2?

- updated css to reflect the past lock to close change
- remove index template inserts as it is now a manual install if your theme has the index legend
- added default input icon so as to correct issue with null input on newer versions of php

To Install:

1) Upload The Files, And Go to Admin CP And Activate it!

2) Edit Index template:

Home » Template Sets » Default Templates » Edit Template: index



<dl class="forum_legend smalltext">
    <dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>

    <dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>

    <dt><span class="forum_status forum_offclose" title="{$lang->forum_closed}"></span></dt>

    <dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<br class="clear" />

replace with:


<dl class="forum_legend smalltext">
  <dt><div class="forum_status forum_on" title="{$lang->new_posts}"><i class="fa fa-comments"></i></div></dt>

  <dt><div class="forum_status forum_off" title="{$lang->no_new_posts}"><i class="fa fa-comments"></i></div></dt>

  <dt><div class="forum_status forum_offclose" title="{$lang->forum_closed}"><i class="fa fa-lock"></i></div></dt>

  <dt><div class="forum_status forum_offlink" title="{$lang->forum_redirect}"><i class="fa fa-link"></i></div></dt>
<br class="clear" />

3) Go to forums Management Edit Forum Settings and edit each forum with your specific Font Awesome Icon.

The CSS name for the font awesome icon. For example: fa-comments

You can specify a css name to your forum's custom font-awesome icon by going to the ACP => Forum Management => Edit Forum.

Final note for existing themes that have font-awesome already installed:
If your theme has custom formbit template modifications ie: forumbit_depth2_cat, forumbit_depth2_forum, forumbit_depth3_statusicon you will need to revert those templates to default before installing the plugin and also remove any other font-awesome include say for example in headerinclude if already present in the theme. if you don't revert them you would have to manually insert the plugin calls.

mainly what you need to find is where to add the plugin calls for example:

In forumbit_depth2_forum & forumbit_depth2_cat & forumbit_depth3_statusicon you would find:


And add this after:

<i class="{$forum['myfontawesomeicon']}"></i>
In headerinclude template you would also need to make sure that after:

There is the following include:

<link href="{$mybb->asset_url}/inc/plugins/myfontawesomeicons/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
And that your font awesome include in that template or wherever it is included is commented
<!-- -->
 out so as to avoid version conflicts.

* note: If you are using this with https://community.mybb.com/mods.php?action=view&pid=916 install it first!



Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  MyFontAwesomeIcons MyBB.de Bot 2 1.857 01.12.2018, 00:35
Letzter Beitrag: MyBB.de Bot