1. 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?

Discussion in 'XenForo Questions and Support' started by ForestForTrees, Apr 1, 2016.

  1. ForestForTrees

    ForestForTrees Well-Known Member

    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.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the template to remove it.
     
    ForestForTrees likes this.
  3. ForestForTrees

    ForestForTrees Well-Known Member

    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.
     

Share This Page