Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2014, 11:03 AM
cpaulet cpaulet is offline
 
Join Date: May 2014
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default reputation points can't be hidden

hello,

I enabled users' option to hide / show reputtation and i changed picture for reputation points in posts, but unfortunately it doesn(
work, i had a look on the web but didn't find any answer to this, here's my template code :
Code:
    <vb:if condition="$show['reputation']">
     <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw    post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
      Reputation : {vb:raw post.reputation}
</span>
</vb:if>
how can i manage to make it work together please ?
Reply With Quote
  #2  
Old 05-21-2014, 01:44 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cpaulet View Post
hello,

I enabled users' option to hide / show reputtation and i changed picture for reputation points in posts, but unfortunately it doesn(
work, i had a look on the web but didn't find any answer to this, here's my template code :
Code:
    <vb:if condition="$show['reputation']">
     <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw    post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
      Reputation : {vb:raw post.reputation}
</span>
</vb:if>
how can i manage to make it work together please ?
Have you looked in settings, I think ( not 100%) that you can disable it in there.
Reply With Quote
  #3  
Old 05-21-2014, 01:55 PM
cpaulet cpaulet is offline
 
Join Date: May 2014
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, i know, but that's not my point, because option is present for users in usercp, but if they choose hide or show, reputation is always displayed as it shouldn't be ...
Reply With Quote
  #4  
Old 05-21-2014, 06:29 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reputation points don't show by default at all. That is something you added.
Reply With Quote
  #5  
Old 05-22-2014, 07:32 AM
cpaulet cpaulet is offline
 
Join Date: May 2014
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, that's something i added because we didn't want pic
Reply With Quote
  #6  
Old 05-22-2014, 05:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need a plugin to do this. If you had the images and they chose not to show their reputation, then you see gray bars instead of green bars. The $show['reputation'] variable isn't used for what you think it is used for - it isn't the user setting, it just defines whether reputation is enabled on the site. You want to use the hook location "reputation_image" for this.
Reply With Quote
  #7  
Old 05-23-2014, 09:01 AM
cpaulet cpaulet is offline
 
Join Date: May 2014
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne for answer, i understood that show reputation condition was about enable or disable thing from admincp, but i was wondering if there were a simple hack to avoid installing a plugin like a condition -> if grey image, don't show
Reply With Quote
  #8  
Old 05-23-2014, 06:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, well, if I disable reputation for me on my forum, then the image is:

/reputation_off.png

The template has:

<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />

So, I'm guessing that if $row['posneg'] is equal to 'off' then it is set to No? So perhaps try that?
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 01:50 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.04170 seconds
  • Memory Usage 2,224KB
  • Queries Executed 11 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_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