############################################################## 
## MOD Title:		icons for topics and posts
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			Upgrade post icons from v 1.0.0 to v 1.0.1
## MOD Version:		1.0.1
## 
## Installation Level:	Easy
## Installation Time:	5 Minutes
## Files To Edit:
##			includes/functions.php
##			includes/page_header.php
##
## Included Files:
##			admin_icons.php
##			admin_icons_body.tpl
##			admin_icons_delete_body.tpl
##			admin_icons_edit_body.tpl
##			icons_def_icons.tpl
##			lang_extend_post_icons.php
##
##			mods_settings/lang_extend_mods_settings.php
##
##			lang_settings/lang_extend_mac.php
##
############################################################## 
## 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: 
##
##		DELETE templates/subSilver/icons_def_icons.tpl
##
## 
############################################################## 
## MOD History: 
##
##   2003-10-28 - Version 1.0.1
##      - fix usage of image key entry in the configuration
##	- add the lang settings
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy icons_def_icons.tpl to templates/subSilver/admin/icons_def_icons.tpl
copy admin_icons.php to admin/admin_icons.php
copy admin_icons_body.tpl to templates/subSilver/admin_icons_body.tpl
copy admin_icons_delete_body.tpl to templates/subSilver/admin/admin_icons_delete_body.tpl
copy admin_icons_edit_body.tpl to templates/subSilver/admin/admin_icons_edit_body.tpl
copy lang_extend_post_icons.php to language/lang_english/lang_extend_post_icons.php
#
#-----[ COPY ]------------------------------------------------
#
# Lang settings
#
copy lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php
#
#-----[ COPY ]------------------------------------------------
#
# Mods settings
#
copy mods_settings/lang_extend_mods_settings.php to language/lang_english/lang_extend_mods_settings.php
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	//
	// Set up style
	//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
	include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------------
#
		}

		if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
			include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
//-- mod : post icon -------------------------------------------------------------------------------
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
<?php
#
#-----[ FIND ]------------------------------------------------
#
//-- mod : post icon -------------------------------------------------------------------------------
//-- add
include_once($phpbb_root_path . 'includes/mods_settings/mod_post_icons.' . $phpEx);
//-- mod : post icon -------------------------------------------------------------------------------
$template->pparse('overall_header');
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
$template->pparse('overall_header');
#
#-----[ OPEN ]------------------------------------------------
#
# Here we step back to the original file
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
//-- mod : mods settings ---------------------------------------------------------------------------
//-- mod : post icon -------------------------------------------------------------------------------
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
<?php
#
#-----[ FIND ]------------------------------------------------
#
//-- mod : post icon -------------------------------------------------------------------------------
//-- add
$lang['Icons_settings_explain']		= 'Here you can add, edit or delete posts icons';
$lang['Icons_auth']					= 'Auth level';
$lang['Icons_auth_explain']			= 'The icon will be available only to the users suiting this requirement';
$lang['Icons_defaults']				= 'Default assignement';
$lang['Icons_defaults_explain']		= 'Those assignments will be used on the topics lists when no icon is defined for a topic';
$lang['Icons_delete']				= 'Delete an icon';
$lang['Icons_delete_explain']		= 'Please choose an icon in order to replace this one :';
$lang['Icons_confirm_delete']		= 'Are you sure you want to delete this one ?';

$lang['Icons_lang_key']				= 'Icon title';
$lang['Icons_lang_key_explain']		= 'The icon title will be displayed when the user set his mouse on the icon (title or alt HTML statement). You can use text, or a key of the language array. <br />(check language/lang_<i>your_language</i>/lang_main.php).';
$lang['Icons_icon_key']				= 'Icon';
$lang['Icons_icon_key_explain']		= 'Icon url or key to the images array. <br />(check templates/<i>your_template</i>/<i>your_template</i>.cfg)';

$lang['Icons_error_title']			= 'The icon title is empty';
$lang['Icons_error_del_0']			= 'You can\'t remove the default empty icon';

$lang['Refresh']					= 'Refresh';
$lang['Usage']						= 'Usage';
//-- fin mod : post icon ---------------------------------------------------------------------------
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
$lang['Configuration_extend']	= 'Configuration +';
$lang['Override_user_choices']	= 'Override user choices';
//-- end of mod : mods settings --------------------------------------------------------------------
?>
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
?>
#
#-----[ OPEN ]------------------------------------------------
#
# Here we step back to the original file
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
//-- mod : post icon -------------------------------------------------------------------------------
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
<?php
#
#-----[ FIND ]------------------------------------------------
#
//-- mod : post icon -------------------------------------------------------------------------------
//-- add
$lang['Icons_settings']			= 'Posts icons';
$lang['Icons_per_row']			= 'Icons per row';
$lang['Icons_per_row_explain']	= 'Set here the number of icons displayed per row in the posting display';
$lang['post_icon_title']		= 'Message Icon';
// icons
$lang['icon_none']				= 'No icon';
$lang['icon_note']				= 'Note';
$lang['icon_important']			= 'Important';
$lang['icon_idea']				= 'Idea';
$lang['icon_warning']			= 'Warning !';
$lang['icon_question']			= 'Question';
$lang['icon_cool']				= 'Cool';
$lang['icon_funny']				= 'Funny';
$lang['icon_angry']				= 'Grrrr !';
$lang['icon_sad']				= 'Snif !';
$lang['icon_mocker']			= 'Hehehe !';
$lang['icon_shocked']			= 'Oooh !';
$lang['icon_complicity']		= 'Complicity';
$lang['icon_bad']				= 'Bad !';
$lang['icon_great']				= 'Great !';
$lang['icon_disgusting']		= 'Beark !';
$lang['icon_winner']			= 'Gniark !';
$lang['icon_impressed']			= 'Oh yes !';
$lang['icon_roleplay']			= 'Roleplay';
$lang['icon_fight']				= 'Fight';
$lang['icon_loot']				= 'Loot';
$lang['icon_picture']			= 'Picture';
$lang['icon_calendar']			= 'Calendar event';
//-- fin mod : post icon ---------------------------------------------------------------------------
?>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM