vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Hide IM Icons from guests in Postbit (https://vborg.vbsupport.ru/showthread.php?t=194061)

Dragonsys 10-19-2008 10:00 PM

Hide IM Icons from guests in Postbit
 
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:
Code:

                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Replace With:
Code:

<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 03: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 04:29 PM

what about:

MySpace & FaceBook?
https://vborg.vbsupport.ru/showthrea...hlight=myspace

Eq4bits 10-22-2008 02:33 PM

I would imagine you could just move your closing 'if' to after those.
i.e.:
Code:

<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 10:07 PM

Quote:

Originally Posted by iogames (Post 1649793)

ok now im wondering about how to apply a minimum post count conditional to this

Dragonsys 10-25-2008 04:44 AM

Quote:

Originally Posted by CLUB AMPLE (Post 1650754)
ok now im wondering about how to apply a minimum post count conditional to this

try this
Code:

<if condition="$post[postcount] > 1">

Dragonsys 10-25-2008 04:51 AM

Quote:

Originally Posted by Eq4bits (Post 1650475)
I would imagine you could just move your closing 'if' to after those.
i.e.:
Code:

<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


All times are GMT. The time now is 09:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01120 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete