mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-04 22:58:10 +02:00
Merge remote-tracking branch 'remotes/nickv/ticket/11201' into develop
# By Joas Schilling # Via Joas Schilling * remotes/nickv/ticket/11201: [ticket/11201] Remove database column on update [ticket/11201] Remove MSN/WLM fields
This commit is contained in:
commit
d59431691c
@ -10,10 +10,6 @@
|
||||
<dt><label for="aim">{L_UCP_AIM}{L_COLON}</label></dt>
|
||||
<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="msn">{L_UCP_MSNM}{L_COLON}</label></dt>
|
||||
<dd><input type="text" id="msn" name="msn" value="{MSN}" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="yim">{L_UCP_YIM}{L_COLON}</label></dt>
|
||||
<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
|
||||
|
@ -377,7 +377,6 @@ function make_user($username)
|
||||
$viewemail = 0;
|
||||
$aim = 0;
|
||||
$yim = 0;
|
||||
$msn = 0;
|
||||
$attachsig = 1;
|
||||
$allowsmilies = 1;
|
||||
$allowhtml = 1;
|
||||
@ -422,8 +421,8 @@ function make_user($username)
|
||||
}
|
||||
|
||||
|
||||
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmilies, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
|
||||
VALUES ($new_user_id, '$username', " . time() . ", '$password', '$email', '$icq', '$website', '$occupation', '$location', '$interests', '$signature', '$signature_bbcode_uid', '$avatar_filename', $viewemail, '$aim', '$yim', '$msn', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $user_timezone, '$user_dateformat', '$user_lang', $user_style, 0, 1, ";
|
||||
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_viewemail, user_aim, user_yim, user_attachsig, user_allowsmilies, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
|
||||
VALUES ($new_user_id, '$username', " . time() . ", '$password', '$email', '$icq', '$website', '$occupation', '$location', '$interests', '$signature', '$signature_bbcode_uid', '$avatar_filename', $viewemail, '$aim', '$yim', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $user_timezone, '$user_dateformat', '$user_lang', $user_style, 0, 1, ";
|
||||
|
||||
|
||||
$sql .= "1, '')";
|
||||
|
@ -1836,7 +1836,6 @@ function get_schema_struct()
|
||||
'user_icq' => array('VCHAR:15', ''),
|
||||
'user_aim' => array('VCHAR_UNI', ''),
|
||||
'user_yim' => array('VCHAR_UNI', ''),
|
||||
'user_msnm' => array('VCHAR_UNI', ''),
|
||||
'user_jabber' => array('VCHAR_UNI', ''),
|
||||
'user_website' => array('VCHAR_UNI:200', ''),
|
||||
'user_occ' => array('TEXT_UNI', ''),
|
||||
|
@ -1265,7 +1265,6 @@ function get_schema_struct()
|
||||
'user_icq' => array('VCHAR:15', ''),
|
||||
'user_aim' => array('VCHAR_UNI', ''),
|
||||
'user_yim' => array('VCHAR_UNI', ''),
|
||||
'user_msnm' => array('VCHAR_UNI', ''),
|
||||
'user_jabber' => array('VCHAR_UNI', ''),
|
||||
'user_website' => array('VCHAR_UNI:200', ''),
|
||||
'user_occ' => array('TEXT_UNI', ''),
|
||||
|
@ -1352,7 +1352,6 @@ class acp_users
|
||||
$data = array(
|
||||
'icq' => request_var('icq', $user_row['user_icq']),
|
||||
'aim' => request_var('aim', $user_row['user_aim']),
|
||||
'msn' => request_var('msn', $user_row['user_msnm']),
|
||||
'yim' => request_var('yim', $user_row['user_yim']),
|
||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),
|
||||
'website' => request_var('website', $user_row['user_website']),
|
||||
@ -1382,7 +1381,6 @@ class acp_users
|
||||
array('string', true, 3, 15),
|
||||
array('match', true, '#^[0-9]+$#i')),
|
||||
'aim' => array('string', true, 3, 255),
|
||||
'msn' => array('string', true, 5, 255),
|
||||
'jabber' => array(
|
||||
array('string', true, 5, 255),
|
||||
array('jabber')),
|
||||
@ -1416,7 +1414,6 @@ class acp_users
|
||||
$sql_ary = array(
|
||||
'user_icq' => $data['icq'],
|
||||
'user_aim' => $data['aim'],
|
||||
'user_msnm' => $data['msn'],
|
||||
'user_yim' => $data['yim'],
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_website' => $data['website'],
|
||||
@ -1469,7 +1466,6 @@ class acp_users
|
||||
'ICQ' => $data['icq'],
|
||||
'YIM' => $data['yim'],
|
||||
'AIM' => $data['aim'],
|
||||
'MSN' => $data['msn'],
|
||||
'JABBER' => $data['jabber'],
|
||||
'WEBSITE' => $data['website'],
|
||||
'LOCATION' => $data['location'],
|
||||
|
@ -241,7 +241,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||
'U_ICQ' => ($user_info['user_icq']) ? 'http://www.icq.com/people/' . 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&action=aim&u=' . $author_id) : '',
|
||||
'U_YIM' => ($user_info['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($user_info['user_yim']) . '&.src=pg' : '',
|
||||
'U_MSN' => ($user_info['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=msnm&u=' . $author_id) : '',
|
||||
'U_JABBER' => ($user_info['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $author_id) : '',
|
||||
|
||||
'U_DELETE' => ($auth->acl_get('u_pm_delete')) ? "$url&mode=compose&action=delete&f=$folder_id&p=" . $message_row['msg_id'] : '',
|
||||
|
@ -266,7 +266,6 @@ class ucp_profile
|
||||
$data = array(
|
||||
'icq' => request_var('icq', $user->data['user_icq']),
|
||||
'aim' => request_var('aim', $user->data['user_aim']),
|
||||
'msn' => request_var('msn', $user->data['user_msnm']),
|
||||
'yim' => request_var('yim', $user->data['user_yim']),
|
||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),
|
||||
'website' => request_var('website', $user->data['user_website']),
|
||||
@ -299,7 +298,6 @@ class ucp_profile
|
||||
array('string', true, 3, 15),
|
||||
array('match', true, '#^[0-9]+$#i')),
|
||||
'aim' => array('string', true, 3, 255),
|
||||
'msn' => array('string', true, 5, 255),
|
||||
'jabber' => array(
|
||||
array('string', true, 5, 255),
|
||||
array('jabber')),
|
||||
@ -351,7 +349,6 @@ class ucp_profile
|
||||
$sql_ary = array(
|
||||
'user_icq' => $data['icq'],
|
||||
'user_aim' => $data['aim'],
|
||||
'user_msnm' => $data['msn'],
|
||||
'user_yim' => $data['yim'],
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_website' => $data['website'],
|
||||
@ -423,7 +420,6 @@ class ucp_profile
|
||||
'ICQ' => $data['icq'],
|
||||
'YIM' => $data['yim'],
|
||||
'AIM' => $data['aim'],
|
||||
'MSN' => $data['msn'],
|
||||
'JABBER' => $data['jabber'],
|
||||
'WEBSITE' => $data['website'],
|
||||
'LOCATION' => $data['location'],
|
||||
|
@ -896,7 +896,6 @@ if (!$get_info)
|
||||
array('user_occ', 'users.user_occ', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_website', 'users.user_website', 'validate_website'),
|
||||
array('user_jabber', '', ''),
|
||||
array('user_msnm', 'users.user_msnm', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_yim', 'users.user_yim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
||||
|
@ -1196,6 +1196,11 @@ function database_update_info()
|
||||
'user_timezone' => array('VCHAR:100', ''),
|
||||
),
|
||||
),
|
||||
'drop_columns' => array(
|
||||
USERS_TABLE => array(
|
||||
'user_msnm',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -1284,7 +1284,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq VARCHAR(15) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
user_aim VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_yim VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_msnm VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_jabber VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_website VARCHAR(200) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_occ BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL,
|
||||
|
@ -1568,7 +1568,6 @@ CREATE TABLE [phpbb_users] (
|
||||
[user_icq] [varchar] (15) DEFAULT ('') NOT NULL ,
|
||||
[user_aim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_yim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_msnm] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_jabber] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_website] [varchar] (200) DEFAULT ('') NOT NULL ,
|
||||
[user_occ] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
||||
|
@ -932,7 +932,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq varbinary(15) DEFAULT '' NOT NULL,
|
||||
user_aim blob NOT NULL,
|
||||
user_yim blob NOT NULL,
|
||||
user_msnm blob NOT NULL,
|
||||
user_jabber blob NOT NULL,
|
||||
user_website blob NOT NULL,
|
||||
user_occ blob NOT NULL,
|
||||
|
@ -932,7 +932,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq varchar(15) DEFAULT '' NOT NULL,
|
||||
user_aim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_yim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_msnm varchar(255) DEFAULT '' NOT NULL,
|
||||
user_jabber varchar(255) DEFAULT '' NOT NULL,
|
||||
user_website varchar(200) DEFAULT '' NOT NULL,
|
||||
user_occ text NOT NULL,
|
||||
|
@ -1680,7 +1680,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq varchar2(15) DEFAULT '' ,
|
||||
user_aim varchar2(765) DEFAULT '' ,
|
||||
user_yim varchar2(765) DEFAULT '' ,
|
||||
user_msnm varchar2(765) DEFAULT '' ,
|
||||
user_jabber varchar2(765) DEFAULT '' ,
|
||||
user_website varchar2(600) DEFAULT '' ,
|
||||
user_occ clob DEFAULT '' ,
|
||||
|
@ -1182,7 +1182,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq varchar(15) DEFAULT '' NOT NULL,
|
||||
user_aim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_yim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_msnm varchar(255) DEFAULT '' NOT NULL,
|
||||
user_jabber varchar(255) DEFAULT '' NOT NULL,
|
||||
user_website varchar(200) DEFAULT '' NOT NULL,
|
||||
user_occ varchar(4000) DEFAULT '' NOT NULL,
|
||||
|
@ -454,10 +454,10 @@ INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id,
|
||||
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_subject, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents, forum_flags) VALUES ('{L_FORUMS_TEST_FORUM_TITLE}', '{L_FORUMS_TEST_FORUM_DESC}', 2, 3, 1, 1, 1, 1, 1, 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, '', '', '', '', '', '', '', 0, 0, '', 48);
|
||||
|
||||
# -- Users / Anonymous user
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd, user_allow_massemail) VALUES (2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0);
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd, user_allow_massemail) VALUES (2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', 0);
|
||||
|
||||
# -- username: Admin password: admin (change this or remove it once everything is working!)
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '');
|
||||
|
||||
# -- Groups
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_teampage, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GUESTS', 3, 0, '', 0, 0, '', '', '', 5);
|
||||
|
@ -906,7 +906,6 @@ CREATE TABLE phpbb_users (
|
||||
user_icq varchar(15) NOT NULL DEFAULT '',
|
||||
user_aim varchar(255) NOT NULL DEFAULT '',
|
||||
user_yim varchar(255) NOT NULL DEFAULT '',
|
||||
user_msnm varchar(255) NOT NULL DEFAULT '',
|
||||
user_jabber varchar(255) NOT NULL DEFAULT '',
|
||||
user_website varchar(200) NOT NULL DEFAULT '',
|
||||
user_occ text(65535) NOT NULL DEFAULT '',
|
||||
|
@ -186,7 +186,6 @@ $lang = array_merge($lang, array(
|
||||
'IMG_ICON_CONTACT_EMAIL' => 'Send email',
|
||||
'IMG_ICON_CONTACT_ICQ' => 'ICQ',
|
||||
'IMG_ICON_CONTACT_JABBER' => 'Jabber',
|
||||
'IMG_ICON_CONTACT_MSNM' => 'WLM',
|
||||
'IMG_ICON_CONTACT_PM' => 'Send message',
|
||||
'IMG_ICON_CONTACT_YAHOO' => 'YIM',
|
||||
'IMG_ICON_CONTACT_WWW' => 'Website',
|
||||
|
@ -368,7 +368,6 @@ $lang = array_merge($lang, array(
|
||||
'MODERATORS' => 'Moderators',
|
||||
'MONTH' => 'Month',
|
||||
'MOVE' => 'Move',
|
||||
'MSNM' => 'WLM',
|
||||
|
||||
'NA' => 'N/A',
|
||||
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
||||
@ -627,7 +626,6 @@ $lang = array_merge($lang, array(
|
||||
'TOO_LONG_INTERESTS' => 'The interests you entered is too long.',
|
||||
'TOO_LONG_JABBER' => 'The Jabber account name you entered is too long.',
|
||||
'TOO_LONG_LOCATION' => 'The location you entered is too long.',
|
||||
'TOO_LONG_MSN' => 'The WLM name you entered is too long.',
|
||||
'TOO_LONG_NEW_PASSWORD' => 'The password you entered is too long.',
|
||||
'TOO_LONG_OCCUPATION' => 'The occupation you entered is too long.',
|
||||
'TOO_LONG_PASSWORD_CONFIRM' => 'The password confirmation you entered is too long.',
|
||||
@ -648,7 +646,6 @@ $lang = array_merge($lang, array(
|
||||
'TOO_SHORT_INTERESTS' => 'The interests you entered is too short.',
|
||||
'TOO_SHORT_JABBER' => 'The Jabber account name you entered is too short.',
|
||||
'TOO_SHORT_LOCATION' => 'The location you entered is too short.',
|
||||
'TOO_SHORT_MSN' => 'The WLM name you entered is too short.',
|
||||
'TOO_SHORT_NEW_PASSWORD' => 'The password you entered is too short.',
|
||||
'TOO_SHORT_OCCUPATION' => 'The occupation you entered is too short.',
|
||||
'TOO_SHORT_PASSWORD_CONFIRM' => 'The password confirmation you entered is too short.',
|
||||
|
@ -78,9 +78,6 @@ $lang = array_merge($lang, array(
|
||||
'IM_JABBER' => 'Please note that users may have selected to not receive unsolicited instant messages.',
|
||||
'IM_JABBER_SUBJECT' => 'This is an automated message please do not reply! Message from user %1$s at %2$s.',
|
||||
'IM_MESSAGE' => 'Your message',
|
||||
'IM_MSNM' => 'Please note that you need Windows Live Messenger installed to use this.',
|
||||
'IM_MSNM_BROWSER' => 'Your browser does not support this.',
|
||||
'IM_MSNM_CONNECT' => 'WLM is not connected.\nYou have to connect to WLM to continue.',
|
||||
'IM_NAME' => 'Your Name',
|
||||
'IM_NO_DATA' => 'There is no suitable contact information for this user.',
|
||||
'IM_NO_JABBER' => 'Sorry, direct messaging of Jabber users is not supported on this board. You will need a Jabber client installed on your system to contact the recipient above.',
|
||||
@ -123,7 +120,6 @@ $lang = array_merge($lang, array(
|
||||
'SEND_IM' => 'Instant messaging',
|
||||
'SEND_JABBER_MESSAGE' => 'Send Jabber message',
|
||||
'SEND_MESSAGE' => 'Message',
|
||||
'SEND_MSNM_MESSAGE' => 'Send WLM message',
|
||||
'SEND_YIM_MESSAGE' => 'Send YIM message',
|
||||
'SORT_EMAIL' => 'Email',
|
||||
'SORT_LAST_ACTIVE' => 'Last active',
|
||||
|
@ -455,7 +455,6 @@ $lang = array_merge($lang, array(
|
||||
'UCP_MAIN_FRONT' => 'Front page',
|
||||
'UCP_MAIN_SUBSCRIBED' => 'Manage subscriptions',
|
||||
|
||||
'UCP_MSNM' => 'Windows Live Messenger',
|
||||
'UCP_NO_ATTACHMENTS' => 'You have posted no files.',
|
||||
|
||||
'UCP_PREFS' => 'Board preferences',
|
||||
|
@ -287,13 +287,6 @@ switch ($mode)
|
||||
$s_action = '';
|
||||
break;
|
||||
|
||||
case 'msnm':
|
||||
$lang = 'MSNM';
|
||||
$sql_field = 'user_msnm';
|
||||
$s_select = 'S_SEND_MSNM';
|
||||
$s_action = '';
|
||||
break;
|
||||
|
||||
case 'jabber':
|
||||
$lang = 'JABBER';
|
||||
$sql_field = 'user_jabber';
|
||||
@ -640,7 +633,6 @@ switch ($mode)
|
||||
'WWW_IMG' => $user->img('icon_contact_www', $user->lang['WWW']),
|
||||
'ICQ_IMG' => $user->img('icon_contact_icq', $user->lang['ICQ']),
|
||||
'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']),
|
||||
'MSN_IMG' => $user->img('icon_contact_msnm', $user->lang['MSNM']),
|
||||
'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']),
|
||||
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
||||
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
||||
@ -984,8 +976,8 @@ switch ($mode)
|
||||
$template_html = 'memberlist_body.html';
|
||||
|
||||
// Sorting
|
||||
$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'], 'f' => $user->lang['WEBSITE'], 'g' => $user->lang['ICQ'], 'h' => $user->lang['AIM'], 'i' => $user->lang['MSNM'], 'j' => $user->lang['YIM'], 'k' => $user->lang['JABBER']);
|
||||
$sort_key_sql = array('a' => 'u.username_clean', 'b' => 'u.user_from', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'f' => 'u.user_website', 'g' => 'u.user_icq', 'h' => 'u.user_aim', 'i' => 'u.user_msnm', 'j' => 'u.user_yim', 'k' => 'u.user_jabber');
|
||||
$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'], 'f' => $user->lang['WEBSITE'], 'g' => $user->lang['ICQ'], 'h' => $user->lang['AIM'], 'j' => $user->lang['YIM'], 'k' => $user->lang['JABBER']);
|
||||
$sort_key_sql = array('a' => 'u.username_clean', 'b' => 'u.user_from', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'f' => 'u.user_website', 'g' => 'u.user_icq', 'h' => 'u.user_aim', 'j' => 'u.user_yim', 'k' => 'u.user_jabber');
|
||||
|
||||
if ($auth->acl_get('a_user'))
|
||||
{
|
||||
@ -1028,7 +1020,7 @@ switch ($mode)
|
||||
$select_single = request_var('select_single', false);
|
||||
|
||||
// Search URL parameters, if any of these are in the URL we do a search
|
||||
$search_params = array('username', 'email', 'icq', 'aim', 'yahoo', 'msn', 'jabber', 'search_group_id', 'joined_select', 'active_select', 'count_select', 'joined', 'active', 'count', 'ip');
|
||||
$search_params = array('username', 'email', 'icq', 'aim', 'yahoo', 'jabber', 'search_group_id', 'joined_select', 'active_select', 'count_select', 'joined', 'active', 'count', 'ip');
|
||||
|
||||
// We validate form and field here, only id/class allowed
|
||||
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
|
||||
@ -1040,7 +1032,6 @@ switch ($mode)
|
||||
$icq = request_var('icq', '');
|
||||
$aim = request_var('aim', '');
|
||||
$yahoo = request_var('yahoo', '');
|
||||
$msn = request_var('msn', '');
|
||||
$jabber = request_var('jabber', '');
|
||||
$search_group_id = request_var('search_group_id', 0);
|
||||
|
||||
@ -1084,7 +1075,6 @@ switch ($mode)
|
||||
$sql_where .= ($icq) ? ' AND u.user_icq ' . $db->sql_like_expression(str_replace('*', $db->any_char, $icq)) . ' ' : '';
|
||||
$sql_where .= ($aim) ? ' AND u.user_aim ' . $db->sql_like_expression(str_replace('*', $db->any_char, $aim)) . ' ' : '';
|
||||
$sql_where .= ($yahoo) ? ' AND u.user_yim ' . $db->sql_like_expression(str_replace('*', $db->any_char, $yahoo)) . ' ' : '';
|
||||
$sql_where .= ($msn) ? ' AND u.user_msnm ' . $db->sql_like_expression(str_replace('*', $db->any_char, $msn)) . ' ' : '';
|
||||
$sql_where .= ($jabber) ? ' AND u.user_jabber ' . $db->sql_like_expression(str_replace('*', $db->any_char, $jabber)) . ' ' : '';
|
||||
$sql_where .= (is_numeric($count) && isset($find_key_match[$count_select])) ? ' AND u.user_posts ' . $find_key_match[$count_select] . ' ' . (int) $count . ' ' : '';
|
||||
|
||||
@ -1317,7 +1307,6 @@ switch ($mode)
|
||||
'icq' => array('icq', ''),
|
||||
'aim' => array('aim', ''),
|
||||
'yahoo' => array('yahoo', ''),
|
||||
'msn' => array('msn', ''),
|
||||
'jabber' => array('jabber', ''),
|
||||
'search_group_id' => array('search_group_id', 0),
|
||||
'joined_select' => array('joined_select', 'lt'),
|
||||
@ -1449,7 +1438,6 @@ switch ($mode)
|
||||
'ICQ' => $icq,
|
||||
'AIM' => $aim,
|
||||
'YAHOO' => $yahoo,
|
||||
'MSNM' => $msn,
|
||||
'JABBER' => $jabber,
|
||||
'JOINED' => implode('-', $joined),
|
||||
'ACTIVE' => implode('-', $active),
|
||||
@ -1605,7 +1593,6 @@ switch ($mode)
|
||||
'WWW_IMG' => $user->img('icon_contact_www', $user->lang['WWW']),
|
||||
'ICQ_IMG' => $user->img('icon_contact_icq', $user->lang['ICQ']),
|
||||
'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']),
|
||||
'MSN_IMG' => $user->img('icon_contact_msnm', $user->lang['MSNM']),
|
||||
'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']),
|
||||
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
||||
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
||||
@ -1621,7 +1608,6 @@ switch ($mode)
|
||||
'U_SORT_LOCATION' => $sort_url . '&sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_ICQ' => $sort_url . '&sk=g&sd=' . (($sort_key == 'g' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_AIM' => $sort_url . '&sk=h&sd=' . (($sort_key == 'h' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_MSN' => $sort_url . '&sk=i&sd=' . (($sort_key == 'i' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_YIM' => $sort_url . '&sk=j&sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
|
||||
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
@ -1748,14 +1734,12 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
||||
'U_ICQ' => ($data['user_icq']) ? 'http://www.icq.com/people/' . urlencode($data['user_icq']) . '/' : '',
|
||||
'U_AIM' => ($data['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=aim&u=' . $user_id) : '',
|
||||
'U_YIM' => ($data['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&.src=pg' : '',
|
||||
'U_MSN' => ($data['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=msnm&u=' . $user_id) : '',
|
||||
'U_JABBER' => ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&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_JABBER' => $data['user_jabber'],
|
||||
'USER_JABBER_IMG' => ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
<!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger -->
|
||||
<h2 class="solo">{L_SEND_IM}</h2>
|
||||
|
||||
<form method="post" action="{S_IM_ACTION}">
|
||||
@ -13,7 +12,7 @@
|
||||
<fieldset>
|
||||
<dl class="fields2">
|
||||
<dt><label>{L_IM_RECIPIENT}{L_COLON}</label></dt>
|
||||
<dd><strong>{USERNAME}</strong><!-- IF S_SEND_ICQ or S_SEND_AIM or S_SEND_MSNM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --><!-- IF PRESENCE_IMG --> {PRESENCE_IMG}<!-- ENDIF --></dd>
|
||||
<dd><strong>{USERNAME}</strong><!-- IF S_SEND_ICQ or S_SEND_AIM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --><!-- IF PRESENCE_IMG --> {PRESENCE_IMG}<!-- ENDIF --></dd>
|
||||
</dl>
|
||||
|
||||
<!-- IF S_SEND_ICQ -->
|
||||
@ -43,15 +42,6 @@
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_SEND_MSNM -->
|
||||
<dl class="fields2">
|
||||
<dt> </dt>
|
||||
<dd><object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
|
||||
<dd><a href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
|
||||
<dd><a href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_SEND_JABBER -->
|
||||
<dl class="fields2">
|
||||
<dt><label for="message">{L_IM_MESSAGE}{L_COLON}</label></dt>
|
||||
@ -85,74 +75,4 @@
|
||||
|
||||
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
|
||||
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
/** The following will not work with Windows Vista **/
|
||||
|
||||
var app = document.getElementById('objMessengerApp');
|
||||
|
||||
/**
|
||||
* Check whether the browser supports this and whether MSNM is connected
|
||||
*/
|
||||
function msn_supported()
|
||||
{
|
||||
// Does the browser support the MSNM object?
|
||||
if (app.MyStatus)
|
||||
{
|
||||
// Is MSNM connected?
|
||||
if (app.MyStatus == 1)
|
||||
{
|
||||
alert('{LA_IM_MSNM_CONNECT}');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('{LA_IM_MSNM_BROWSER}');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to your contact list
|
||||
*/
|
||||
function add_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.AddContact(0, address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Write IM to contact
|
||||
*/
|
||||
function im_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.InstantMessage(address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<!-- INCLUDE simple_footer.html -->
|
||||
|
@ -71,10 +71,6 @@ function insert_single(user)
|
||||
<dt><label for="yahoo">{L_YIM}{L_COLON}</label></dt>
|
||||
<dd><input type="text" name="yahoo" id="yahoo" value="{YAHOO}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="msn">{L_MSNM}{L_COLON}</label></dt>
|
||||
<dd><input type="text" name="msn" id="msn" value="{MSNM}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fields1 column2">
|
||||
|
@ -62,7 +62,6 @@
|
||||
<!-- IF U_EMAIL --><dt>{L_EMAIL_ADDRESS}{L_COLON}</dt> <dd><a href="{U_EMAIL}">{L_SEND_EMAIL_USER} {USERNAME}</a></dd><!-- ENDIF -->
|
||||
<!-- IF U_WWW --><dt>{L_WEBSITE}{L_COLON}</dt> <dd><a href="{U_WWW}" title="{L_VISIT_WEBSITE}{L_COLON} {U_WWW}">{U_WWW}</a></dd><!-- ENDIF -->
|
||||
<!-- IF U_PM --><dt>{L_PM}{L_COLON}</dt> <dd><a href="{U_PM}">{L_SEND_PRIVATE_MESSAGE}</a></dd><!-- ENDIF -->
|
||||
<!-- IF U_MSN or USER_MSN --><dt>{L_MSNM}{L_COLON}</dt> <dd><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_MSNM_MESSAGE}</a><!-- ELSE -->{USER_MSN}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_YIM or USER_YIM --><dt>{L_YIM}{L_COLON}</dt> <dd><!-- IF U_YIM --><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false;">{L_SEND_YIM_MESSAGE}</a><!-- ELSE -->{USER_YIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_AIM or USER_AIM --><dt>{L_AIM}{L_COLON}</dt> <dd><!-- IF U_AIM --><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_AIM_MESSAGE}</a><!-- ELSE -->{USER_AIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}{L_COLON}</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
|
@ -90,13 +90,12 @@
|
||||
<!-- END custom_fields -->
|
||||
|
||||
|
||||
<!-- IF U_PM or U_EMAIL or U_WWW or U_MSN or U_ICQ or U_YIM or U_AIM or U_JABBER -->
|
||||
<!-- IF U_PM or U_EMAIL or U_WWW or U_ICQ or U_YIM or U_AIM or U_JABBER -->
|
||||
<dd>
|
||||
<ul class="profile-icons">
|
||||
<!-- IF U_PM --><li class="pm-icon"><a href="{U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_EMAIL --><li class="email-icon"><a href="{U_EMAIL}" title="{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}"><span>{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_WWW --><li class="web-icon"><a href="{U_WWW}" title="{L_VISIT_WEBSITE}{L_COLON} {U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_MSN --><li class="msnm-icon"><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_ICQ --><li class="icq-icon"><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_YIM --><li class="yahoo-icon"><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_AIM --><li class="aim-icon"><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
|
@ -18,10 +18,6 @@
|
||||
<dt><label for="aim">{L_UCP_AIM}{L_COLON}</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}{L_COLON}</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}{L_COLON}</label></dt>
|
||||
<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
|
||||
|
@ -216,13 +216,12 @@
|
||||
<!-- END custom_fields -->
|
||||
|
||||
<!-- IF not S_IS_BOT -->
|
||||
<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
|
||||
<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
|
||||
<dd>
|
||||
<ul class="profile-icons">
|
||||
<!-- IF postrow.U_PM --><li class="pm-icon"><a href="{postrow.U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_EMAIL --><li class="email-icon"><a href="{postrow.U_EMAIL}" title="{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}"><span>{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_WWW --><li class="web-icon"><a href="{postrow.U_WWW}" title="{L_VISIT_WEBSITE}{L_COLON} {postrow.U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
|
@ -786,7 +786,7 @@
|
||||
padding-right: 11px;
|
||||
padding-left: 0;
|
||||
}
|
||||
.rtl .imageset.icon_contact_aim, .rtl .imageset.icon_contact_email, .rtl .imageset.icon_contact_icq, .rtl .imageset.icon_contact_jabber, .rtl .imageset.icon_contact_msnm, .rtl .imageset.icon_contact_www, .rtl .imageset.icon_contact_yahoo, .rtl .imageset.icon_post_delete, .rtl .imageset.icon_post_info, .rtl .imageset.icon_post_report, .rtl .imageset.icon_user_warn {
|
||||
.rtl .imageset.icon_contact_aim, .rtl .imageset.icon_contact_email, .rtl .imageset.icon_contact_icq, .rtl .imageset.icon_contact_jabber, .rtl .imageset.icon_contact_www, .rtl .imageset.icon_contact_yahoo, .rtl .imageset.icon_post_delete, .rtl .imageset.icon_post_info, .rtl .imageset.icon_post_report, .rtl .imageset.icon_user_warn {
|
||||
padding-right: 20px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
@ -122,7 +122,6 @@ ul.profile-icons li a:hover { background: none; }
|
||||
.aim-icon, .aim-icon a { background: none top left no-repeat; }
|
||||
.yahoo-icon, .yahoo-icon a { background: none top left no-repeat; }
|
||||
.web-icon, .web-icon a { background: none top left no-repeat; }
|
||||
.msnm-icon, .msnm-icon a { background: none top left no-repeat; }
|
||||
.icq-icon, .icq-icon a { background: none top left no-repeat; }
|
||||
.jabber-icon, .jabber-icon a { background: none top left no-repeat; }
|
||||
.pm-icon, .pm-icon a { background: none top left no-repeat; }
|
||||
@ -140,7 +139,6 @@ ul.profile-icons li.email-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.aim-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.yahoo-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.web-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.msnm-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.icq-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.jabber-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.pm-icon { width: 28px; height: 20px; }
|
||||
|
@ -686,7 +686,6 @@ a.sendemail {
|
||||
.aim-icon, .aim-icon a { background-image: url("./images/icon_contact_aim.gif"); }
|
||||
.yahoo-icon, .yahoo-icon a { background-image: url("./images/icon_contact_yahoo.gif"); }
|
||||
.web-icon, .web-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
||||
.msnm-icon, .msnm-icon a { background-image: url("./images/icon_contact_msnm.gif"); }
|
||||
.icq-icon, .icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
||||
.jabber-icon, .jabber-icon a { background-image: url("./images/icon_contact_jabber.gif"); }
|
||||
.pm-icon, .pm-icon a { background-image: url("./en/icon_contact_pm.gif"); }
|
||||
|
@ -280,11 +280,6 @@ span.imageset {
|
||||
padding-left: 20px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_msnm {
|
||||
background-image: url("./images/icon_contact_msnm.gif");
|
||||
padding-left: 20px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_www {
|
||||
background-image: url("./images/icon_contact_www.gif");
|
||||
padding-left: 20px;
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
<br clear="all" />
|
||||
|
||||
<!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger -->
|
||||
|
||||
<form method="post" action="{S_IM_ACTION}">
|
||||
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||
<tr>
|
||||
@ -14,7 +12,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><b class="genmed">{L_IM_RECIPIENT}{L_COLON} </b></td>
|
||||
<td class="row2"><span class="gen"><b>{USERNAME}</b><!-- IF S_SEND_ICQ or S_SEND_AIM or S_SEND_MSNM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --></span> <!-- IF PRESENCE_IMG -->{PRESENCE_IMG}<!-- ENDIF --></td>
|
||||
<td class="row2"><span class="gen"><b>{USERNAME}</b><!-- IF S_SEND_ICQ or S_SEND_AIM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --></span> <!-- IF PRESENCE_IMG -->{PRESENCE_IMG}<!-- ENDIF --></td>
|
||||
</tr>
|
||||
|
||||
<!-- IF S_SEND_AIM -->
|
||||
@ -26,85 +24,6 @@
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_SEND_MSNM -->
|
||||
<tr>
|
||||
<td class="row1" colspan="2" align="center">
|
||||
<object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object>
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
var app = document.getElementById('objMessengerApp');
|
||||
|
||||
/**
|
||||
* Check whether the browser supports this and whether MSNM is connected
|
||||
*/
|
||||
function msn_supported()
|
||||
{
|
||||
// Does the browser support the MSNM object?
|
||||
if (app.MyStatus)
|
||||
{
|
||||
// Is MSNM connected?
|
||||
if (app.MyStatus == 1)
|
||||
{
|
||||
alert('{LA_IM_MSNM_CONNECT}');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('{LA_IM_MSNM_BROWSER}');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to your contact list
|
||||
*/
|
||||
function add_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.AddContact(0, address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Write IM to contact
|
||||
*/
|
||||
function im_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.InstantMessage(address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<a class="gen" href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a><br /><a class="gen" href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cat" colspan="2" align="center"> </td>
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_SEND_JABBER -->
|
||||
<tr>
|
||||
<td class="row1"><b class="genmed">{L_IM_MESSAGE}{L_COLON} </b></td>
|
||||
|
@ -102,14 +102,14 @@
|
||||
<!-- ELSE -->
|
||||
<td colspan="2" class="row1"> </td>
|
||||
<!-- ENDIF -->
|
||||
<td class="row1"><b class="genmed">{L_MSNM}{L_COLON}</b></td>
|
||||
<td class="row2"><input class="post" type="text" name="msn" value="{MSNM}" /></td>
|
||||
<td class="row1"><b class="genmed">{L_JABBER}{L_COLON}</b></td>
|
||||
<td class="row2"><input class="post" type="text" name="jabber" value="{JABBER}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><b class="genmed">{L_POSTS}{L_COLON}</b></td>
|
||||
<td class="row2"><select name="count_select">{S_COUNT_OPTIONS}</select> <input class="post" type="text" name="count" value="{COUNT}" /></td>
|
||||
<td class="row1"><b class="genmed">{L_JABBER}{L_COLON}</b></td>
|
||||
<td class="row2"><input class="post" type="text" name="jabber" value="{JABBER}" /></td>
|
||||
<td class="row1"> </td>
|
||||
<td class="row2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><b class="genmed">{L_SORT_BY}{L_COLON}</b></td>
|
||||
|
@ -116,10 +116,6 @@
|
||||
<td><a href="{U_PM}" class="imageset">{PM_IMG}</a></td>
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<tr>
|
||||
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_MSNM}{L_COLON} </td>
|
||||
<td><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false" class="imageset">{MSN_IMG}</a><!-- ELSEIF USER_MSN -->{USER_MSN}<!-- ENDIF --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_YIM}{L_COLON} </td>
|
||||
<td><!-- IF U_YIM --><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false" class="imageset">{YIM_IMG}</a><!-- ELSEIF USER_YIM -->{USER_YIM}<!-- ENDIF --></td>
|
||||
|
@ -20,10 +20,6 @@
|
||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_AIM}{L_COLON} </b></td>
|
||||
<td class="row2"><input class="post" type="text" name="aim" size="30" maxlength="255" value="{AIM}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_MSNM}{L_COLON} </b></td>
|
||||
<td class="row2"><input class="post" type="text" name="msn" size="30" maxlength="255" value="{MSN}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_YIM}{L_COLON} </b></td>
|
||||
<td class="row2"><input class="post" type="text" name="yim" size="30" maxlength="255" value="{YIM}" /></td>
|
||||
|
@ -19,11 +19,6 @@
|
||||
padding-left: 72px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_msnm {
|
||||
background-image: url("./icon_contact_msnm.gif");
|
||||
padding-left: 72px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_pm {
|
||||
background-image: url("./icon_contact_pm.gif");
|
||||
padding-left: 72px;
|
||||
|
@ -1008,11 +1008,6 @@ a.imageset {
|
||||
padding-left: 72px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_msnm {
|
||||
background-image: url("./en/icon_contact_msnm.gif");
|
||||
padding-left: 72px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_contact_pm {
|
||||
background-image: url("./en/icon_contact_pm.gif");
|
||||
padding-left: 72px;
|
||||
|
@ -617,7 +617,6 @@ $template->assign_vars(array(
|
||||
'WWW_IMG' => $user->img('icon_contact_www', 'VISIT_WEBSITE'),
|
||||
'ICQ_IMG' => $user->img('icon_contact_icq', 'ICQ'),
|
||||
'AIM_IMG' => $user->img('icon_contact_aim', 'AIM'),
|
||||
'MSN_IMG' => $user->img('icon_contact_msnm', 'MSNM'),
|
||||
'YIM_IMG' => $user->img('icon_contact_yahoo', 'YIM'),
|
||||
'JABBER_IMG' => $user->img('icon_contact_jabber', 'JABBER') ,
|
||||
'REPORT_IMG' => $user->img('icon_post_report', 'REPORT_POST'),
|
||||
@ -1095,7 +1094,6 @@ while ($row = $db->sql_fetchrow($result))
|
||||
'icq_status_img' => '',
|
||||
'icq' => '',
|
||||
'aim' => '',
|
||||
'msn' => '',
|
||||
'yim' => '',
|
||||
'jabber' => '',
|
||||
'search' => '',
|
||||
@ -1163,7 +1161,6 @@ while ($row = $db->sql_fetchrow($result))
|
||||
'profile' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$poster_id"),
|
||||
'www' => $row['user_website'],
|
||||
'aim' => ($row['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=aim&u=$poster_id") : '',
|
||||
'msn' => ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=msnm&u=$poster_id") : '',
|
||||
'yim' => ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row['user_yim']) . '&.src=pg' : '',
|
||||
'jabber' => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',
|
||||
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
|
||||
@ -1585,7 +1582,6 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
'U_WWW' => $user_cache[$poster_id]['www'],
|
||||
'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_JABBER' => $user_cache[$poster_id]['jabber'],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user