I want to use status levels by assigning users to groups (e.g. Community Leader). On their profile page, the text under their picture says "Community Leader (0 points)". Since I'm not using a point system at all, is it possible to remove the points tally? I just want it to say "Community Leader". Thanks, -Ed
Sure, you can do this by theming /template/global/view-profile-short.ftl
Find the section that reads:
<#if (statusLevelEnabled)>
<ul class="jive-profile-tt-icons">
<li><@jive.userStatusLevel user=targetUser showPoints=true /></li>
</ul>
</#if>
And change showPoints=true to showPoints=false
If you need some theming help, check out this video: Introduction to Skinning Clearspace
You'll need to do similar theming (replace showPoints=true with showPoints=false) in:
Thanks, Matt. I will give this a try and let you know if I have any problems. -Ed
Matt,
I did this, and the points disappeared on the Profile page as expected, but so did the status level label (in this case "Community Leader"). So, now all that is displayed is the icon. Is this what's supposed to happen?
Thanks,
-Ed
Ah, you're right! Apologies.
If you want to just remove the points, we'll have to do a slightly heavier modification. We'll have to replace the freemarker macro calls with the source in jive-macros.ftl
Would you like that explained at this time, or when you have proper post-sales support?
If you can provide the instructions that would be great. If it's over my head we have an engineer working on our community site who should be able to handle it.
Thanks,
-Ed
Ok, so you'll have to find this section:
<@jive.userStatusLevel user=targetUser showPoints=true />
In these two files:
And replace it with this:
<#if (targetUser?has_content && !targetUser.anonymous)>
<#if container?has_content>
<#assign statusLevel = jiveContext.getStatusLevelManager().getStatusLevel(targetUser, container)!>
<#if statusLevel?has_content>
<span><img src="<@s.url value='/${statusLevel.getImagePath()}' forceAddSchemeHostAndPort='false'/>" alt="${statusLevel.name}" title="${statusLevel.name}" /> ${statusLevel.name} </span>
<#else>
<#-- these exist for formatting reasons -->
<span> </span>
</#if>
<#else>
<#assign statusLevel = jiveContext.getStatusLevelManager().getStatusLevel(targetUser)!>
<#if statusLevel?has_content>
<span><img src="<@s.url value='/${statusLevel.getImagePath()}' forceAddSchemeHostAndPort='false'/>" alt="${statusLevel.name}" title="${statusLevel.name}" /> ${statusLevel.name} </span>
<#else>
<#-- these exist for formatting reasons -->
<span> </span>
</#if>
</#if>
</#if>
Then find this section:
<@jive.userStatusLevel user=result showPoints=true />
In this file:
And replace it with this:
<#if (result?has_content && !result.anonymous)>
<#if container?has_content>
<#assign statusLevel = jiveContext.getStatusLevelManager().getStatusLevel(result, container)!>
<#if statusLevel?has_content>
<span><img src="<@s.url value='/${statusLevel.getImagePath()}' forceAddSchemeHostAndPort='false'/>" alt="${statusLevel.name}" title="${statusLevel.name}" /> ${statusLevel.name} </span>
<#else>
<#-- these exist for formatting reasons -->
<span> </span>
</#if>
<#else>
<#assign statusLevel = jiveContext.getStatusLevelManager().getStatusLevel(result)!>
<#if statusLevel?has_content>
<span><img src="<@s.url value='/${statusLevel.getImagePath()}' forceAddSchemeHostAndPort='false'/>" alt="${statusLevel.name}" title="${statusLevel.name}" /> ${statusLevel.name} </span>
<#else>
<#-- these exist for formatting reasons -->
<span> </span>
</#if>
</#if>
</#if>
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205