I am using Community builder pro in my CB 1.4 site.
Using that extension one can define to show or hide a content if a field does include or not include something, like
{SHOW_IF name=david}this content{/SHOW_IF}
Now What I want to do is to make the user to be able to set privacy of each field with following options:
public
Connections
Co-Workers
Friends
...
Basically user to adjust which information can be seen by who?
To do this, I can define a field for each specific field, say privacy_phone with multi-select where user can select for instane if public or connections (even connection types) can see his/her phone number. This will be selected in the Profiel Edit Page.
Now on the profile page, I will have something like
{SHOW_IF privacy_phone=connections} AAAAAA {/SHOW_IF}
Instead of AAAAA I am looking for a CB code which checks if visitor is users connection or even co-worker type connection and then displays the field (phone in this case).
Any code suggestion would be great help.