Jump to content

Recommended Posts

Posted

On an author card there is info like number of posts and solutions, but any way to show number of achievement points? like... {number="$comment->author()->achievement_points"}?

Thanks in advance!

Posted (edited)
24 minutes ago, Nathan Explosion said:

Thanks! This is just what I'm looking for. Going to stretch my luck and also ask; is there any way to make points also show on a profile? Say... to replace reputation.

Edited by Dextro Energy
Posted

core -> front -> profile -> profile

Find:

{{if settings.reputation_enabled and settings.reputation_show_profile}}

Add the following before it:

<div class='ipsPadding_vertical:half'>
	<p class='ipsType_reset cProfileRepScore cProfileRepScore_neutral ipsRadius:full ipsDimension_height:4 ipsDimension_minWidth:4 ipsPadding_horizontal:half ipsType_large ipsFlex-inline ipsFlex-ai:center ipsFlex-jc:center'>{number="$member->achievements_points" format="short"}</p>
	<h3 class='ipsType_reset ipsType_unbold ipsType_medium ipsType_light ipsMargin_top:half'>{lang="achievement_points"}</h3>
</div>

Save

Result:

Could contain: Text, Word, Page, Paper

If you want to remove the reputation points, then delete the code block that begins at:

{{if settings.reputation_enabled and settings.reputation_show_profile}}

and ends with:

{{endif}} <-delete this one
{{if $solutions}} <- Don't delete this one

 

  • 2 months later...
Posted
On 8/1/2022 at 12:06 PM, Nathan Explosion said:

core -> front -> profile -> profile

Find:

{{if settings.reputation_enabled and settings.reputation_show_profile}}

Add the following before it:

<div class='ipsPadding_vertical:half'>
	<p class='ipsType_reset cProfileRepScore cProfileRepScore_neutral ipsRadius:full ipsDimension_height:4 ipsDimension_minWidth:4 ipsPadding_horizontal:half ipsType_large ipsFlex-inline ipsFlex-ai:center ipsFlex-jc:center'>{number="$member->achievements_points" format="short"}</p>
	<h3 class='ipsType_reset ipsType_unbold ipsType_medium ipsType_light ipsMargin_top:half'>{lang="achievement_points"}</h3>
</div>

Save

Result:

Could contain: Text, Word, Page, Paper

If you want to remove the reputation points, then delete the code block that begins at:

{{if settings.reputation_enabled and settings.reputation_show_profile}}

and ends with:

{{endif}} <-delete this one
{{if $solutions}} <- Don't delete this one

 

So I added the code where you said but it does not show it in the Your Achievements section.

 

Could contain: Text, Page, Menu, Poster, Advertisement, Flyer, Paper, Brochure

Could contain: Text

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...