wacnstac
01-08-2006, 12:05 AM
Below is the implementation that I have so far. I want to display a sponsoring member logo if the user is a sponsoring member and only if they have chosen to identify themselves in this group. If they are a sponsoring member I do not want to display the normal rank. If they are not a sponsoring member I do want to display the rank icon(s) only. I have two usergroups that are sponsoring member usergroups as you can see below. This hack almost works, except it seems to display both the sponsoring member icon and the rank icons for some but not all users. Can't explain it, can anyone else?
<!-- <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> -->
<!-- rank hack -->
<if condition="is_member_of($post,94)">
<div class="smallfont"><a href="payments.php"><img src="images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br />
<else />
<if condition="is_member_of($post,94)">
<div class="smallfont"><a href="payments.php"><img src="images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br />
<else />
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if></if></if>
<!-- end rank hack -->
<!-- <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> -->
<!-- rank hack -->
<if condition="is_member_of($post,94)">
<div class="smallfont"><a href="payments.php"><img src="images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br />
<else />
<if condition="is_member_of($post,94)">
<div class="smallfont"><a href="payments.php"><img src="images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br />
<else />
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if></if></if>
<!-- end rank hack -->