![]() |
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']"> |
Quote:
|
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 ...
|
Reputation points don't show by default at all. That is something you added.
|
yes, that's something i added because we didn't want pic
|
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.
|
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
|
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? |
All times are GMT. The time now is 11:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|