############################################################## 
## MOD Title: Contact Board Admin
## MOD Author: Doobdee < n/a > ( n/a ) http://www.doobdee.net 
## MOD Description: Contact board email (ACP configurable) without logging in.
## MOD Version: 1.2.3 
## Installation Level: Easy 
## Installation Time: ~3 mins 
## Files To Edit: includes/page_header.php
##			language/lang_english/lang_main.php
##			templates/subSilver/overall_header.tpl
## Included Files: contact.php
##		   	 templates/subSilver/contact_body.tpl
##			 language/lang_english/lang_board_contact.php
##			 language/lang_english/email/contact_board_email.tpl
## 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: This MOD will allow a user to contact the board email
##		     without having to log in.  It creates a brand new
##		     friendly interface, with validation for all users
##		     to easily contact the board admin with any questions.
############################################################## 
## MOD History: 
## 
##   2005-09-25 - 1.0.0
##      - Initial release of mod ;)
##
##   2005-09-26 - 1.1.1
##      - Added users IP to body of email
##	  - Added 'value' HTML tag so users do not loose their message details.
##
##   2005-09-26 - 1.2.1
##      - Added overall_header.tpl instructions
##
##   2005-09-26 - 1.2.2
##      - Fixed append_sid() as form action
##
##   2005-09-26 - 1.2.3
##      - Fixed invalid email check
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

# 
#-----[ COPY ]------------------------------------------ 
# 
copy root/contact.php to contact.php
copy root/templates/subSilver/contact_body.tpl to templates/subSilver/contact_body.tpl
copy root/language/lang_english/lang_board_contact.php to language/lang_english/lang_board_contact.php
copy root/language/lang_english/email/contact_board_email.tpl to language/lang_english/email/contact_board_email.tpl

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
# 
	'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	'L_CONTACT_ADMIN' => $lang['contact_admin'],

# 
#-----[ FIND ]------------------------------------------ 
# 
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	'U_CONTACT_ADMIN' => append_sid('contact.'.$phpEx),

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
//
// That's all, Folks!
// -------------------------------------------------

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$lang['contact_admin'] = 'Contact Board Admin';
# 
#-----[ OPEN ]------------------------------------------
#  
language/lang_spanish/lang_main.php
# 
#-----[ FIND ]------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$lang['contact_admin'] = 'Contactar con el administrador';
# 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 

# 
#-----[ IN-LIND FIND ]------------------------------------------ 
# 
{L_USERGROUPS}</a>&nbsp;

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
&nbsp;<a href="{U_CONTACT_ADMIN}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{L_CONTACT_ADMIN}" hspace="3" />{L_CONTACT_ADMIN}</a>&nbsp;

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM