############################################################## 
## MOD Title:           New Arrivals MOD 
## MOD Author:          NightriderXP < phpBB at 4fxearth.net > (N/A) http://4fxearth.net/phpBB2
## MOD Description:     Add a new Arrival Message Section to the ezPortal page... 
##
## MOD Version:         1.0.0
##
## Installation Level:  Easy
## Installation Time:   ~5 Minutes ( 1 Minute w/EasyMod )
##
## Files To Edit:       6
##                      portal.php
##						admin/admin_portal.php
##                      language/lang_english/lang_admin.php
##						language/lang_english/lang_main.php
##                      templates/subSilver/portal_body.tpl
##                      templates/subSilver/admin/portal_config_body.tpl
##
## Included Files:      0
##
## License:             http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
############################################################## 
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
############################################################## 
## Author Notes: 
## 		  		 Smartor's ezPortal MUST BE installed first.  This
##				 is an add-on to the ezPortal MOD...
##
############################################################## 
##
## MOD History:
##
##   2007-10-13 - Version 1.0.0 
##      - creation date			
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ SQL ]------------------------------------------------
#
INSERT INTO phpbb_portal (portal_name,portal_value) VALUES ('arrival_text','You can enter your text here.  Valid HTML is allowed too...');
INSERT INTO phpbb_portal (portal_name,portal_value) VALUES ('arrival_title','Our New Arrivals');
# 
#-----[ OPEN ]------------------------------------------ 
#
portal.php
# 
#-----[ FIND ]------------------------------------------ 
#
$template->assign_vars(array(
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$new_arrival_txt = (trim($CFG['arrival_title']) != '') ? $CFG['arrival_title'] : $lang['Arrival_Title'];

if (trim($CFG['arrival_text']) != '')
{
   $template->assign_block_vars('arrival_block', array());
}
# 
#-----[ FIND ]------------------------------------------ 
#
'L_NAME_WELCOME' =>
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	'L_NEW_ARRIVALS' => $new_arrival_txt,
	'NEW_ARRIVALS' => $CFG['arrival_text'],
# 
#-----[ OPEN ]------------------------------------------ 
#
admin/admin_portal.php
# 
#-----[ FIND ]------------------------------------------ 
#
"L_WELCOME_TEXT" =>
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	"L_ARRIVAL_TEXT" => $lang['Arrival_Text'],
	"L_ARRIVAL_TITLE" => $lang['Arrival_Title'],
# 
#-----[ FIND ]------------------------------------------ 
#	
"WELCOME_TEXT" =>	
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	"ARRIVAL_TEXT" => $new['arrival_text'], 
	"ARRIVAL_TITLE" => $new['arrival_title'], 
# 
#-----[ OPEN ]------------------------------------------ 
#
language/lang_english/lang_admin.php
# 
#-----[ FIND ]------------------------------------------ 
#
?>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$lang['Arrival_Text'] = 'Arrival Text';
$lang['Arrival_Title'] = 'Arrival Title';
# 
#-----[ OPEN ]------------------------------------------ 
#
language/lang_english/lang_main.php
# 
#-----[ FIND ]------------------------------------------ 
#
?>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$lang['Arrival_Title'] = 'Our New Arrivals';

# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/portal_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
<!-- END welcome_text -->
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
		<!-- BEGIN arrival_block -->
		<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
		<tr> 
			 <td class="catHead" height="25" align="center"><span class="genmed"><b>{L_NEW_ARRIVALS}</b></span></td> 
		</tr> 
		<tr> 
			 <td class="row1"><span class="genmed">{NEW_ARRIVALS}</span></td> 
		</tr> 
		</table><br />
		<!-- END arrival_block -->
# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/admin/portal_config_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# The actual line will be much longer. It should look something like this:
<tr> 
{L_WELCOME_TEXT}
{L_WELCOME_TEXT_EXPLAIN}
<textarea
{WELCOME_TEXT}
</td>
</tr>
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
<tr> 
	 <td class="row1"><b>{L_WELCOME_TEXT}</b></td>
	 <td class="row2"><textarea rows="10" cols="90" name="welcome_text" name="board_msg">{WELCOME_TEXT}</textarea></td>
</tr>
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
<tr> 
	 <td class="row1"><b>{L_ARRIVAL_TITLE}</b><br /><br /></td>
	 <td class="row2"><input type="text" maxlength="255" size="40" name="arrival_title" value="{ARRIVAL_TITLE}" class="post" /></td>
</tr>
<tr> 
	 <td class="row1"><b>{L_ARRIVAL_TEXT}</b></td>
	 <td class="row2"><textarea rows="10" cols="90" name="arrival_text">{ARRIVAL_TEXT}</textarea></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM	