PDA

View Full Version : Disable reputation system but keeping the "like" button


plongeur.com
04-13-2017, 08:28 AM
Hi all,

I am trying to find a way to hide almost all the reputation system but keep the like button on posts, does anyone know the configuration that would make this happen ?

Otherwise, what is the simpler way to fully disable the reputation system ?

Also, i tried to disable the infraction system but i think i missed something because i can still the button below every post. Is this because i am admin ?

Thanks a lot.

noypiscripter
04-13-2017, 02:05 PM
Did you mean you want to hide those orange reputation bars below the username in the postbit section? If yes, add this in css_additional template or in Sitebuilder > Style > CSS Editor.

.b-meter { display: none; }

For disabling infractions, did you select No to all the User Infraction Permissions in the Usergroup Manager for administrators and moderators?

plongeur.com
04-13-2017, 06:15 PM
Many thanks for the help.
It did mask the reputation bars, I just don't know whether reputation score is used or displayed elsewhere, if not it is fine by me.

Regarding infractions, all 4 options are set to "no" for admin, super moderators and moderators groups, but i still have the "give infraction" icon when logged in as super moderator. It is no big deal as i trust my super moderators but it is still surprising.

Last question (maybe i should open another thread, i am trying to mask the user post count in the "postbit" for all but moderators. I tried just changing :
<li class="b-userinfo__additional-info"><label>{vb:phrase posts}:</label> <span>{vb:raw userInfo['posts']}</span></li>
by
<vb:if condition="is_member_of($bbuserinfo,5,6,7)"> <li class="b-userinfo__additional-info"><label>{vb:phrase posts}:</label> <span>{vb:raw userInfo['posts']}</span></li></vb:if>

But i get a "Parse error: syntax error, unexpected ',' in ..." message.

Thanks a lot for your help

MarkFL
04-13-2017, 06:18 PM
In your condition, try using:

is_member_of($bbuserinfo, array(5,6,7))

plongeur.com
04-13-2017, 06:29 PM
I just tried it and i still have the parse error...

noypiscripter
04-13-2017, 07:37 PM
You can just hide the post count using CSS. The body tag has data-usergroup or data-usegroupid attribute and you can use that in the css selector to target specific usergroups and hide the post count element.

For the infraction icon, you can also hide it via CSS if the related permissions are disabled and it still wasn't working. Maybe its a bug.

plongeur.com
04-14-2017, 03:50 AM
Could you please tell me how i could do it ? i have to say i am out of my confort zone with the CSS classes and attributes...

noypiscripter
04-14-2017, 06:30 PM
/* hide Post count except usergroups 5, 6, 7 */
body:not([data-usergroupid='5']):not([data-usergroupid='6']):not([data-usergroupid='7']) .b-userinfo__additional-info:nth-child(2) {
display: none;
}

/* Hide infraction icon */
.js-post-controls .js-post-control__infraction {
display: none;
}

plongeur.com
04-20-2017, 07:28 AM
this is great ! thanks a lot.