View Full Version : reputation points can't be hidden
cpaulet
05-21-2014, 11:03 AM
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 :
<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 ?
Spangle
05-21-2014, 01:44 PM
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 :
<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.
cpaulet
05-21-2014, 01:55 PM
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 ...
Zachery
05-21-2014, 06:29 PM
Reputation points don't show by default at all. That is something you added.
cpaulet
05-22-2014, 07:32 AM
yes, that's something i added because we didn't want pic
Lynne
05-22-2014, 05:19 PM
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.
cpaulet
05-23-2014, 09:01 AM
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
Lynne
05-23-2014, 06:05 PM
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.