Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 19, 20204 yr Hello, A problem I've run in to on IPS 4.5.3 – I can switch off the badges for Moderators that appear on their avatars, but how do I do that for new members? The badge for new members looks like a restriction/stop/you've been naughty(!) sign not a "wave hello". Any help much appreciated. Cheers. P.S. When using search in Admin CP, the only result for a search on the term "badge" brings up the member ranking scheme, and not the "badge" switch for Moderators which I had to go manually hunting elsewhere for.
October 19, 20204 yr The relevant code is on lines 45–47 in the theme file forums > front > topics > postContainer: {{elseif $comment->author()->joinedRecently()}} <span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span> {{endif}} I've kept the badge, but changed it to something a bit more positive: /* Change the icon for new members */ .cAuthorPane_badge--new::before { content: "\f25b"; } Which results in this:
October 19, 20204 yr Author I'd also settle for being able to set the 'New member' badge to t=1 day if that's easier. Thanks for the input! Wow, they hardcoded this in without an option. Oh dear.
October 19, 20204 yr 8 minutes ago, PoC2 said: Wow, they hardcoded this in without an option. Oh dear. Well, the option is to edit the theme. But yes, maybe it should be an option somewhere, as not everyone is comfortable manually editing the theme.
October 19, 20204 yr Author 5 minutes ago, Runar said: not everyone is comfortable manually editing the theme. Correct. They could have just added a switch (as they already did for Moderators/Admins). It also helps for ease of doing upgrades to have as few custom changes to the code as possible.
October 19, 20204 yr 8 hours ago, PoC2 said: Correct. They could have just added a switch +1 + allow the image to be changed in ACP and to be able to configure the timeframe, where this is shown. Edited October 19, 20204 yr by _Vault_
October 19, 20204 yr Yes, the number of days constituting "new member" is hardcoded, presently to 30 days. If you wanted something other than 30 days, you'd need to work that logic out yourself in the theme or create a plugin that hooks into the joinedRecently() stuff.
October 19, 20204 yr Author <sigh> I think it's great that Invision continue to produce updates and expansions to their software, but I do wish a few more of these new facilities were 'opt-in' rather than essentially forced upon us.
October 20, 20204 yr 19 hours ago, PoC2 said: <sigh> I think it's great that Invision continue to produce updates and expansions to their software, but I do wish a few more of these new facilities were 'opt-in' rather than essentially forced upon us. I agree. The same with the post statistics sidebar. It was just on by default - should have been opt-in instead.
October 20, 20204 yr I have created a simple (and free) plugin to change the icon, change how long a member is considered new, or disable the badge completely. Hopefully the plugin will be approved and available shortly.
October 21, 20204 yr So much scope for this, including user groups and secondary groups having different icons Or being able to change the colour for those members who are currently online.
October 21, 20204 yr 12 hours ago, Runar said: I have created a simple (and free) plugin to change the icon, change how long a member is considered new, or disable the badge completely. Hopefully the plugin will be approved and available shortly. The plugin is available! Edited October 21, 20204 yr by Runar