vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Disable reputation system but keeping the "like" button (https://vborg.vbsupport.ru/showthread.php?t=324912)

plongeur.com 04-13-2017 08:28 AM

Disable reputation system but keeping the "like" button
 
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.

Code:

.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:

HTML Code:

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

Code:

/* 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.


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00978 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete