############################################################## 
## MOD Title: mods settings - users choices - no Profile Control Panel version
## MOD Author: Ptirhiik < admin@rpgnet-fr.com > (Pierre) http://www.rpgnet-fr.com
## MOD Description:
##		Second part of the mods settings : 
##			add an options to the menu for users. It will
##			allow them to setup their preferences. If you are using Profile Control Panel v1.0.2,
##			you don't need to install this one.
##			
## MOD Version: 1.0.2
## 
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit:
##		includes/page_header.php
##		templates/subSilver/overall_header.tpl
##		templates/subSilver/subSilver.cfg
##
## Included Files:
##		profile_options.php
##		profile_options_body.tpl
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
############################################################## 
## MOD History: 
##
##   2003-08-19 - Version 1.0.2
##	- some enhancements
##
##   2003-08-19 - Version 1.0.1
##	- some enhancements
##
##   2003-08-11 - Version 1.0.0
##      - first beta with categories hierarchy v 2.0.0 beta 2.1
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy profile_options.php to profile_options.php
copy profile_options_body.tpl to templates/subSilver/profile_options_body.tpl
#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
$template->assign_vars(array(
	'U_PREFERENCES'	=> append_sid("./profile_options.$phpEx"),
	'L_PREFERENCES'	=> $lang['Preferences'],
	'I_PREFERENCES'	=> $images['Preferences'],
	)
);
//-- fin mod : mods settings -----------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
$lang['Click_return_preferences'] = 'Click %sHere%s to return to Preferences';
//-- fin mod : mods settings -----------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
# this is a partial search : the full line is longer
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}"
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
{L_PROFILE}</a>&nbsp; &nbsp;
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
<a href="{U_PREFERENCES}" class="mainmenu"><img src="{I_PREFERENCES}" width="12" height="13" border="0" alt="{L_PREFERENCES}" hspace="3" />{L_PREFERENCES}</a>&nbsp; &nbsp;
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
$images['Preferences'] = "$current_template_images/icon_mini_profile.gif";
//-- fin mod : mods settings -----------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM