The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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> |
#2
|
|||
|
|||
Quote:
|
#3
|
|||
|
|||
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 ...
|
#4
|
||||
|
||||
Reputation points don't show by default at all. That is something you added.
|
#5
|
|||
|
|||
yes, that's something i added because we didn't want pic
|
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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
|
#8
|
||||
|
||||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|