PDA

View Full Version : Little Question


Stormraven
06-18-2009, 01:41 AM
I have done some work on some css boxes to go around the join date, location, post count in the postbit_legacy template page. I have put boxes around everything, including the aim, icq, msn and skype icons. Although if no one fills in their icq, msn, skype and aim details then the box still appears with nothing in it. I have pointed it out in the screenshot below:

You may have to look hard because the empy box is below the one with the mood icon in it:
http://img189.imageshack.us/img189/1063/capturecgr.jpg.

How can I get rid of that box, but for only the people who don't enter their aim, icq, msn and skype details?

Kind Regards
Stormraven.

--------------- Added 1245334647 at 1245334647 ---------------

No one going to help me?

--------------- Added 1245334791 at 1245334791 ---------------

No one going to help me?

--------------- Added 1245376780 at 1245376780 ---------------

Bump :(

Lynne
06-19-2009, 01:51 AM
You would have to put a condition around the box. Something like:
<if condition="$post[icqicon]">
then show it
</if>

Stormraven
06-19-2009, 02:22 AM
Around which bit? Is it somwhere in this code? I tryed to put it somewhere here but all the icons dissapeared even if somone had entered their aim names etc.

$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div><br />

Lynne
06-19-2009, 02:44 AM
Put a conditon around this part:
<div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

<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>

Stormraven
06-19-2009, 02:53 AM
Brilliant, worked like a charm. Thankyou so much Lynne.

Kind Regards
Stormraven.