MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Hide Reputation (Closed) (Mono Support )

Viewed 5488 time(s), 6 post(s) 10/23/2012 5:53:41 AMby johnsamuel
johnsamuel

johnsamuel

10/23/2012 5:53:41 AM
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
This content has not been rated yet. 
429 Reputation 46 Total posts
GeorgeBirbilis12

GeorgeBirbilis12

10/23/2012 7:03:58 AM
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
This content has not been rated yet. 
20 Reputation 3 Total posts
johnsamuel

johnsamuel

10/23/2012 10:11:54 AM
Thanks we'll try this
This content has not been rated yet. 
429 Reputation 46 Total posts
khorvat

khorvat

10/23/2012 10:53:38 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
DanC

DanC

10/23/2012 11:57:46 AM
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!
This content has not been rated yet. 
85 Reputation 9 Total posts
khorvat

khorvat

10/23/2012 1:57:32 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts