Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2017, 08:28 AM
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-13-2017, 02:05 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 04-13-2017, 06:15 PM
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>{vbhrase 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>{vbhrase 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
Reply With Quote
  #4  
Old 04-13-2017, 06:18 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your condition, try using:

HTML Code:
is_member_of($bbuserinfo, array(5,6,7))
Reply With Quote
  #5  
Old 04-13-2017, 06:29 PM
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried it and i still have the parse error...
Reply With Quote
  #6  
Old 04-13-2017, 07:37 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-14-2017, 03:50 AM
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 04-14-2017, 06:30 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Reply With Quote
  #9  
Old 04-20-2017, 07:28 AM
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is great ! thanks a lot.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04764 seconds
  • Memory Usage 2,239KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete