blind-eddie
04-30-2012, 02:39 PM
Is anyone else having issues with setting custom profile fields to private & dis-allowing all usergroups but admins usergroup to see private fields that all usergroups can still see and use private custom profile fields?
I created two seperate custom profile fields, one for registered users, allowed by all & one for admins, set to private. When viewing general settings through registered user test account I can still see & use the private field for admins that is set to private.
How can I set permissions for custom profile fields to hide the option to see it in General Settings without adding code to the userfield_wrapper template for all but admins usergroup but display the output?
I added the following to the userfield_wrapper template & it will hide the option from showing in general settings from all but admins. But, this will hide the output of selected option in postbit to all users but admin.
<vb:if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(6)) OR is_member_of($bbuserinfo, 6))">
userfield_wrapper template contents
</vb:if>
I created two seperate custom profile fields, one for registered users, allowed by all & one for admins, set to private. When viewing general settings through registered user test account I can still see & use the private field for admins that is set to private.
How can I set permissions for custom profile fields to hide the option to see it in General Settings without adding code to the userfield_wrapper template for all but admins usergroup but display the output?
I added the following to the userfield_wrapper template & it will hide the option from showing in general settings from all but admins. But, this will hide the output of selected option in postbit to all users but admin.
<vb:if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(6)) OR is_member_of($bbuserinfo, 6))">
userfield_wrapper template contents
</vb:if>