Return to Jive Software

This Question is Assumed Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3,914 Views 6 Replies Last post: Jun 24, 2009 4:36 PM by Matt Walker RSS
enothnagle Novice 30 posts since
Sep 23, 2008
Currently Being Moderated

Jun 16, 2009 3:10 PM

Group-based status level displaying "0 points"

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

Tags: status, level
Matt Walker Jive Employee 298 posts since
Jun 14, 2007
Currently Being Moderated
Jun 22, 2009 4:39 PM in response to: enothnagle
Re: Group-based status level displaying "0 points"

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:

  • /template/global/people.ftl
  • /template/global/view-profile.ftl
  • /template/video/view-video.ftl (if you use the video module)
Matt Walker Jive Employee 298 posts since
Jun 14, 2007
Currently Being Moderated
Jun 23, 2009 3:08 PM in response to: enothnagle
Re: Group-based status level displaying "0 points"

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?

Matt Walker Jive Employee 298 posts since
Jun 14, 2007
Currently Being Moderated
Jun 24, 2009 4:36 PM in response to: enothnagle
Re: Group-based status level displaying "0 points"

Ok, so you'll have to find this section:

 

 <@jive.userStatusLevel user=targetUser showPoints=true />

 

In these two files:

 

  • /template/global/view-profile-short.ftl
  • /template/global/view-profile.ftl (two occurrences)

 

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:

 

  • /template/global/people.ftl

 

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>

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.