##############################################################
## MOD Title: GaduGadu & Tlen & Skype MOD Update 1.0.1 to 1.1.0
## MOD Author: crazygandalf < gandalfszalony@o2.pl > (Bartłomiej Zielonka) http://kkr.nsc.pl
## MOD Description: Modyfikacja dodaje obsługę trzech nowych komunikatorów GaduGadu, Tlen i Skype. Obsługa pozostałych komunikatorów nie jest nadpisywana. Umożliwia wyłączeniu dowolnych komunikatorów w PA. 
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 15 Minutes
## Files To Edit: memberlist.php
##                viewtopic.php
##                adm/style/acp_users_profile.html
##                includes/acp/acp_users.php
##                includes/ucp/ucp_pm_viewmessage.php
##                includes/ucp/ucp_profile.php
##                language/pl/acp/common.php
##                styles/prosilver/template/memberlist_search.html
##                styles/prosilver/template/ucp_profile_profile_info.html
##
## Included Files: root/adm/style/acp_im.html 
##                 root/includes/acp/info/acp_im.php 
##                 root/includes/acp/acp_im.php
##                 root/language/pl/mods/im.php
## 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: Modyfikacja wprowadza następujące możliwości:
## - obsługa nowych komunikatorów - Gadu-Gadu, Tlen, Skype
## - obsługa pozostałych komunikatorów nie jest nadpisywana
## - statusy w widoku tematów, prywatnych wiadomości i w profilu użytkownika (gg, tlen, skype)
## - Gadu-Gadu - otwieranie okienka rozmowy
## - Tlen - wysyłanie wiadomości przez bramkę Tlen, automatyczne usuwanie końcówek wpisanych przez użytkownika @tlen.pl, @o2.pl, @go2.pl
## - Skype - możliwość dzwonienia, otwieranie okienka rozmowy, dodanie do kontaktów, ściągnięcie aplikacji
## - drobne poprawki w widoku prywatnych wiadomości (jakieś niedorobione te pozostałe komunikatory tam są :-))
## - poprawki w statusie ICQ, który nie był wyświetlany
## - nowe komunikatory dodane do wyszukiwarki użytkowników
## - możliwość wyłączenia obsługi dowolnych komunikatorów w panelu administracyjnym
##
##############################################################
## MOD History:
##
##   2008-01-25 - Version 1.1.0
##      - możliwość wyłączenia obsługi dowolnych komunikatorów w PA
##			- poprawiony błąd z ograniczeniem długości loginów w skype i tlen
##
##   2008-01-19 - Version 1.0.1
##      - zmienne językowe przeniesione do jednego pliku
##			- zmienne motywu (theme) przeniesione do jednego pliku
##
##   2008-01-17 - Version 1.0.0
##      - pierwsze wydanie
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_gg', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_tlen', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_skype', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_msn', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_icq', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_yim', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_aim', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_jabber', '0');

#
#-----[ COPY ]------------------------------------------
#
copy adm/style/acp_im.html to adm/style/acp_im.html  
copy includes/acp/info/acp_im.php to includes/acp/info/acp_im.php
copy includes/acp/acp_im.php to includes/acp/acp_im.php
copy language/pl/mods/im.php to language/pl/mods/im.php

#
#-----[ OPEN ]------------------------------------------
#
memberlist.php

