IE we have 5 priests we want 10. So it would either display something that requitment is xfull or low meidum hjigh or closed for that class.
if low meidum or high it will allow you to click the application page.
is there already a module that will work, if I just have to modify it?
I found this code yet it wont work in a core/php block
Code
<?php>
//var for how many we need
$druid_n = '1';
$hunter_n = '1';
$mage_n = '1';
$paladin_n = '1';
$priest_n = '1';
$rogue_n = '1';
$shaman_n = '1';
$warlock_n = '1';
$warrior_n = '1';
//var for how many we have
$druid_h = '1';
$hunter_h = '1';
$mage_h = '1';
$paladin_h = '1';
$priest_h = '1';
$rogue_h = '1';
$shaman_h = '1';
$warlock_h = '1';
$warrior_h = '1';
//Forum link for recruitment
$forumlink = 'index.php?module=FormExpress&func=display_form&form_id=3';
//Links name
$forumlinkname = 'Apply Here!';
//Table border
$border = '0';
$w = '20px';
$h = '20px';
//block content
$content .= '<center><table width="100%" border="'.$border.'">
<tr><td class="row2" colspan="2"><center>Class</center></td><td class="row2" >H</td><td class="row2" >N</td></tr>
<td class="row1"><img src="../roster/images/Ability_Druid_Maul.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Druid</td>
<td class="row1">'.$druid_h.'</td>
<td class="row1">'.$druid_n.'</td>
</tr>
<tr>
<td class="row2"><img src="../roster/images/Icons/INV_Weapon_Bow_08.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Hunter</td>
<td class="row2">'.$hunter_h.'</td>
<td class="row2">'.$hunter_n.'</td>
</tr>
<tr>
<td class="row1"><img src="..roster/images/Interface/Icons/INV_Staff_13.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Mage</td>
<td class="row1">'.$mage_h.'</td>
<td class="row1">'.$mage_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/Spell_Fire_FlameTounge.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Paladin</td>
<td class="row2">'.$paladin_h.'</td>
<td class="row2">'.$paladin_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/Spell_Holy_LayOnHands.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Priest</td>
<td class="row1">'.$priest_h.'</td>
<td class="row1">'.$priest_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/INV_ThrowingKnife_04.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Rogue</td>
<td class="row2">'.$rogue_h.'</td>
<td class="row2">'.$rogue_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/Spell_Nature_BloodLust.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Shaman</td>
<td class="row1">'.$shaman_h.'</td>
<td class="row1">'.$shaman_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/Spell_Shadow_Cripple.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Warlock</td>
<td class="row2">'.$warlock_h.'</td>
<td class="row2">'.$warlock_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/INV_Sword_25.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Warrior</td>
<td class="row1">'.$warrior_h.'</td>
<td class="row1">'.$warrior_n.'</td>
</tr>
<tr>
<td class="row2" colspan="4"><center><a href="'.$forumlink.'">'.$forumlinkname.'</a></center></td>
</tr>
</table></center>';
</?php>
//var for how many we need
$druid_n = '1';
$hunter_n = '1';
$mage_n = '1';
$paladin_n = '1';
$priest_n = '1';
$rogue_n = '1';
$shaman_n = '1';
$warlock_n = '1';
$warrior_n = '1';
//var for how many we have
$druid_h = '1';
$hunter_h = '1';
$mage_h = '1';
$paladin_h = '1';
$priest_h = '1';
$rogue_h = '1';
$shaman_h = '1';
$warlock_h = '1';
$warrior_h = '1';
//Forum link for recruitment
$forumlink = 'index.php?module=FormExpress&func=display_form&form_id=3';
//Links name
$forumlinkname = 'Apply Here!';
//Table border
$border = '0';
$w = '20px';
$h = '20px';
//block content
$content .= '<center><table width="100%" border="'.$border.'">
<tr><td class="row2" colspan="2"><center>Class</center></td><td class="row2" >H</td><td class="row2" >N</td></tr>
<td class="row1"><img src="../roster/images/Ability_Druid_Maul.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Druid</td>
<td class="row1">'.$druid_h.'</td>
<td class="row1">'.$druid_n.'</td>
</tr>
<tr>
<td class="row2"><img src="../roster/images/Icons/INV_Weapon_Bow_08.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Hunter</td>
<td class="row2">'.$hunter_h.'</td>
<td class="row2">'.$hunter_n.'</td>
</tr>
<tr>
<td class="row1"><img src="..roster/images/Interface/Icons/INV_Staff_13.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Mage</td>
<td class="row1">'.$mage_h.'</td>
<td class="row1">'.$mage_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/Spell_Fire_FlameTounge.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Paladin</td>
<td class="row2">'.$paladin_h.'</td>
<td class="row2">'.$paladin_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/Spell_Holy_LayOnHands.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Priest</td>
<td class="row1">'.$priest_h.'</td>
<td class="row1">'.$priest_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/INV_ThrowingKnife_04.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Rogue</td>
<td class="row2">'.$rogue_h.'</td>
<td class="row2">'.$rogue_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/Spell_Nature_BloodLust.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Shaman</td>
<td class="row1">'.$shaman_h.'</td>
<td class="row1">'.$shaman_n.'</td>
</tr>
<tr>
<td class="row2"><img src="/images/wowrosterdf/Interface/Icons/Spell_Shadow_Cripple.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row2">Warlock</td>
<td class="row2">'.$warlock_h.'</td>
<td class="row2">'.$warlock_n.'</td>
</tr>
<tr>
<td class="row1"><img src="/images/wowrosterdf/Interface/Icons/INV_Sword_25.jpg" width="'.$w.'" height="'.$h.'" /></td>
<td class="row1">Warrior</td>
<td class="row1">'.$warrior_h.'</td>
<td class="row1">'.$warrior_n.'</td>
</tr>
<tr>
<td class="row2" colspan="4"><center><a href="'.$forumlink.'">'.$forumlinkname.'</a></center></td>
</tr>
</table></center>';
</?php>
edited by: silverscout, Jun 27, 2007 - 01:52 AM
