In posts I want all avatars to show as normal unless you are in certain groups. If you are in certain groups I want defaul avatars to show instead of the ones the member may have picked...For some reason my code keeps getting rejected. Any help as to why?
Code:
<if condition="$show['avatar']">
<if condition="$post[usergroupid] == 10">
<br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/10.gif" border="0" /></center>
<else />
<if condition="$post[usergroupid] == 11">
<br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/11.gif" border="0" /></center>
<else />
<if condition="$post[usergroupid] == 32">
<br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/32.gif" border="0" /></center>
<else />
<if condition="$post[usergroupid] == 33">
<br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/33.gif" border="0" /></center>
<else />
<br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] border="0" /></a></center>
</if>
</if>
My error keeps coming up with the first line of the conditional - now I was fooling around it with and I removed the ' ' around avatar that got me past the error - but then it wanted me to remove all of the single qoutes so I dont think that is the issue. I also know that I have to duplicate the usergroup code outside of the $show['avatar'] conditional for members that are in these 4 groups but have not picked an avatar...that works fine - just seems that the problem is the <if> inside of an <if> that is the issue.