#
#-----[ FIND ]------------------------------------------
#
		$sort_key_text = array('a' => $user->lang['SORT_USERNAME'],  

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_LOCATION'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'e' => $user->lang['SORT_EMAIL'], 'f' => $user->lang['WEBSITE']);
		($config['enable_icq']) ? $sort_key_text['g'] = $user->lang['ICQ'] :'';
		($config['enable_aim']) ? $sort_key_text['h'] = $user->lang['AIM'] :'';
		($config['enable_msn']) ? $sort_key_text['i'] = $user->lang['MSNM'] :'';
		($config['enable_yim']) ? $sort_key_text['j'] = $user->lang['YIM'] :'';
		($config['enable_jabber']) ? $sort_key_text['k'] = $user->lang['JABBER'] :'';
		($config['enable_gg']) ? $sort_key_text['x'] = $user->lang['GG'] :'';
		($config['enable_tlen']) ? $sort_key_text['y'] = $user->lang['TLEN'] :'';
		($config['enable_skype']) ? $sort_key_text['z'] = $user->lang['SKYPE'] :'';

#
#-----[ FIND ]------------------------------------------
#
				'JABBER'	=> $jabber,
				
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'ENABLE_ICQ'		=> $config['enable_icq'],
				'ENABLE_AIM'		=> $config['enable_aim'],
				'ENABLE_YIM'		=> $config['enable_yim'],
				'ENABLE_MSN'		=> $config['enable_msn'],
				'ENABLE_GG'		=> $config['enable_gg'],
				'ENABLE_TLEN'		=> $config['enable_tlen'],
				'ENABLE_SKYPE'		=> $config['enable_skype'],			

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> ($data['user_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($data['user_icq']) : '',
		'U_AIM'			=> ($data['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $user_id) : '',
		'U_YIM'			=> ($data['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($data['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $user_id) : '',
		'U_GG'			=> ($data['user_gg']) ? 'gg:' . $data['user_gg'] : '',
		'U_TLEN'		=> ($data['user_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($data['user_tlen']) : '',
		'U_SKYPE'		=> ($data['user_skype'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $user_id) : '',
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $user_id) : '',
		'LOCATION'		=> ($data['user_from']) ? $data['user_from'] : '',

		'USER_ICQ'			=> $data['user_icq'],
		'USER_AIM'			=> $data['user_aim'],
		'USER_YIM'			=> $data['user_yim'],
		'USER_MSN'			=> $data['user_msnm'],
		'USER_GG'			=> $data['user_gg'],
		'USER_TLEN'			=> $data['user_tlen'],
		'USER_SKYPE'			=> $data['user_skype'],
		'USER_JABBER'		=> $data['user_jabber'],
		'USER_JABBER_IMG'	=> ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($data['user_icq'] && $config['enable_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($data['user_icq']) : '',
		'U_AIM'			=> ($data['user_aim'] && $auth->acl_get('u_sendim') && $config['enable_aim']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $user_id) : '',
		'U_YIM'			=> ($data['user_yim'] && $config['enable_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($data['user_msnm'] && $auth->acl_get('u_sendim') && $config['enable_msn']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $user_id) : '',
		'U_GG'			=> ($data['user_gg'] && $config['enable_gg']) ? 'gg:' . $data['user_gg'] : '',
		'U_TLEN'			=> ($data['user_tlen'] && $config['enable_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($data['user_tlen']) : '',
		'U_SKYPE'			=> ($data['user_skype'] && $auth->acl_get('u_sendim') && $config['enable_skype']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $user_id) : '',
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim') && $config['enable_jabber']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $user_id) : '',
		'LOCATION'		=> ($data['user_from']) ? $data['user_from'] : '',

		'USER_ICQ'			=> ($config['enable_icq']) ? $data['user_icq'] : '',
		'USER_AIM'			=> ($config['enable_aim']) ? $data['user_aim'] : '',
		'USER_YIM'			=> ($config['enable_yim']) ? $data['user_yim'] : '',
		'USER_MSN'			=> ($config['enable_msn']) ? $data['user_msnm'] : '',
		'USER_GG'			=> ($config['enable_gg']) ? $data['user_gg'] : '',
		'USER_TLEN'			=> ($config['enable_tlen']) ? $data['user_tlen'] : '',
		'USER_SKYPE'			=> ($config['enable_skype']) ? $data['user_skype'] : '',
		'USER_JABBER'		=> ($config['enable_jabber']) ? $data['user_jabber'] : '',
		'USER_JABBER_IMG'	=> ($data['user_jabber'] && $config['enable_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> $user_cache[$poster_id]['icq'],
		'U_AIM'			=> $user_cache[$poster_id]['aim'],
		'U_MSN'			=> $user_cache[$poster_id]['msn'],
		'U_YIM'			=> $user_cache[$poster_id]['yim'],
		'U_GG'			=> $user_cache[$poster_id]['gg'],
		'U_TLEN'			=> $user_cache[$poster_id]['tlen'],
		'U_SKYPE'			=> $user_cache[$poster_id]['skype'],
		'U_JABBER'		=> $user_cache[$poster_id]['jabber'],

#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($config['enable_icq']) ? $user_cache[$poster_id]['icq'] : '',
		'U_AIM'			=> ($config['enable_aim']) ? $user_cache[$poster_id]['aim'] : '',
		'U_MSN'			=> ($config['enable_msn']) ? $user_cache[$poster_id]['msn'] : '',
		'U_YIM'			=> ($config['enable_yim']) ? $user_cache[$poster_id]['yim'] : '',
		'U_GG'			=> ($config['enable_gg']) ? $user_cache[$poster_id]['gg'] : '',
		'U_TLEN'			=> ($config['enable_tlen']) ? $user_cache[$poster_id]['tlen'] : '',
		'U_SKYPE'			=> ($config['enable_skype']) ? $user_cache[$poster_id]['skype'] : '',
		'U_JABBER'		=> ($config['enable_jabber']) ? $user_cache[$poster_id]['jabber'] : '',

#
#-----[ OPEN ]------------------------------------------
#
adm/style/acp_users_profile.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" id="gg" name="gg" value="{GG}" /></dd>
	</dl>
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" id="tlen" name="tlen" value="{TLEN}" /></dd>
	</dl>
	<dl>
		<dt><label for="tlen">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" id="skype" name="skype" value="{SKYPE}" /></dd>
	</dl>
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" id="icq" name="icq" value="{ICQ}" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" id="msn" name="msn" value="{MSN}" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
	</dl>
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" id="jabber" name="jabber" value="{JABBER}" /></dd>
	</dl>	

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" id="gg" name="gg" value="{GG}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" id="tlen" name="tlen" value="{TLEN}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" id="skype" name="skype" value="{SKYPE}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" id="icq" name="icq" value="{ICQ}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" id="msn" name="msn" value="{MSN}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_JABBER -->  
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" id="jabber" name="jabber" value="{JABBER}" /></dd>
	</dl>
	<!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
includes/acp/acp_users.php

#
#-----[ FIND ]------------------------------------------
#
						'tlen'			=> array('string', true, 5, 255),
						'skype'			=> array('string', true, 5, 255),

#
#-----[ REPLACE WITH ]------------------------------------------
#
						'tlen'			=> array('string', true, 3, 255),
						'skype'			=> array('string', true, 6, 255),

#
#-----[ FIND ]------------------------------------------
#
					'JABBER'		=> $data['jabber'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
					'ENABLE_ICQ'		=> $config['enable_icq'],
					'ENABLE_YIM'		=> $config['enable_yim'],
					'ENABLE_AIM'		=> $config['enable_aim'],
					'ENABLE_MSN'		=> $config['enable_msn'],
					'ENABLE_GG'		=> $config['enable_gg'],
					'ENABLE_TLEN'		=> $config['enable_tlen'],
					'ENABLE_SKYPE'		=> $config['enable_skype'],
					'ENABLE_JABBER'	=> $config['enable_jabber'],

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_pm_viewmessage.php

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> ($user_info['user_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($user_info['user_icq']) : '',
		'U_AIM'			=> ($user_info['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $author_id) : '',
		'U_YIM'			=> ($user_info['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($user_info['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($user_info['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $author_id) : '',
		'U_GG'			=> ($user_info['user_gg']) ? 'gg:' . urlencode($user_info['user_gg']) : '',
		'U_TLEN'			=> ($user_info['user_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($user_info['user_tlen']) : '',
		'U_SKYPE'			=> ($user_info['user_skype'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $author_id) : '',
		'U_JABBER'		=> ($user_info['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $author_id) : '',

#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($user_info['user_icq'] && $config['enable_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($user_info['user_icq']) : '',
		'U_AIM'			=> ($user_info['user_aim'] && $auth->acl_get('u_sendim') && $config['enable_aim']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $author_id) : '',
		'U_YIM'			=> ($user_info['user_yim'] && $config['enable_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($user_info['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($user_info['user_msnm'] && $auth->acl_get('u_sendim') && $config['enable_msn']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $author_id) : '',
		'U_GG'			=> ($user_info['user_gg'] && $config['enable_gg']) ? 'gg:' . urlencode($user_info['user_gg']) : '',
		'U_TLEN'			=> ($user_info['user_tlen'] && $config['enable_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($user_info['user_tlen']) : '',
		'U_SKYPE'			=> ($user_info['user_skype'] && $auth->acl_get('u_sendim') && $config['enable_skype']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $author_id) : '',
		'U_JABBER'		=> ($user_info['user_jabber'] && $auth->acl_get('u_sendim') && $config['enable_jabber']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $author_id) : '',

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_profile.php

#
#-----[ FIND ]------------------------------------------
#
						'tlen'			=> array('string', true, 1, 255),
						'skype'			=> array('string', true, 1, 255),

#
#-----[ REPLACE WITH ]------------------------------------------
#
						'tlen'			=> array('string', true, 3, 255),
						'skype'			=> array('string', true, 6, 255),

#
#-----[ FIND ]------------------------------------------
#
					'JABBER'	=> $data['jabber'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
					'ENABLE_ICQ'		=> $config['enable_icq'],
					'ENABLE_YIM'		=> $config['enable_yim'],
					'ENABLE_AIM'		=> $config['enable_aim'],
					'ENABLE_MSN'		=> $config['enable_msn'],
					'ENABLE_GG'		=> $config['enable_gg'],
					'ENABLE_TLEN'		=> $config['enable_tlen'],
					'ENABLE_SKYPE'		=> $config['enable_skype'],
					'ENABLE_JABBER'	=> $config['enable_jabber'],

#
#-----[ OPEN ]------------------------------------------
#  
language/pl/acp/common.php

#
#-----[ FIND ]------------------------------------------
#
 'ACP_ICONS_SMILIES' =>

#
#-----[ AFTER, ADD ]------------------------------------------
#
 'ACP_IM_SETTINGS' => 'Ustawienia komunikatorów' ,

#
#-----[ FIND ]------------------------------------------
#
 'LOG_GROUP_UPDATED' =>

#
#-----[ AFTER, ADD ]------------------------------------------
#
 'LOG_IM_SETTINGS_CHANGED' => '<strong>Zmieniono ustawienia komunikatorów</strong>' ,

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/memberlist_search.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="gg">{L_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" value="{GG}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="tlen">{L_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="tlen">{L_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<dl>
	<dl>
		<dt><label for="icq">{L_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" value="{MSNM}" class="inputbox" /></dd>
	</dl>

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" value="{GG}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" value="{MSNM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_profile_profile_info.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" maxlength="15" value="{GG}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" maxlength="255" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="skype">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" maxlength="15" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" maxlength="15" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" maxlength="255" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" name="jabber" id="jabber" maxlength="255" value="{JABBER}" class="inputbox" /></dd>
	</dl>

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" maxlength="15" value="{GG}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" maxlength="255" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" maxlength="255" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" maxlength="15" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" maxlength="255" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_JABBER -->  
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" name="jabber" id="jabber" maxlength="255" value="{JABBER}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Teraz należy dodać moduł ustawień komunikatora do panelu administratora.
Przejdź do panelu administratora -> System -> Zarządzanie modułami -> System administracyjny. Następnie wybieramy Główna -> Komunikacja klienta. Tam wybieramy z jumpboxa moduł "Ustawienia komunikatorów". Następnie klikamy "Dodaj moduł" i zatwierdzamy. Przechodzimy do edycji nowego modułu i tam ustawiamy:
Moduł włączony: Tak
Wybierz moduł: Ustawienia komunikatorów [acp_im]
Resztę zostawiamy bez zmian i zatwierdzamy.
Teraz komunikatory możemy włączać/wyłączać w PA -> Główna -> Komunikacja klientów -> Ustawienia komunikatorów.
Wyczyść cache i odśwież wszystkie komponenty stylu: szablony, motywy i zestawy ikon.

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