Dextro Energy Posted July 31, 2022 Posted July 31, 2022 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!
Dextro Energy Posted July 31, 2022 Author Posted July 31, 2022 (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 July 31, 2022 by Dextro Energy
Nathan Explosion Posted August 1, 2022 Posted August 1, 2022 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: 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 Dextro Energy and SeNioR- 2
fantasystar Posted October 6, 2022 Posted October 6, 2022 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: 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.
Recommended Posts