Jump to content

Featured Replies

Posted

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.

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:

image.png.10874e3fb282780cbffbcfce688b02ea.png

  • 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.

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.

  • 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.

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 by _Vault_

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.

  • 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.

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.

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.

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.

 

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 by Runar

Recently Browsing 0

  • No registered users viewing this page.