I did a postbit_legacy change this morning to recreate member social networking and related hobby site accounts to their profile on my site.
In this, I added "Find me on:" which will then show all of the social accounts
However, I don't want the "Find me on:" to appear if they choose to not provide anything.
SO, I did add the following, and tied it to one of the profile fields used for this
Code:
<vb:if condition="$post['field32']">
<B><SIZE=5>Find me on:<br /></B><?SIZE></vb:if>
Here is a visual
The problem is if they dont link their Twitter account (Field32 on my site), the verbiage does not appear
Thus, my thinking on using an OR condition with the fields, but I am not 100% sure if I can array this in the following manner
Code:
<vb:if condition="in_array($post['field'], array(32,X,Y))">
or if there would be a better route for this handling this