############################################################## 
## MOD Title:		Advanced Private Messages
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This mod brings a new private message system
## MOD Version:		0.0.6 - beta
## 
## Installation Level:	Easy
## Installation Time:	15 Minutes
## Files To Edit:
##			privmsg.php
##			search.php
##
##			includes/constant.php
##			includes/functions.php
##			includes/functions_search.php
##
##			templates/subSilver/posting_body.tpl
##			templates/subSilver/search_username.tpl
##			templates/subSilver/subSilver.cfg
##
## Included Files:
##			privmsga.php
##
##			admin/admin_board_extend.php
##
##			includes/functions_bbcodes.php
##			includes/functions_messages.php
##			includes/functions_mods_settings.php
##			includes/functions_privmsga.php
##			includes/functions_sys.php
##			includes/lang_extend_mac.php
##			includes/privmsga_folders.php
##			includes/privmsga_list.php
##			includes/privmsga_popup.php
##			includes/privmsga_post.php
##			includes/privmsga_review.php
##			includes/privmsga_search.php
##			includes/privmsga_view.php
##
##			language/lang_english/lang_extend_mods_settings.php
##			language/lang_english/lang_extend_privmsga.php
##
##			templates/subSilver/privmsga_body.tpl
##			templates/subSilver/privmsga_box.tpl
##			templates/subSilver/privmsga_folders_body.tpl
##			templates/subSilver/privmsga_folders_box.tpl
##			templates/subSilver/privmsga_folders_edit_body.tpl
##			templates/subSilver/privmsga_footer.tpl
##			templates/subSilver/privmsga_header.tpl
##			templates/subSilver/privmsga_rules_edit_body.tpl
##			templates/subSilver/privmsga_search_body.tpl
##			templates/subSilver/privmsga_view_body.tpl
##
##			templates/subSilver/admin/board_config_extend_body.tpl
##
##			templates/subSilver/images/folder_newpm.gif
##			templates/subSilver/images/icon_down_arrow.gif
##			templates/subSilver/images/icon_up_arrow.gif
##
##			templates/subSilver/images/lang_english/icon_folder_edit.gif
##			templates/subSilver/images/lang_english/icon_folder_new.gif
##			templates/subSilver/images/lang_english/icon_forward.gif
##			templates/subSilver/images/lang_english/icon_savetomail.gif
##
############################################################## 
## 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: 
##
##	Features :
##		- multi-recipients pm
##		- user customizable sub-folders for each pmbox
##		- automatic pm distribution in sub-folders, user customizable rules of distribution
##		- search in private messages
##		- no duplication of the messages until it is necessary (more compact database)
##		- integration with the PCP
##		- used in conjonction with PCP, admins can set the message size box for each user
## 
############################################################## 
## MOD History:
##
##   2003-12-08 - Version 0.0.7 - beta
##	- some fixes
##	- add review original pm while replying
##	- add title icons for those who have also installed Post Icon mod ( http://rpgnet.clanmckeen.com/demo/viewtopic.php?t=608 )
##
##   2003-12-07 - Version 0.0.6 - beta
##	- minor fixes
##	- add the save to mail function
##	- add the preferences management
##
##   2003-12-06 - Version 0.0.5 - beta
##	- fix various bugs
##	- add the search feature
##	- move the mod in beta stage
##
##   2003-12-04 - Version 0.0.4 - alpha
##	- add pm notification
##
##   2003-12-04 - Version 0.0.3 - alpha
##      - fix pagination issue,
##	- move progs to includes/ and set a centralized prog (privmsga.php),
##	- add the PCP integration,
##	- add its own popup : the original privmsg.php is only use at redirection purpose
##
##   2003-12-03 - Version 0.0.1/2 - alpha
##      - first publication
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ SQL ]-------------------------------------------------
#
CREATE TABLE phpbb_privmsga (
  privmsg_id mediumint(8) unsigned NOT NULL auto_increment,
  privmsg_subject varchar(255) default NULL,
  privmsg_text text,
  privmsg_bbcode_uid varchar(10) default NULL,
  privmsg_time int(11) NOT NULL default '0',
  privmsg_enable_bbcode tinyint(1) NOT NULL default '0',
  privmsg_enable_html tinyint(1) NOT NULL default '0',
  privmsg_enable_smilies tinyint(1) NOT NULL default '0',
  privmsg_attach_sig tinyint(1) NOT NULL default '0',
  privmsg_icon tinyint(2) default NULL,
  PRIMARY KEY  (privmsg_id)
);
#
#-----[ SQL ]-------------------------------------------------
#
CREATE TABLE phpbb_privmsga_folders (
  folder_id mediumint(8) unsigned NOT NULL auto_increment,
  folder_main tinyint(2) NOT NULL default '0',
  folder_user_id mediumint(8) unsigned NOT NULL default '0',
  folder_name varchar(255) NOT NULL default '',
  folder_order mediumint(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (folder_id)
);
INSERT INTO phpbb_privmsga_folders VALUES (1, 0, 0, 'Inbox', 10);
INSERT INTO phpbb_privmsga_folders VALUES (2, 0, 0, 'Outbox', 20);
INSERT INTO phpbb_privmsga_folders VALUES (3, 0, 0, 'Sentbox', 30);
INSERT INTO phpbb_privmsga_folders VALUES (4, 0, 0, 'Savebox', 40);
#
#-----[ SQL ]-------------------------------------------------
#
CREATE TABLE phpbb_privmsga_recips (
  privmsg_recip_id mediumint(8) unsigned NOT NULL auto_increment,
  privmsg_id mediumint(8) unsigned NOT NULL default '0',
  privmsg_direct tinyint(1) unsigned NOT NULL default '0',
  privmsg_user_id mediumint(8) unsigned NOT NULL default '0',
  privmsg_ip varchar(8) default NULL,
  privmsg_folder_id mediumint(8) unsigned NOT NULL default '0',
  privmsg_read tinyint(1) unsigned NOT NULL default '0',
  privmsg_status tinyint(1) unsigned NOT NULL default '0',
  privmsg_distrib tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (privmsg_recip_id),
  KEY privmsg_id (privmsg_id)
);
#
#-----[ SQL ]-------------------------------------------------
#
CREATE TABLE phpbb_privmsga_rules (
  rules_id mediumint(8) unsigned NOT NULL auto_increment,
  rules_user_id mediumint(8) NOT NULL default '0',
  rules_folder_id smallint(8) unsigned NOT NULL default '0',
  rules_name varchar(255) NOT NULL default '',
  rules_group_id mediumint(8) NOT NULL default '0',
  rules_word varchar(255) default NULL,
  KEY rules_id (rules_id)
);
#
#-----[ COPY ]------------------------------------------------
#
copy privmsga.php to privmsga.php
#
#-----[ COPY ]------------------------------------------------
#
#	copy admin/*.* to admin/*.*
#
copy admin/admin_board_extend.php to admin/admin_board_extend.php
#
#-----[ COPY ]------------------------------------------------
#
#	copy includes/*.* to includes/*.*
#
copy includes/functions_bbcodes.php to includes/functions_bbcodes.php
copy includes/functions_messages.php to includes/functions_messages.php
copy includes/functions_mods_settings.php to includes/functions_mods_settings.php
copy includes/functions_privmsga.php to includes/functions_privmsga.php
copy includes/functions_sys.php to includes/functions_sys.php
copy includes/lang_extend_mac.php to includes/lang_extend_mac.php
copy includes/privmsga_folders.php to includes/privmsga_folders.php
copy includes/privmsga_list.php to includes/privmsga_list.php
copy includes/privmsga_popup.php to includes/privmsga_popup.php
copy includes/privmsga_post.php to includes/privmsga_post.php
copy includes/privmsga_review.php to includes/privmsga_review.php
copy includes/privmsga_search.php to includes/privmsga_search.php
copy includes/privmsga_view.php to includes/privmsga_view.php
#
#-----[ COPY ]------------------------------------------------
#
#	copy language/lang_english/*.* to language/lang_english/*.*
#
copy language/lang_english/lang_extend_mods_settings.php to language/lang_english/lang_extend_mods_settings.php
copy language/lang_english/lang_extend_privmsga.php to language/lang_english/lang_extend_privmsga.php
#
#-----[ COPY ]------------------------------------------------
#
#	copy templates/subSilver/*.* to templates/subSilver/*.*
#
copy templates/subSilver/privmsga_body.tpl to templates/subSilver/privmsga_body.tpl
copy templates/subSilver/privmsga_box.tpl to templates/subSilver/privmsga_box.tpl
copy templates/subSilver/privmsga_folders_body.tpl to templates/subSilver/privmsga_folders_body.tpl
copy templates/subSilver/privmsga_folders_box.tpl to templates/subSilver/privmsga_folders_box.tpl
copy templates/subSilver/privmsga_folders_edit_body.tpl to templates/subSilver/privmsga_folders_edit_body.tpl
copy templates/subSilver/privmsga_footer.tpl to templates/subSilver/privmsga_footer.tpl
copy templates/subSilver/privmsga_header.tpl to templates/subSilver/privmsga_header.tpl
copy templates/subSilver/privmsga_rules_edit_body.tpl to templates/subSilver/privmsga_rules_edit_body.tpl
copy templates/subSilver/privmsga_search_body.tpl to templates/subSilver/privmsga_search_body.tpl
copy templates/subSilver/privmsga_view_body.tpl to templates/subSilver/privmsga_view_body.tpl
#
#-----[ COPY ]------------------------------------------------
#
#	copy templates/subSilver/admin/*.* to templates/subSilver/admin/*.*
#
copy templates/subSilver/admin/board_config_extend_body.tpl to templates/subSilver/admin/board_config_extend_body.tpl
#
#-----[ COPY ]------------------------------------------------
#
#	copy templates/subSilver/images/*.* to templates/subSilver/images/*.*
#
copy templates/subSilver/images/folder_newpm.gif to templates/subSilver/images/folder_newpm.gif
copy templates/subSilver/images/icon_down_arrow.gif to templates/subSilver/images/icon_down_arrow.gif
copy templates/subSilver/images/icon_up_arrow.gif to templates/subSilver/images/icon_up_arrow.gif
#
#-----[ COPY ]------------------------------------------------
#
#
#	copy templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/*.*
#
copy templates/subSilver/images/lang_english/icon_folder_edit.gif to templates/subSilver/images/lang_english/icon_folder_edit.gif
copy templates/subSilver/images/lang_english/icon_folder_new.gif to templates/subSilver/images/lang_english/icon_folder_new.gif
copy templates/subSilver/images/lang_english/icon_forward.gif to templates/subSilver/images/lang_english/icon_forward.gif
copy templates/subSilver/images/lang_english/icon_savetomail.gif to templates/subSilver/images/lang_english/icon_savetomail.gif
#
#-----[ OPEN ]------------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
//-- add
$mode = htmlspecialchars($HTTP_GET_VARS['mode']);
if ($mode == 'read')
{
	$mode = 'view';
}
$user_id = intval($HTTP_GET_VARS[POST_USERS_URL]);
$privmsg_id = intval($HTTP_GET_VARS[POST_POST_URL]);
$main_pgm = defined('ADMIN_FOUNDER') ? "./profile.$phpEx?mode=privmsg" : "./privmsga.$phpEx?";
if ( empty($user_id) )
{
	redirect(append_sid("$main_pgm&pmmode=$mode&" . POST_POST_URL . "=$privmsg_id"));
}
else
{
	redirect(append_sid("$main_pgm&pmmode=$mode&tousers=$user_id&" . POST_POST_URL . "=$privmsg_id"));
}
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		username_search($HTTP_POST_VARS['search_username']);
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
// here we added 
//	, intval($HTTP_GET_VARS['multi'])
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
['search_username']
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, intval($HTTP_GET_VARS['multi'])
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		username_search('');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
// here we added 
//	, intval($HTTP_GET_VARS['multi'])
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, intval($HTTP_GET_VARS['multi'])
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
//-- add
// groups
define('FRIEND_LIST_GROUP', -99);

// tables
define('PRIVMSGA_TABLE', $table_prefix . 'privmsga');
define('PRIVMSGA_RECIPS_TABLE', $table_prefix . 'privmsga_recips');
define('PRIVMSGA_FOLDERS_TABLE', $table_prefix . 'privmsga_folders');
define('PRIVMSGA_RULES_TABLE', $table_prefix . 'privmsga_rules');

// main folders id
define('INBOX', 1);
define('OUTBOX', 2);
define('SENTBOX', 3);
define('SAVEBOX', 4);

// pm status
define('STS_TRANSIT', 1);
define('STS_SAVED', 4 );
define('STS_DELETED', 9 );

// read status
define('NEW_MAIL', 1);
define('UNREAD_MAIL', 2);
define('READ_MAIL', 3);
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
# this part may already exist. If so, just ignore it and go to the next file.
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
//-- mod : language settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	if ( $userdata['user_id'] != ANONYMOUS )
	{
		if ( !empty($userdata['user_lang']))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
	global $db, $mods, $list_yes_no, $userdata;

	//	get all the mods settings
	$dir = @opendir($phpbb_root_path . 'includes/mods_settings');
	while( $file = @readdir($dir) )
	{
		if( preg_match("/^mod_.*?\." . $phpEx . "$/", $file) )
		{
			include_once($phpbb_root_path . 'includes/mods_settings/' . $file);
		}
	}
	@closedir($dir);
//-- fin mod : mods settings -----------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------------
#
	//
	// Set up style
	//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
	include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------

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

		if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
			include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_search.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
function username_search($search_match)
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
// here we added
//	, $multi
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
$search_match
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, $multi
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser"))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
// here we added
//	 . ($multi ? '&multi=1' : '') 
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
mode=searchuser"
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
 . ($multi ? '&multi=1' : '')
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		$template->assign_block_vars('switch_select_name', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
//-- add
		if ( $multi )
		{
			$template->assign_block_vars('switch_select_name.multi', array());
		}
		else
		{
			$template->assign_block_vars('switch_select_name.not_multi', array());
		}
//-- fin mod : avanced privmsg ---------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# at top of the file
#
<script language="JavaScript" type="text/javascript">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!--//-- mod : advanced privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
	if (document.post.message.value.length < 2) {
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- BEGIN switch_not_privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
		formErrors = "{L_EMPTY_MESSAGE}";
	}
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- END switch_not_privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
<form action="{S_POST_ACTION}"
#
#-----[ AFTER, ADD ]------------------------------------------
#
{EXTERNAL_HEADER}
#
#-----[ FIND ]------------------------------------------------
#
# here we are going to duplicate this block, one surrounded with switch_privmsg, the other
#  surrounded with switch_not_privmsg. This will allow to hide it entirely when in new programs.
#
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
		<!-- BEGIN switch_not_privmsg -->
		-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
		<!-- END switch_not_privmsg -->
	</tr>
</table>
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
<!-- BEGIN switch_not_privmsg -->
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
		-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	</tr>
</table>
<!-- END switch_not_privmsg -->
<!-- BEGIN switch_privmsg -->
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
	</tr>
</table>
<!-- END switch_privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines are longer
#
	<!-- BEGIN switch_privmsg -->
	<tr>
{L_USERNAME}
name="username"
	</tr>
	<!-- END switch_privmsg -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<!-- BEGIN switch_privmsga -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_USERNAMES}</b></span></td>
		<td class="row2">
			<span class="genmed">
				<textarea name="to_users" rows="3" cols="35" wrap="virtual" style="width:450px" class="post">{TO_USERS}</textarea>
				<br />
				<select name="g">{S_GROUPS_LIST}</select><input type="submit" name="groupsubmit" value="{L_ADD_GROUP}" class="liteoption" />
				<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250, resizable=yes, WIDTH=400');return false;" />
			</span>
		</td>
	</tr>
	<!-- END switch_privmsga -->
#
#-----[ FIND ]------------------------------------------------
#
</form>
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
</form>
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{EXTERNAL_FOOTER}
#
#-----[ AFTER, ADD ]------------------------------------------
#

<!-- BEGIN switch_not_privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
{TOPIC_REVIEW_BOX}
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- END switch_not_privmsg -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/search_username.tpl
#
#-----[ FIND ]------------------------------------------------
#
# at top of the file
#
<script language="javascript" type="text/javascript">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!--//-- mod : avanced privmsg -->
#
#-----[ FIND ]------------------------------------------------
#
	opener.document.forms['post'].username.value = selected_username;
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
<!-- BEGIN switch_select_name -->
<!-- BEGIN not_multi -->
	opener.document.forms['post'].username.value = selected_username;
<!-- END not_multi -->
<!-- BEGIN multi -->
	if ( opener.document.forms['post'].to_users.value != '' )
	{
		opener.document.forms['post'].to_users.value = opener.document.forms['post'].to_users.value + ', ';
	}
	opener.document.forms['post'].to_users.value = opener.document.forms['post'].to_users.value + selected_username;
<!-- END multi -->
<!-- END switch_select_name -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : avanced privmsg -------------------------------------------------------------------------
//-- add
$images['up_arrow'] = "$current_template_images/icon_up_arrow.gif";
$images['down_arrow'] = "$current_template_images/icon_down_arrow.gif";
$images['icon_forward'] = "$current_template_images/{LANG}/icon_forward.gif";
$images['icon_folder_new'] = "$current_template_images/{LANG}/icon_folder_new.gif";
$images['icon_folder_edit'] = "$current_template_images/{LANG}/icon_folder_edit.gif";
$images['icon_save_to_mail'] = "$current_template_images/{LANG}/icon_savetomail.gif";
$images['pm_newmsg'] = "$current_template_images/folder_newpm.gif";
//-- fin mod : avanced privmsg ---------------------------------------------------------------------

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