Log in

View Full Version : Show Thread Enhancements - imlinks conditional


LifesGreatestGift
04-04-2012, 10:00 PM
Have yet to find any information about applying a div or element around the IM links only if they are visible in the users post so here is the conditional and how you could use it.

<vb:if condition="($post['yahooicon'] != '') || ($post['icqicon'] != '') || ($post['aimicon'] != '') || ($post['msnicon'] != '') || ($post['skypeicon'] != '')"><div class="imlinks"></vb:if>
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
<vb:if condition="($post['yahooicon'] != '') || ($post['icqicon'] != '') || ($post['aimicon'] != '') || ($post['msnicon'] != '') || ($post['skypeicon'] != '')"></div></vb:if>

Feel free to style as needed. Its just saying that if any IM links show in the post, show a div around it. A lot of times people will just place a div around the IM links, but if a post/user doesn't have any IM links active in their account then it will show an empty div.

If you have no idea what I am talking about then chances are you do not need to use this modification. :)

v123shine
04-10-2012, 07:22 PM
Thank You :)