• 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?

Joshua

Active member
#1
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>
Code:
<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!
 
R

ragtek

Guest
#2
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?
 

Joshua

Active member
#3
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.