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

Show custom fields to Admin and Mods only?

Discussion in 'Styling and Customization Questions' started by Joshua, Aug 10, 2012.

  1. Joshua

    Joshua Active Member

    I have a forum for a local club that takes private info like home address and phone number in a custom profile field. I want to make these custom profile fields available to mods and admins only. I tried editing member_view template by adding the following to the beginning of the custom_field_view section. Obviously I ended it with the proper < / xen:if>
    <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}">
    This seems like it would work except that it fails permissions testing. Any ideas?

    Thanks in advance!
  2. ragtek

    ragtek Guest

    it's failing perm. check?

    1. you can also add it to only the necessary fields. (just add the condition to the custom field v
    alue Display HTML: field

    2. are you sure it failed the perm check?
  3. Joshua

    Joshua Active Member

    Yes, when I use Test Permissions, I can still see the custom fields even though the user I'm testing is not an admin OR mod.
  4. ragtek

    ragtek Guest

  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page