Hiding Richest Users Amount

Status
Not open for further replies.

etrd

Customer
I understand the richest users tab on credits popup couldn't be removed or you're reluctant on doing it based on the search I made on how to remove the richest users tab. So we'll just hide the amounts shown below their usernames.

Which template and code needs editing to achieve that?

Our reason for hiding it is anonymity. When our members make a donation they receive corresponding credits which is a public knowledge. Most top donors/donators want their donations to be anonymous and showing them in the richest users tab along with their total credits defeats that. Everyone will know how much they donated by converting their total credits to real currency.
 
We've determined which block of codes displays the amounts and decided to allow only the admins to have access to the information by adding conditional statement like so...

Code:
<xf:if is="$xf.visitor.is_admin">

                <xf:if is="$overlay">
                    <a href="{{ link('dbtech-credits/currency', $currency, {'user_id': $user.user_id}) }}" data-xf-click="overlay">{$currency.prefix}{{ $currency.getValueFromUser($user, true) }}{$currency.suffix} {{ $currency.title }}</a>
                <xf:else />
                    {$currency.prefix}{{ $currency.getValueFromUser($user) }}{$currency.suffix} {{ $currency.title }}
                </xf:if>               

</xf:if>
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,257
Customer rating
5.00 star(s) 4 ratings
Back
Top