Display a customized Avatar when hidden by Privacy

8 years 4 months ago - 8 years 4 months ago #274547 by nant

pranaydhruv wrote: Kyle updated that when a field is hidden by the privacy plugin, only HTML output gets hidden or becomes empty. that is why u see the space or blank in one of the IF conditions, the other condition means a scenario when the avatar field value is not equal to 1, which means it has nothing in it.


That is correct but substitutions are not affected by this and will always render the avatar path/file.

The privacy plugin acts on the field rendering by CB and does not affect the substitution value.

I do not think you can do what you want.

Kyle's input:
You can't. CB Conditional is the only option. CB Privacy does not and never will hide PHP values, which is what IF substitutions use.

Please Log in to join the conversation.

8 years 4 months ago #274630 by pranaydhruv
Replied by pranaydhruv on topic Display a customized Avatar when hidden by Privacy
Hello Nant,

i tried another way after your last post, i created a 2nd avatar field

field type= Image
Tab= Potrait

and conditioned it such :-

field condition self
field ->value
value=[avatar]
translate=no
is equal to
value =
mode= show

but that doesnt display the new avatar field even when condition matches.

Thanks
Pranay

Please Log in to join the conversation.

8 years 4 months ago #274667 by nant

pranaydhruv wrote: Hello Nant,

i tried another way after your last post, i created a 2nd avatar field

field type= Image
Tab= Potrait

and conditioned it such :-

field condition self
field ->value
value=[avatar]
translate=no
is equal to
value =
mode= show

but that doesnt display the new avatar field even when condition matches.

Thanks
Pranay


That won;t work - please re-read my last post - Kyle mentioned that only approach would be CB Conditionals.

Please Log in to join the conversation.

8 years 4 months ago #274716 by pranaydhruv
Replied by pranaydhruv on topic Display a customized Avatar when hidden by Privacy
Dear Nant,

I am using CB conditions off of the 2nd Avatar field which i have placed on the potrait tab, the conditioning is such that it will only displays when the original Avatar is hidden by Privacy plugin.


Thanks
Pranay

Please Log in to join the conversation.

8 years 4 months ago #274760 by nant

pranaydhruv wrote: Dear Nant,

I am using CB conditions off of the 2nd Avatar field which i have placed on the potrait tab, the conditioning is such that it will only displays when the original Avatar is hidden by Privacy plugin.


Thanks
Pranay


So is this working?
If not please post a screenshot of your condition.

Please Log in to join the conversation.

8 years 4 months ago #274838 by pranaydhruv
Replied by pranaydhruv on topic Display a customized Avatar when hidden by Privacy
Dear Nant,

it's not working, Please find the screenshots of the condition from the 2nd Avatar field
Attachments:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn