**********************************************************************
**		   WoW Recruitment Block w/ACP for phpbb3portal 
** 
**		   Author: Sheepy (http://www.phpbb3portal.com/memberlist.php?mode=viewprofile&u=142)
**
**		   Version History:
**
**		   v2.2 - 30/04/09
**		   Updated images
**		   Added missing code from recruitment.html <br style="clear:both" />
**		   Added install.txt
**
**		   v2.1 - 02/04/09 
**		   Fixed recruitment.html file. (2 typos)
**
**		   v2.0 - 18/03/09
**		   Major revamp of code
**		   Added show/hide options for all classes.
**		   Added color option for class status.
**
**		   v1.1 - 12/03/09 
**		   Added colors to classes.
**
**********************************************************************
**********************************************************************
**
**		 Version: 2.2
**		 Install Difficulty: Easy 
**		 Install Time: 5 mins
**
**********************************************************************
**********************************************************************
**
**
** Included Files
******************
install.txt
images/wow/dk.png
images/wow/druid.png
images/wow/hunter.png
images/wow/mage.png
images/wow/paladin.png
images/wow/priest.png
images/wow/rogue.png
images/wow/shaman.png
images/wow/warlock.png
images/wow/warrior.png
portal/block/recruitment.php
styles/prosilver/template/portal/block/recruitment.html

** File to edit
******************
portal.php
includes/acp/acp_portal.php
includes/acp/info/acp_portal.php
language/en/acp/portal.php
styles/prosilver/template/portal/portal_body.html

If your using a differant style other than prosilver. 
Replace Prosilver with your style

**********************************************************************
**
** BE SURE TO BACKUP ALL FILES BEFORE PROCEEDING! 
**			 
**********************************************************************
** 
** Upload all the included files to your server.
**********************************************************************
** Open portal.php
** Find:
**********************************************************************

{
	include($phpbb_root_path . 'portal/block/change_style.'.$phpEx);
}

**********************************************************************
** On a new line after add:
**********************************************************************

if ($portal_config['portal_recruitment'])
{
    include($phpbb_root_path . 'portal/block/recruitment.'.$phpEx);
	$template->assign_vars(array(
		'S_DISPLAY_PORTAL_RECRUITMENT' 	=> true,
		'PORTAL_RECRUITMENT_IMAGE'	=> $phpbb_root_path . 'images/wow/',
	));
}

**********************************************************************
** Open includes/acp/acp_portal.php
** Find:
**********************************************************************

						'portal_minicalendar_day_link_color'	=> array('lang' => 'PORTAL_MINICALENDAR_DAY_LINK_COLOR' ,	'validate' => 'string', 'type' => 'text:10:10',	 'explain' => true),
					)
				);
			break;

