Quote:
Originally Posted by moonclamp
Unfortunately there was something wrong with the if condition ... it displayed for everyone regardless of whether they had a picture or not, even non-members.
|
Ok , try this. If I had a way to test this, I would. My site does not use profile pics and has it disabled. I would as always recommend that you use a "test style" if you dont already. Just so your users arent affected.
Code:
<!-- Empty Profile Field Notification by Stangsta -->
<if condition="$bbuserinfo[usergroupid] == 1">
<else />
<if condition="$show['profilepic']">
<else />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="5">
<strong><font color="#FF9933">ATTENTION:</font> You have not created a <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"Profile Picture" </a>for your profile.</strong>
</td>
</tr>
</if></if>
<!-- / Empty Profile Fields Notification by Stangsta -->
or this
Code:
<!-- Empty Profile Field Notification by Stangsta -->
<if condition="$bbuserinfo['usergroupid'] == 1 OR $show['profilepic'] ">
<else />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="5">
<strong><font color="#FF9933">ATTENTION:</font> You have not created a <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"Profile Picture" </a>for your profile.</strong>
</td>
</tr>
</if>
<!-- / Empty Profile Fields Notification by Stangsta -->
I know im close on this.