Back to vBulletin 4.x Template Modifications

imlinks conditional
Mod Version: 1.00, by LifesGreatestGift

vB Version: 4.1.11 Rating: (1 vote - 5.00 average) Installs: 6
Released: 05 Apr 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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.

Code:
<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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024