First, Thank you for this block. Was easily installed and good instructions.
I would just like to point out a few errors I found in the code that gave me some trouble when installing it.
From the first portal.php file, this is how I recieved the file.
- Code: Select all
if ($config['portal_recruitment'])
{
$template->assign_vars(array(
'S_DISPLAY_PORTAL_RECRUITMENT' => true,
'PORTAL_RECRUITMENT' => $config['portal_recruitment'],
'PORTAL_LEFT_COLLUMN' => $config['portal_left_collumn_width'],
'PORTAL_RIGHT_COLLUMN' => $config['portal_right_collumn_width'],
'PORTAL_RECRUITMENT_LINK' =>$config['portal_recruitment_link'],
'PORTAL_RECRUITMENT_DEATH_KNIGHT' => $config['portal_recruitment_death_knight'],
'PORTAL_RECRUITMENT_DRUID' => $config['portal_recruitment_druid'],
'PORTAL_RECRUITMENT_HUNTER' => $config['portal_recruitment_hunter'],
'PORTAL_RECRUITMENT_MAGE' => $config['portal_recruitment_mage'],
'PORTAL_RECRUITMENT_PALADIN' => $config['portal_recruitment_paladin'],
'PORTAL_RECRUITMENT_PRIEST' => $config['portal_recruitment_priest'],
'PORTAL_RECRUITMENT_ROGUE' => $config['portal_recruitment_rogue'],
'PORTAL_RECRUITMENT_SHAMAN' => $config['portal_recruitment_shaman'],
'PORTAL_RECRUITMENT_WARLOCK' => $config['portal_recruitment_warlock'],
'PORTAL_RECRUITMENT_WARRIOR' => $config['portal_recruitment_warrior'],
));
As you can see, a closing bracket is missing.

It should look like this:
- Code: Select all
if ($config['portal_recruitment'])
{
$template->assign_vars(array(
'S_DISPLAY_PORTAL_RECRUITMENT' => true,
'PORTAL_RECRUITMENT' => $config['portal_recruitment'],
'PORTAL_LEFT_COLLUMN' => $config['portal_left_collumn_width'],
'PORTAL_RIGHT_COLLUMN' => $config['portal_right_collumn_width'],
'PORTAL_RECRUITMENT_LINK' =>$config['portal_recruitment_link'],
'PORTAL_RECRUITMENT_DEATH_KNIGHT' => $config['portal_recruitment_death_knight'],
'PORTAL_RECRUITMENT_DRUID' => $config['portal_recruitment_druid'],
'PORTAL_RECRUITMENT_HUNTER' => $config['portal_recruitment_hunter'],
'PORTAL_RECRUITMENT_MAGE' => $config['portal_recruitment_mage'],
'PORTAL_RECRUITMENT_PALADIN' => $config['portal_recruitment_paladin'],
'PORTAL_RECRUITMENT_PRIEST' => $config['portal_recruitment_priest'],
'PORTAL_RECRUITMENT_ROGUE' => $config['portal_recruitment_rogue'],
'PORTAL_RECRUITMENT_SHAMAN' => $config['portal_recruitment_shaman'],
'PORTAL_RECRUITMENT_WARLOCK' => $config['portal_recruitment_warlock'],
'PORTAL_RECRUITMENT_WARRIOR' => $config['portal_recruitment_warrior'],
));
} //<-- Added.
Also, when I added it to the ACP, It displayed the Recruitment tab on the left as 'ACP_PORTAL_RECRUITMENT_INFO'. After some further investigation, I found a line was left out in the portal.php file located in the language folder and should look like this:
- Code: Select all
// recruitment
'ACP_PORTAL_RECRUITMENT_INFO' => 'Recruitment', //<-- Added
'ACP_PORTAL_RECRUITMENT_SETTINGS' => 'Recruitment Settings',
'ACP_PORTAL_RECRUITMENT_SETTINGS_EXPLAIN' => 'Here you can change the status of Recruitment Block.',
'PORTAL_RECRUITMENT' => 'Display the Recruitment block',
'PORTAL_RECRUITMENT_EXPLAIN' => 'Display the Recruitment Block on portal',
'PORTAL_RECRUITMENT_LINK' => 'Link to Recruitment Forums',
'PORTAL_RECRUITMENT_LINK_EXPLAIN' => 'Enter the url to your recruitment forums or application form here.',
'PORTAL_RECRUITMENT_DRUID' => 'Druid',
'PORTAL_RECRUITMENT_HUNTER' => 'Hunter',
'PORTAL_RECRUITMENT_MAGE' => 'Mage',
'PORTAL_RECRUITMENT_PALADIN' => 'Paladin',
'PORTAL_RECRUITMENT_PRIEST' => 'Priest',
'PORTAL_RECRUITMENT_ROGUE' => 'Rogue',
'PORTAL_RECRUITMENT_SHAMAN' => 'Shaman',
'PORTAL_RECRUITMENT_WARLOCK' => 'Warlock',
'PORTAL_RECRUITMENT_WARRIOR' => 'Warrior',
'PORTAL_RECRUITMENT_DEATH_KNIGHT' => 'Death Knight',
Hope this helps anyone having any problems! And thanks again for this block!
Also, one last note, our guild was wanting a little different look for our Recruitment block instead of just Open/Closed and I changed the output to be class specific, for example, druid-resto, feral, balance, etc. In addition, we have implemented a color system, red=limited or no recruitment, yellow=limited, and green=active. I would like to be able to change these colors in the ACP, instead of the actual file, but I have not found an effective way to do this yet. If you know a good way, would love to hear it! Ill put an example of what I mean with coding for each class below. You can see the red, yellow, green in the class tag, just cant figure out how to implement that in the ACP yet.
- Code: Select all
<tr>
<td class="row2" align="right" ><img src="../phpBB3/images/wow/druid.gif" width="20" height="20"></td>
<td class="row2" align="left" ><div align="left"><span class="gensmall"> Druid</span></div></td>
<td class="row2" width="15%" align="left" ><div align="left"><span class="gensmallred"> Balance</span></div></td>
<td class="row2" width="15%" align="left" ><div align="left"><span class="gensmallyellow"> Feral</span></div></td>
<td class="row2" width="15%" align="left" ><div align="left"><span class="gensmallyellow"> Resto</span></div></td>
</tr>
Thanks Again!