• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Use spam cleaner without permission to see email address?

ForestForTrees

Well-known member
#1
Is it possible to give someone access to use the spam cleaner but not give them access to see members' email addresses?

Many people have their full name in their email address. Our forum talks about very confidential issues. I'd feel more comfortable giving people access to use the spam cleaner without giving them access to see the email addresses of all newer members.
 

ForestForTrees

Well-known member
#3
Thanks!

I wrapped the template code for the email address ("<dt>{xen: Phrase email}:</dt> <dd>{$user.email}</dd>") with code that will make it only appear when the viewer can view IP addresses. It's hackish, but it suits our forum well. I figure that if they can't see all newcomers IP numbers, they shouldn't be able to see their email addresses either, especially when email addresses often have full names.

Here is what it looked like after being wrapped:
Code:
<xen:if is="{$canViewIps}">
                <dt>{xen:phrase email}:</dt>
                    <dd>{$user.email}</dd>
</xen:if>
See also:
https://xenforo.com/community/threads/use-spam-cleaner-without-seeing-ip-address.114510/

Thanks for your help! Stunningly rapid as usual.