Announcement

Collapse
No announcement yet.

If condition for IM's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] If condition for IM's

    Anyone know the If condition for IM's i cant seem to find it anywhere
    Thanks
    Code:
    <div class="imlinks">
    					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
    				</div>

  • #2
    For IMs in what way? If they exist? If they are active? If??? I would guess there is none unless you define one.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      Originally posted by Lynne View Post
      For IMs in what way? If they exist? If they are active? If??? I would guess there is none unless you define one.
      Hi Lynne
      If they are active i want them to show you see i use some custom CSS "to add small boxes around info in the postbit, And the IM's box seem to show even if a user has not added any info

      Example of the boxes
      Click image for larger version

Name:	example.jpg
Views:	1
Size:	49.2 KB
ID:	3681297

      Thanks

      Comment


      • #4
        On my 4.1.1 site, it only shows if a user has entered text for it. So, if I only entered AIM info, only the AIM button shows. It isn't showing them all on your site - I only see the msn one (I think that's it). The others you have there, facebook, twitter, youtube, are custom fields. There is an article in the Quick Tips forum on how to enter those into your postbit to only show if they exist.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment


        • #5
          Originally posted by Lynne View Post
          On my 4.1.1 site, it only shows if a user has entered text for it. So, if I only entered AIM info, only the AIM button shows. It isn't showing them all on your site - I only see the msn one (I think that's it). The others you have there, facebook, twitter, youtube, are custom fields. There is an article in the Quick Tips forum on how to enter those into your postbit to only show if they exist.
          Yea i they dont show unless you enter the AIM info but you see i have this CSS box

          Click image for larger version

Name:	example.jpg
Views:	1
Size:	20.0 KB
ID:	3681299
          There is a Image of a user without a AIM entered

          also here is the code i have so far maybe it might help

          Code:
          <div class="mai_postbit"> 
          <div class="imlinks">
          					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
          <vb:if condition="$post['field5']">
          <a target ="blank" href="{vb:raw post.field5}"><img src="images/postbit_social/twitter.png" alt="Follow {vb:raw post.username} On Twitter" /></a>
          </vb:if>
          <vb:if condition="$post['field6']">
          <a target ="blank" href="{vb:raw post.field6}"><img src="images/postbit_social/facebook.png" alt="Add {vb:raw post.username} on Facebook" /></a>
          </vb:if>
          <vb:if condition="$post['field8']">
          <a target ="blank" href="{vb:raw post.field8}"><img src="images/postbit_social/bebo.png" alt="Add {vb:raw post.username} on Bebo" /></a>
          </vb:if>
          <vb:if condition="$post['field7']">
          <a target ="blank" href="{vb:raw post.field7}"><img src="images/postbit_social/myspace.png" alt="Add {vb:raw post.username} on MySpace" /></a>
          </vb:if>
          <vb:if condition="$post['field10']">
          <a target ="blank" href="{vb:raw post.field10}"><img src="images/postbit_social/justintv.png" alt="Visit {vb:raw post.username}'s Justin.tv Channel" /></a>
          </vb:if>
          <vb:if condition="$post['field9']">
          <a target ="blank" href="{vb:raw post.field9}"><img src="images/postbit_social/youtube.png" alt="Visit {vb:raw post.username}'s Youtube Channel" /></a>
          </vb:if>
          <vb:if condition="$post['field11']">
          <a target ="blank" href="{vb:raw post.field11}"><img src="images/postbit_social/vimeo.png" alt="Visit {vb:raw post.username}'s Vimeo Channel" /></a>
          </vb:if>
                          </div>  </div>
          Thanks

          Am trying to add this "<div class="mai_postbit"> " in the IF condition if there is one or can be done

          Comment


          • #6
            If you don't want the box to show if they don't have any of that info inputed, then you would need one big condition around the entire thing.

            HTML Code:
            <vb:if condition="$post['icqicon'] OR $post['aimicon'] etc. OR $post['field5'] OR $post['field6'] OR $post['field7'] etc ">
            div for all icons
            </vb:if>

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools &lt;- awesome site for html/css help

            Comment


            • #7
              Thanks Lynne Works great <3

              Mike

              Comment

              Related Topics

              Collapse

              Working...
              X