(2019-05-02, 08:22 PM)makpaolo Wrote: [ -> ]Should I still go ahead and revert the templates? Thank u very much for support. Great community in mybb
Well if you don't revert them we would have to manually insert the plugin calls..., which is fairly easy but without viewing the theme css I don't want to guide you incorrectly as there may be some styling conflictions that I cannot forsee without seeing completely what I am working with.
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:
id="mark_read_{$forum['fid']}">
And add this after:
<i class="{$forum['myfontawesomeicon']}"></i>
Now as for the index edits, it appears that your index does not use the legend so you would not need to add those index edits.
In
headerinclude template you would also need to make sure that after:
{$stylesheets}
There is the following include:
<link href="{$mybb->asset_url}/inc/plugins/myfontawesomeicons/font-awesome-5/css/all.css" rel="stylesheet" type="text/css">
And that your font awesome 4.7 include in that template or wherever it is included is commented
<!-- -->
out so as to avoid version conflicts.
Then anywhere in the theme that icons don't display correctly you would need to simply edit the icons to the respective font awesome 5 icon call as it appears that your theme is using font-awesome 4 based on the fa rather than "fas, far" etc, etc. Hopefully that makes sense.
In forum management you would add the icon name for each forum in input for Font Awesome Icon: "The CSS name for the font awesome icon. For example: fas fa-comments"
If that is too complicated you could always download an earlier version of the plugin 1.1
https://community.mybb.com/mods.php?acti...9&bid=2993 that used font-awesome 4.7 library and the only major change would be one uploading the different plugin files and also how the library as it is a different library is called in
headerinclude:
First you would deactivate the 1.2 version of the plugin, install the 1.1 version of the plugin
Before installing the older 1.1 version please consider this..., depending on your php version you may run into an error notice if you opted on using the 1.1 version of the plugin as the default icon is not defined by default in that version.
you can correct that by
In the
myfontawesomeicons.php plugin file you would need to find: (line #55)
function myfontawesomeicons_install()
{
global $db;
$db->add_column('forums', 'myfontawesomeicons_icon', 'TEXT NOT NULL');
}
And change to:
function myfontawesomeicons_install()
{
global $db;
// $db->add_column('forums', 'myfontawesomeicons_icon', 'TEXT NOT NULL');
// Define an initial default icon
$db->add_column('forums', 'myfontawesomeicons_icon', 'varchar(25) DEFAULT "fa-comments"');
}
still due to your custom template that modified these templates you need to find where to add the plugin calls for example:
In
forumbit_depth2_forum &
forumbit_depth2_cat &
forumbit_depth3_statusicon you would find:
id="mark_read_{$forum['fid']}">
And add this after:
<i class="{$forum['myfontawesomeicon']}"></i>
Now as for the index edits, it appears that your index does not use the legend so you would not need to add those index edits.
so instead you would in
headerinclude template you would need to make sure that after:
{$stylesheets}
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">
Also note in the older version of the plugin..., the adding icon name is slightly different in forum management: ie: In forum management you would add the icon name for each forum in input for Font Awesome Icon: "The CSS name for the font awesome icon. For example: fa-comments"
Hopefully that all makes sense.