Mono Support Hide Reputation (Closed)

Viewed 12142 time(s), 6 post(s), 10/23/2012 5:53:41 AM - by johnsamuel
10/23/2012 5:53:41 AM
429 Reputation 46 Total posts

We need to hide reputation from all pages. We cannot see a control to do this. If there is not one please recommend a solution. Thanks

1
10/23/2012 7:03:58 AM
20 Reputation 3 Total posts

If you right click this page and do view source (assuming this one is built on MonoX itself) you see:

<div class="reputation-posts">
<strong class="reputation" title="Reputation 289">
289
<span>Reputation</span>
</strong>
<strong class="posts" title="Total posts 32">
32
<span>Total posts</span>
</strong>
</div>

so setting in your theme's .css file the visibility of "reputation-posts" to hidden it should go away

you could do similarly (right click / view source or use F12 in IE8+ and similar tools in other browsers to see browser debugging/development tools [in Mozilla can try Firebug addon]) with your installation

2
10/23/2012 10:11:54 AM
429 Reputation 46 Total posts

Thanks we'll try this

3
10/23/2012 10:53:38 AM
15993 Reputation 2214 Total posts

One other thing that you can do is to remove or hide on server side the following HTML (~\Portal\MonoX\ModuleGallery\ProfileModule\UserAvatar.ascx):

<tr>
        <td>
            <div class="user-score">
                <%= MonoSoftware.MonoX.BusinessLayer.UserProfileBLL.GetInstance().GetUserReputation(UserId) %>
                <span><%= MonoSoftware.MonoX.Resources.UserProfileResources.UserScore %></span>
            </div>
        </td>
    </tr>
Note: Reputation score is mostly used on the UserAvatar WebPart so if you remove it there is should be removed from most of the WebParts. One downside of this modification is that if you upgrade to newer MonoX version you can end-up with updated UserAvatar.ascx control that has this in the mark-up and reputation will be back. So in that case it would be great to have some VCS (e.g. SVN) in place.

Regards

4
10/23/2012 11:57:46 AM
85 Reputation 9 Total posts

Hi George,
When I view source I do not get a class referenced by the name reputation-posts. I get "user-score"
When I check the css file I also don't have a class defined with the name "reputation-posts"
In fact, when I do an entire solution search, I do not get any hits for "reputation-posts"

When I view source I have something else:
<div class="user-score">
486
<span>Reputation</span>
</div>

When I hide this class the space for the score still exists.

Khovat - When I use your solution, the result is much more elegant - the reputation score is removed and the box becomes square - the space for the reputation score is also removed.

However, this does mess wth the layout a little so some extra spacing is required to stop the City field from appearing over the status update field in the view profile page.

Many thanks!

5
10/23/2012 1:57:32 PM
15993 Reputation 2214 Total posts

Yes, you will need to amend the styling a bit but solution should work. I'm marking this as answered and closing the topic.

Regards

6
This is a demo site for MonoX. Please visit Mono Software for more info.