The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Postbit Editting
Hi Guys,
I am setting up this: https://vborg.vbsupport.ru/showthrea...light=postbit* The trouble I have run into, is I would also like to have it around the ICQ, MSN, etc icons, however not everyone with have them. So I am looking for a way to only show the div when they actually have one of the above on their account, that way I dont end up with a box with nothing in it. Current code: Code:
$template_hook[postbit_userinfo_right] <div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> </div> THANKS! |
#2
|
|||
|
|||
If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.
|
#3
|
|||
|
|||
Quote:
Thanks! |
#4
|
||||
|
||||
Something like this should work (not tested):
HTML Code:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]"> <div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> </if> |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
You may have to put single quotes around the variables in the condition, ie $post['icqicon'], or if you have a condition above that one, you may have to combine them.
|
#7
|
|||
|
|||
Quote:
Code:
<if condition="'$post[icqicon]' OR '$post[aimicon]' OR '$post[msnicon]' OR '$post[yahooicon]' OR '$post[skypeicon]'"> <center><div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></center> </if> |
#8
|
||||
|
||||
If the div is still being read, then the condition is not working. Did you try what I suggested?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|