We use CB Content to let modules of one user (197) to appear on pages of other users.
This works fine until cb:if clauses involved. Code of CB Content module in text field:
[cb:if cb_field != ""][cb:userfield field="cb_field" user="197" reason="list" /]<br>[/cb:if]
Code above does not work properly as it displays content of user_id=197 only when field of user_id # 197 is not empty.
This is not intended and leads to mixup of data displayed.
This may be resolved by the following which would force to check for data of user_id=197 and not of a viewing user:
[cb:if [cb:userdata field="cb_field" user="197" /] !=""][cb:userfield field="cb_field" user="197" reason="list" /]<br>[/cb:if]
Is this proper syntax?
Thanks in advance.