View Full Version : Forum Display Enhancements - Hide IM Icons from guests in Postbit
Dragonsys
10-19-2008, 09:00 PM
The only posted Mods I found for hiding Contact info from guests was for the profile page.
This will hide the Instant Messaging Icons on post pages from guests.
Its a very simple and easy MOD.
In the postbit & postbit_legacy templates
Find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Replace With:
<if condition="$show['member']">
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</if>
Hope someone finds it useful.
CLUB AMPLE
10-20-2008, 02:57 PM
works like a charm... and i reused the conditionals to hide the entire contact info block in members profiles. thanks for posting this
iogames
10-21-2008, 03:29 PM
what about:
MySpace & FaceBook?
https://vborg.vbsupport.ru/showthread.php?t=160232&highlight=myspace
Eq4bits
10-22-2008, 01:33 PM
I would imagine you could just move your closing 'if' to after those.
i.e.:
<if condition="$show['member']">
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<!-- Myspace start -->
<if condition="$post[field6]"><a href="http://www.myspace.com/$post[field6]" alt="View my myspace" target="_blank">
<img src="images/misc/im_myspace.gif" border="0"></a>
</if>
<!-- Myspace end -->
<!-- Facebook start -->
<if condition="$post[field8]"><a href="http://www.facebook.com/profile.php?id=$post[field8]" alt="Go to my Facebook" target="_blank">
<img src="images/misc/facebook.gif" border="0"></a>
</if>
<!-- Facebook end -->
<!-- Twitter start -->
<if condition="$post[field7]"><a href="http://www.twitter.com/$post[field7]" alt="Go to my Twitter" target="_blank">
<img src="images/misc/twitter.gif" border="0"></a>
</if>
<! --Twitter end -->
</div></if>Screenshots in attachments below (postbit-members & postbit-guests)
CLUB AMPLE
10-22-2008, 09:07 PM
what about:
MySpace & FaceBook?
https://vborg.vbsupport.ru/showthread.php?t=160232&highlight=myspace
ok now im wondering about how to apply a minimum post count conditional to this
Dragonsys
10-25-2008, 03:44 AM
ok now im wondering about how to apply a minimum post count conditional to this
try this
<if condition="$post[postcount] > 1">
Dragonsys
10-25-2008, 03:51 AM
I would imagine you could just move your closing 'if' to after those.
i.e.:
<if condition="$show['member']">
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<!-- Myspace start -->
<if condition="$post[field6]"><a href="http://www.myspace.com/$post[field6]" alt="View my myspace" target="_blank">
<img src="images/misc/im_myspace.gif" border="0"></a>
</if>
<!-- Myspace end -->
<!-- Facebook start -->
<if condition="$post[field8]"><a href="http://www.facebook.com/profile.php?id=$post[field8]" alt="Go to my Facebook" target="_blank">
<img src="images/misc/facebook.gif" border="0"></a>
</if>
<!-- Facebook end -->
<!-- Twitter start -->
<if condition="$post[field7]"><a href="http://www.twitter.com/$post[field7]" alt="Go to my Twitter" target="_blank">
<img src="images/misc/twitter.gif" border="0"></a>
</if>
<! --Twitter end -->
</div></if>Screenshots in attachments below (postbit-members & postbit-guests)
yep, what he said
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.