Quote:
Originally Posted by powerful_rogue
Managed to get it working.
Quote:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon] OR $post[field6]"><div class="nzbpostbit">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] <!-- Facebook display start -->
<if condition="$post[field6]"><a href="http://www.facebook.com/profile.php?id=$post[field6]" alt="View my Facebook" target="_blank">
<img src="images/misc/facebook.gif" border="0"></a></div>
</if><!-- Facebook display end --> </div></if>
</div>
|
I had to add the bolded bit into the code, otherwise the facebook icon would only show if someone had MSN/ICQ etc
|
Quote:
Originally Posted by SLY LS1
thats already in your code
The facebook icon will only show if you have it filled in on your profile.
|
powerful_rogue is right, your not realizing what he is saying. If a user doesn't have an MSN or Yahoo listed in their profile, then the FaceBook button WILL NOT SHOW UP regardless if they have any info listed in their facebook field or not. So let's say a user has listed info in their facebook field but they haven't listed a yahoo or msn etc, then the facebook button will not show up.
You have to add OR $post[field6] after $post[skypeicon] so it looks like this
Code:
$post[skypeicon] OR $post[field6]