**********************************************************************
** On a new line after add:
**********************************************************************

			case 'recruitment':
					$display_vars = array(
						'title'	=> 'ACP_RECRUITMENT_SETTINGS',
						'vars'	=> array(
						'legend1'									=> 'ACP_RECRUITMENT_BLOCK_SETTINGS',
												'portal_recruitment'			 						 	=> array('lang' => 'PORTAL_RECRUITMENT'									 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => true),
												'portal_recruitment_link'						 	=> array('lang' => 'PORTAL_RECRUITMENT_LINK'						,	'validate' => 'string',  'type' => 'text:50:100',	'explain' => true),
						'legend2'									=> 'PORTAL_RECRUITMENT_DISPLAY',
												'portal_display_dk' 										 => array('lang' => 'PORTAL_RECRUITMENT_DK_DISPLAY'					  ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_dru' 										 => array('lang' => 'PORTAL_RECRUITMENT_DRU_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_hun' 										 => array('lang' => 'PORTAL_RECRUITMENT_HUN_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_mag' 										 => array('lang' => 'PORTAL_RECRUITMENT_MAG_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_pal' 										 => array('lang' => 'PORTAL_RECRUITMENT_PAL_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_pri' 										 => array('lang' => 'PORTAL_RECRUITMENT_PRI_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_rog' 										 => array('lang' => 'PORTAL_RECRUITMENT_ROG_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_sha' 										 => array('lang' => 'PORTAL_RECRUITMENT_SHA_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_lock' 										 => array('lang' => 'PORTAL_RECRUITMENT_LOCK_DISPLAY'					,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
												'portal_display_war' 										 => array('lang' => 'PORTAL_RECRUITMENT_WAR_DISPLAY'					 ,	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
						'legend3'									=> 'PORTAL_RECRUITMENT_STATUS_TEXT',
												'portal_recruitment_death_knight'				  		 => array('lang' => 'PORTAL_RECRUITMENT_DEATH_KNIGHT'					,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_druid'				  		 	=> array('lang' => 'PORTAL_RECRUITMENT_DRUID'							 ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_hunter'			 		 		=> array('lang' => 'PORTAL_RECRUITMENT_HUNTER'							,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_mage'			 				  	=> array('lang' => 'PORTAL_RECRUITMENT_MAGE'							  ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_paladin'			 		 		=> array('lang' => 'PORTAL_RECRUITMENT_PALADIN'						  ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_priest'			 		 		=> array('lang' => 'PORTAL_RECRUITMENT_PRIEST'							,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_rogue'				  			=> array('lang' => 'PORTAL_RECRUITMENT_ROGUE'							 ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_shaman'			 		 		=> array('lang' => 'PORTAL_RECRUITMENT_SHAMAN'							,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_warlock'			 			  	=> array('lang' => 'PORTAL_RECRUITMENT_WARLOCK'						  ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
												'portal_recruitment_warrior'			 				 => array('lang' => 'PORTAL_RECRUITMENT_WARRIOR'						  ,	'validate' => 'string',	'type' => 'text:12:12',	 'explain' => false),
						'legend4'									=> 'PORTAL_RECRUITMENT_STATUS_TEXT_COLOR',
												'portal_recruitment_font_dk'								=> array('lang' => 'PORTAL_RECRUITMENT_FONT_DK'						  ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_dru'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_DRU'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_hun'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_HUN'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_mag'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_MAG'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_pal'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_PAL'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_pri'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_PRI'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_rog'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_ROG'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_sha'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_SHA'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_lock'							 => array('lang' => 'PORTAL_RECRUITMENT_FONT_LOCK'						,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
												'portal_recruitment_font_war'							  => array('lang' => 'PORTAL_RECRUITMENT_FONT_WAR'						 ,	'validate' => 'string',	'type' => 'text:6:6',		'explain' => false),
						'legend5'									=> 'Save',
					 )
				);
			break;

**********************************************************************
** Open includes/acp/info/acp_portal.php
** Find:
**********************************************************************

'minicalendar'	=> array('title' => 'ACP_PORTAL_MINICALENDAR_INFO', 'auth' => 'acl_a_portal_manage', 'cat' => array('ACP_PORTAL_INFO')),

**********************************************************************
** On a new line after add:
**********************************************************************

'recruitment'	=> array('title' => 'ACP_PORTAL_RECRUITMENT_INFO', 'auth' => 'acl_a_portal_manage', 'cat' => array('ACP_PORTAL_INFO')),

**********************************************************************
** Open language/en/mods/info_acp_portal.php
** Find:
**********************************************************************

	'ACP_PORTAL_FRIENDS_INFO'					=> 'Friends',

**********************************************************************
** On a new line after add:
**********************************************************************

	'ACP_PORTAL_RECRUITMENT_INFO'				=> 'Recruitment',

**********************************************************************
** Open language/en/mods/lang_portal_acp.php
** Find:
**********************************************************************

'PORTAL_MINICALENDAR_DAY_LINK_COLOR_EXPLAIN'=> 'HEX or named colors are allowed such as #FFFFFF for white, or color names like violet.',

**********************************************************************
** On a new line after add:
**********************************************************************

// recruitment block by Axxo@theory-guild.net
	//General Options
	'ACP_RECRUITMENT_SETTINGS'					=> 'Recruitment block settings',
	'ACP_RECRUITMENT_SETTINGS_EXPLAIN'			=> 'Here you can change the status of recruitment block.',
	'ACP_RECRUITMENT_BLOCK_SETTINGS'			=> 'Recruitment block display settings',
	'PORTAL_RECRUITMENT'						=> 'Display the recruitment block',
	'PORTAL_RECRUITMENT_EXPLAIN'				=> 'Display the recruitment block on your portal',
	'PORTAL_RECRUITMENT_LINK'					=> 'Status Link url',
	'PORTAL_RECRUITMENT_LINK_EXPLAIN'			=> 'Enter the link to your recruitment forums or application form here.',
	'RECRUITMENT_CLASS_SETTINGS'				=> 'Recruitment class status settings',
	'PORTAL_RECRUITMENT_DISPLAY'				=> 'Class display settings',
	'PORTAL_RECRUITMENT_STATUS_TEXT'			=> 'Class status text',
	'PORTAL_RECRUITMENT_STATUS_TEXT_COLOR'	  => 'Class status text color',
	'SAVE'										=> 'Save Changes',
	//Deathknight Options
	'PORTAL_RECRUITMENT_DK_DISPLAY'		 => 'Display Death Knight status?',
	'PORTAL_RECRUITMENT_DEATH_KNIGHT'	   => 'Death Knight status text',
	'PORTAL_RECRUITMENT_FONT_DK'			=> 'Death Knight status Font color',
	//Druid Options
	'PORTAL_RECRUITMENT_DRU_DISPLAY'		=> 'Display Druid status?',
	'PORTAL_RECRUITMENT_DRUID'		   		=> 'Druid status text',
	'PORTAL_RECRUITMENT_FONT_DRU'		   => 'Druid status font color',
	//Hunter Options
	'PORTAL_RECRUITMENT_HUN_DISPLAY'		=> 'Display Hunter status?',
	'PORTAL_RECRUITMENT_HUNTER'				=> 'Hunter status text',
	'PORTAL_RECRUITMENT_FONT_HUN'		   => 'Hunter status font color',
	//Mage Options
	'PORTAL_RECRUITMENT_MAG_DISPLAY'		=> 'Display Mage status?',
	'PORTAL_RECRUITMENT_MAGE'				=> 'Mage status text',
	'PORTAL_RECRUITMENT_FONT_MAG'		   => 'Mage status font color',
	//Paladin Options
	'PORTAL_RECRUITMENT_PAL_DISPLAY'		=> 'Display Paladin status?',
	'PORTAL_RECRUITMENT_PALADIN'			=> 'Paladin status text',
	'PORTAL_RECRUITMENT_FONT_PAL'		   => 'Paladin status font color',
	//Priest Options
	'PORTAL_RECRUITMENT_PRI_DISPLAY'		=> 'Display Priest status?',
	'PORTAL_RECRUITMENT_PRIEST'				=> 'Priest status text',
	'PORTAL_RECRUITMENT_FONT_PRI'		   => 'Priest status font color',
	//Rogue Options
	'PORTAL_RECRUITMENT_ROG_DISPLAY'		=> 'Display Rogue status?',
	'PORTAL_RECRUITMENT_ROGUE'		   		=> 'Rogue status text',
	'PORTAL_RECRUITMENT_FONT_ROG'		   => 'Rogue status font color',
	//Shaman Options
	'PORTAL_RECRUITMENT_SHA_DISPLAY'		=> 'Display Shaman status?',
	'PORTAL_RECRUITMENT_SHAMAN'				=> 'Shaman status text',
	'PORTAL_RECRUITMENT_FONT_SHA'		   => 'Shaman status font color',
	//Warlock Options
	'PORTAL_RECRUITMENT_LOCK_DISPLAY'	   => 'Display Warlock status?',
	'PORTAL_RECRUITMENT_WARLOCK'			=> 'Warlock status text',
	'PORTAL_RECRUITMENT_FONT_LOCK'		  => 'Warlock font color',
	//Warrior Options
	'PORTAL_RECRUITMENT_WAR_DISPLAY'		=> 'Display Warrior status?',
	'PORTAL_RECRUITMENT_WARRIOR'			=> 'Warrior status text',
	'PORTAL_RECRUITMENT_FONT_WAR'		   => 'Warrior status font color',


**********************************************************************
** Open styles/prosilver/template/portal/portal_body.html	 
**********************************************************************
** If you want your recruitment block on the left
** Find:
**********************************************************************

<!-- [+] left block area -->
	<td valign="top" style="width: {PORTAL_LEFT_COLUMN}px; padding-right:6px;">
		<br style="clear:both" />

**********************************************************************
After it, on a new line add:
**********************************************************************

	<!-- IF S_DISPLAY_PORTAL_RECRUITMENT -->
			<!-- INCLUDE portal/block/recruitment.html -->
		<!-- ENDIF -->

**********************************************************************
** If you want your recruitment block on the right
** Find:
**********************************************************************

<!-- [+] right block area -->
	<td valign="top" style="width: {PORTAL_RIGHT_COLUMN}px; padding-left:6px;">
		<br style="clear:both" />

**********************************************************************
After it, on a new line add:
**********************************************************************

	<!-- IF S_DISPLAY_PORTAL_RECRUITMENT -->
			<!-- INCLUDE portal/block/recruitment.html -->
		<!-- ENDIF -->


**********************************************************************
** Save an Upload all files
**********************************************************************

To install  ACP -

Load up your forums then go to - ACP >> System >> Administration Control Panel >> .Mods >> Portal

In the bottom right hand corner, click the top drop down box an select 'Recruitment' OR 'ACP_PORTAL_RECRUITMENT_INFO' under the section PORTAL [acp_portal]
Now click 'Add Module'.

When the page refreshes, click 'Enable' on the recruitment module.

Now go into the - >mods tab >> Recruitment OR 'ACP_PORTAL_RECRUITMENT_INFO'
Edit your new recruitment block as required 

Purge the cache an visit your portal to see your new recruitment block.

Visit the address below for instructions to enable the ACP Features.
http://board3.de/viewtopic.php?f=9&t=2446











