(2021-03-12, 06:24 PM)DiegoPino Wrote: [ -> ]I am used the Gid FA 4.7 in root with Username Icon Postbit & Profile & Memberlist by Vintagedaddyo, my custom setting .titletag on group via Global.CSS
ok, guick question as it has been a good while since I looked at and or wrote any of these but I assume you were using the old tutorial:
[Tutorial] - Gid FA Username Icon Postbit & Profile & Memberlist & Whosoline ? I only ask that as I also see css examples in your snippet from another bit older tutorial that was also gid specific but applied very differently? Also can you provide me source of what tutorial you used as I wrote several similar but different such back then and it would be easier to help you if I knew exactly what one you are working from...., thanks, though part of me is thinking by you snippet and image that you are possibly confusing two different tutorials ie: one that uses titletag and another that uses grouptag as they were different tutorials and implementations and also you can see where my confusion can be is that by your image you are showing me an example of usergroup image by gid/css tutorial which was a completely different tutorial than username icon tutorial not to mention then confusing me further by having grouptag examples in your snippet as that was not part of the titletag tutorial...
anyhoo, I assume what you are asking about now is something that I actually never included in any of those tutorials as far as I can remember, but I might have in a reply, dunno but I assume you mean:
ie:
[Tutorial] - Gid FA Username Icon Postbit & Profile & Memberlist & Whosoline & ShowTeam
For Font Awesome 4.7:
In headerinclude add:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
For Font Awesome 5:
In headerinclude add:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
Add to global.css
for FA 4.7:
/** Gid FA 4.7 Username Icon Postbit & Profile & Memberlist by Vintagedaddyo **/
.titletag {
display: inline-block;
font-family: "FontAwesome";
font-weight: 600;
}
.titletag_4:before {
content: "\f013";
color: #008000;
}
.titletag_6:before {
content: "\f0e3";
color: #CC00CC;
}
.titletag_3:before {
content: "\f0e3";
color: #CC00CC;
}
.titletag_2:before {
content: "\f007";
color: #0072BF;
}
for FA 5:
/** Gid FA 5 Username Icon Postbit & Profile & Memberlist by Vintagedaddyo **/
.titletag {
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 900;
}
.titletag_4:before {
content: "\f013";
color: #008000;
}
.titletag_6:before {
content: "\f0e3";
color: #CC00CC;
}
.titletag_3:before {
content: "\f0e3";
color: #CC00CC;
}
.titletag_2:before {
content: "\f007";
color: #0072BF;
}
In postbit and postbit_classic find:
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
Replace with:
<span class="titletag titletag_{$usergroup['gid']}"> </span><strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
In member_profile find:
<span class="largetext"><strong>{$formattedname}</strong></span><br />
Replace with:
<span class="titletag titletag_{$memprofile['usergroup']}"> </span><span class="largetext"><strong>{$formattedname}</strong></span><br />
In memberlist_user find:
{$user['profilelink']}<br />
And replace with:
<span class="titletag titletag_{$usergroup['gid']}"> </span>{$user['profilelink']}<br />
Now, you can keep adding to this by adding additional "gids" to the css.
MyBB default "gids" are:
[ 1 ] _ Guests
[ 2 ] _ Registered
[ 3 ] _ Super Moderators
[ 4 ] _ Administrators
[ 5 ] _ Awaiting Activation
[ 6 ] _ Moderators
[ 7 ] _ Banned
And same can be done by further adding your non default "gids" to the css.
If you are having a hard time figuring out all your gids you can download getgroups.php attached below and upload it to your forum root directory and visit it by "forum/getgroups.php" and it will display all of your currrent gids by number and name.
Download:
[
attachment=43921]
Gid FA Username Icon Index Whosonline:
Update: another user here
https://community.mybb.com/thread-226039...pid1341637 asked if this can be also used on the index whosonline and the answer is yes
In index_whosonline_memberbit template find:
{$user['profilelink']}{$invisiblemark}
Replace with:
<span class="titletag titletag_{$user['usergroup']}"> </span>{$user['profilelink']}{$invisiblemark}
Gid FA Username Icon ShowTeam:
Update: another user asked if this can be also used on the showteam and the answer is yes
in showteam_usergroup_user template find:
<a href="{$user['profilelink']}">
add this right before it:
<span class="titletag titletag_{$user['usergroup']}"> </span>