Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Alexandr.P Posted January 28, 2021 Posted January 28, 2021 Hello, how do I replace the moderator icon with a friend or add different icons?) Quote
Ryan Ashbrook Posted January 28, 2021 Posted January 28, 2021 Custom CSS: .cAuthorPane_badge--moderator::before { content: "\f132"; } Change f132 to any FontAwesome icon (you can find the appropriate replacement by clicking on the icon on that page, and look next to the Unicode label). Alexandr.P 1
CoffeeCake Posted January 28, 2021 Posted January 28, 2021 You can adjust it via custom CSS. /* Change the icon for moderators */ .cAuthorPane_badge--moderator::before { content: "\f2c2"; } Use the unicode value of the fontawesome 4 icon you'd like to replace it with. I used id-card as an example above. Alright, Ryan. Time to arm wrestle. Alexandr.P 1
Alexandr.P Posted January 29, 2021 Author Posted January 29, 2021 Thank you very much) And how to add different icons to different users, in the code it turns out we edit who is the moderator. Use this icon for a regular account?.🙂
CoffeeCake Posted January 29, 2021 Posted January 29, 2021 The only other badge is for new members (registered within the last 30 days). /* Change the icon for new members */ .cAuthorPane_badge--new::before { content: "\f2c2"; }
CoffeeCake Posted January 29, 2021 Posted January 29, 2021 What do you mean by "new" icons? Do you mean badges for groups other than moderators/administrators and new members? If so, that would require a template/css customization.
Alexandr.P Posted January 29, 2021 Author Posted January 29, 2021 it is the icons for users, so I ask where you can search in the template to add code)
CoffeeCake Posted January 29, 2021 Posted January 29, 2021 Can you provide a screenshot showing what you'd like to do? There are icons per usergroup that you can set out of the box, but these aren't badges. You do this in the group settings: Are you wanting to add a badge (the little blue circle that appears here in the bottom of a member's avatar) to all members (those that aren't "new" or moderators)?
Alexandr.P Posted January 29, 2021 Author Posted January 29, 2021 4 minutes ago, Paul E. said: Are you wanting to add a badge (the little blue circle that appears here in the bottom of a member's avatar) to all members (those that aren't "new" or moderators)? Yes, yes))
CoffeeCake Posted January 29, 2021 Posted January 29, 2021 Search for cAuthorPane_badge in templates and add whatever logic you'd like for whatever condition you'd like. Alexandr.P 1
Solution Alexandr.P Posted January 29, 2021 Author Solution Posted January 29, 2021 Thank you very much))
Recommended Posts