The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey guys.
Here is what is going on. I made a template edit in which there is a table around the IM icons on the Postbit. The problem is, when the user does not have any information in the IM slots in their profile, the table still appears in the postbit. Look here for an example of what is going on: http://www.roninleague.com/showthread.php?t=1 Look under second post on the thread. See how it is just a table underneath the activity modification. I need an IF statement so that the table only appears in the user has entered in IM information in their profile. I do not know what the condition of the IF statement should be. Any help would be appreciated. Thanks in advance. |
#2
|
|||
|
|||
![]()
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
this goes in postbit and postbit_legacy if you use it. |
#3
|
|||
|
|||
![]() HTML Code:
<div class="pbitspacer"><div class="pbit" align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> If you would read above, I stated that I had put a table around the icons. If those $post values do not pose true, then the table STILL appears. I need an IF statement for the table. |
#4
|
||||
|
||||
![]()
Its not an <if> conditional you should be using. If I understand what you are needing done, you need to use <else />
|
#5
|
|||
|
|||
![]()
How can I use an <else /> statement without an <if> statement...they are layered programming commands.
Seems like I should just not put a table there...lol |
#6
|
|||
|
|||
![]()
<if condition="$post[aimicon]">table blah blah $post[aimicon] end table</if>
|
#7
|
|||
|
|||
![]()
But then the table won't show if there is no AIM info.
You'd have to do Code:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]"><div class="pbitspacer"><div class="pbit" align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></div></if> ![]() |
#8
|
|||
|
|||
![]()
anyway to get this working with vb4.20 ?
I tried the below code and it wont allow to save due to an error <if condition="{vb:raw post.icqicon} OR {vb:raw post.aimicon} OR {vb:raw post.msnicon} OR {vb:raw post.yahooicon} OR {vb:raw post.skypeicon}"> <div class="imlinks"> <div class="post_field"> {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon} </div></div></if> |
#9
|
||||
|
||||
![]()
In vb4 its now <vb:if>...</vb:if> and you can't use the {vb: . . . } notation in conditions, you'd need to use $post['icqicon'] etc.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|