Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
PoC2 Posted October 19, 2020 Posted October 19, 2020 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.
Runar Posted October 19, 2020 Posted October 19, 2020 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: _Vault_ 1
PoC2 Posted October 19, 2020 Author Posted October 19, 2020 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. optrexnz 1
Runar Posted October 19, 2020 Posted October 19, 2020 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.
PoC2 Posted October 19, 2020 Author Posted October 19, 2020 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. MMXII 1
_Vault_ Posted October 19, 2020 Posted October 19, 2020 (edited) 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, 2020 by _Vault_
CoffeeCake Posted October 19, 2020 Posted October 19, 2020 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. optrexnz 1
PoC2 Posted October 19, 2020 Author Posted October 19, 2020 <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. _Vault_ 1
_Vault_ Posted October 20, 2020 Posted October 20, 2020 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.
Runar Posted October 20, 2020 Posted October 20, 2020 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. CoffeeCake and elonegenio 2
optrexnz Posted October 21, 2020 Posted October 21, 2020 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.
Runar Posted October 21, 2020 Posted October 21, 2020 (edited) 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, 2020 by Runar
Recommended Posts