- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- November 2004
- Status:
- offline
- last visit:
- 18.06.08
- Posts:
- 408
how hard would it to create a simple block that will either 1. look at the database from another AP, "it wowroster" and compare with admin added info "ie the module admin" for the #'s we want.
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>
edited by: silverscout, Jun 27, 2007 - 01:52 AM -
- rank:
-
Professional
- registered:
- September 2006
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 1450
I'm not sure if Rostermaster (by Topiatic) apply to your needs...
but search in the Forum and in the NOC, i know that gamers are building a module for this needs.
--
- Mateo T. -
Mis principios... son mis fines -
- rank:
-
Helper
- registered:
- November 2004
- Status:
- offline
- last visit:
- 18.06.08
- Posts:
- 408
actually rostermaster is for eq2.
I was hoping for something for WOW, or really any game
Here are my thoughts, "as I am trying to learn this stuff, have been for years now, no real time to sit downa nd do it though"
have a block that ties into something like formulica or form express, then modify those to have it post to PNphpBB forum of my choice making it a poll.
so the block can be controlled by the officers and admin.
IE, first step you do is put down all the people classes you want. Put down how many you want, and how many you have. Then depending on that # IE want 10 have 6 then it will display either Medium or low application status or JOIN NOW. This will then route you to the form. You fill out the form. It gets posted, Officers vote, then the officers can contact the person.
should be something simple for a simple copy and paste coder to do right?
-
- rank:
-
Professional
- registered:
- March 2003
- Status:
- offline
- last visit:
- 10.09.08
- Posts:
- 1313
-
- rank:
-
Helper
- registered:
- November 2004
- Status:
- offline
- last visit:
- 18.06.08
- Posts:
- 408
did that, wish I could use page.php wrapper, "however I forgot how to config that really well" So I use nukewrapper, this is not about having a roster, this is about a join application style module. :)
right now users will go to the JOIN US link that is a link to a form by "form express" That form e-mails the officers. First person copy and past's it to the forum and officers talk about it.
What I initially wanted to see is if I could get the above code to work "I know how to make all teh images work fine" in a block and put the apply now link to the form express link. Then I thought maybe this block could be my first module to build. SInce it is really simple. I have been looking at the example module and think it may work really well with some tweaking.
Since the admin part will only need to be
Add Edit Delete permissions.
then the input fields would just be
Class your looking for, How many you have, and how many you want.
After that it is just math and code.
Then I usually do this "thinking ahead of time" having it link up to a roster like wowroster and rostermaster as a plugin to those and grab the how many you have info from those.
