Quote:
Originally Posted by turnipofdoom
You can do something like
PHP Code:
<if condition="$druid > 0">
<div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"> Druid: $druid</div>
</if>
Inside your display template. You would need to do one if condition for each class
|
Awsome!
Thats what i needed!
I used this code:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit"
src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
<tr>
<td class="$getbgrow">
<if condition="$assassin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
</if>
<if condition="$berserker <> "Closed"">
<div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
</if>
<if condition="$brigand <> "Closed"">
<div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
</if>
<if condition="$bruiser <> "Closed"">
<div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
</if>
<if condition="$coercer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
</if>
<if condition="$conjuror<> "Closed"">
<div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
</if>
<if condition="$defiler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
</if>
<if condition="$dirge <> "Closed"">
<div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
</if>
<if condition="$fury <> "Closed"">
<div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
</if>
<if condition="$guardian <> "Closed"">
<div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
</if>
<if condition="$illusionist <> "Closed"">
<div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
</if>
<if condition="$inquisitor <> "Closed"">
<div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
</if>
<if condition="$monk <> "Closed"">
<div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
</if>
<if condition="$mystic <> "Closed"">
<div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
</if>
<if condition="$necromancer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
</if>
<if condition="$paladin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
</if>
<if condition="$ranger <> "Closed"">
<div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
</if>
<if condition="$swashbuckler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
</if>
<if condition="$shadowknight <> "Closed"">
<div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
</if>
<if condition="$templar <> "Closed"">
<div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
</if>
<if condition="$troubador <> "Closed"">
<div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
</if>
<if condition="$warden <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
</if>
<if condition="$warlock <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
</if>
<if condition="$wizard <> "Closed"">
<div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
</if>
</td>
</tr>
</td>
</tr>
</tbody>
</table>
<br />
All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.
check it out
here