mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12235] Convert WLM to custom profile field
PHPBB3-12235
This commit is contained in:
parent
03ef39c1f1
commit
83a7e632b9
34 changed files with 144 additions and 239 deletions
|
@ -6,10 +6,6 @@
|
||||||
<dt><label for="aim">{L_UCP_AIM}{L_COLON}</label></dt>
|
<dt><label for="aim">{L_UCP_AIM}{L_COLON}</label></dt>
|
||||||
<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
|
<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
|
||||||
<dt><label for="msn">{L_UCP_MSNM}{L_COLON}</label></dt>
|
|
||||||
<dd><input type="email" id="msn" name="msn" value="{MSN}" /></dd>
|
|
||||||
</dl>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="yim">{L_UCP_YIM}{L_COLON}</label></dt>
|
<dt><label for="yim">{L_UCP_YIM}{L_COLON}</label></dt>
|
||||||
<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
|
<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
|
||||||
|
|
|
@ -372,7 +372,6 @@ function make_user($username)
|
||||||
$viewemail = 0;
|
$viewemail = 0;
|
||||||
$aim = 0;
|
$aim = 0;
|
||||||
$yim = 0;
|
$yim = 0;
|
||||||
$msn = 0;
|
|
||||||
$attachsig = 1;
|
$attachsig = 1;
|
||||||
$allowsmilies = 1;
|
$allowsmilies = 1;
|
||||||
$allowhtml = 1;
|
$allowhtml = 1;
|
||||||
|
@ -417,8 +416,8 @@ function make_user($username)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, 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)
|
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, 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', '$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, ";
|
VALUES ($new_user_id, '$username', " . time() . ", '$password', '$email', '$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, '')";
|
$sql .= "1, '')";
|
||||||
|
|
|
@ -1361,7 +1361,6 @@ class acp_users
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'aim' => request_var('aim', $user_row['user_aim']),
|
'aim' => request_var('aim', $user_row['user_aim']),
|
||||||
'msn' => request_var('msn', $user_row['user_msnm']),
|
|
||||||
'yim' => request_var('yim', $user_row['user_yim']),
|
'yim' => request_var('yim', $user_row['user_yim']),
|
||||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),
|
'jabber' => utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),
|
||||||
'bday_day' => 0,
|
'bday_day' => 0,
|
||||||
|
@ -1384,7 +1383,6 @@ class acp_users
|
||||||
{
|
{
|
||||||
$error = validate_data($data, array(
|
$error = validate_data($data, array(
|
||||||
'aim' => array('string', true, 3, 255),
|
'aim' => array('string', true, 3, 255),
|
||||||
'msn' => array('string', true, 5, 255),
|
|
||||||
'jabber' => array(
|
'jabber' => array(
|
||||||
array('string', true, 5, 255),
|
array('string', true, 5, 255),
|
||||||
array('jabber')),
|
array('jabber')),
|
||||||
|
@ -1411,7 +1409,6 @@ class acp_users
|
||||||
{
|
{
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'user_aim' => $data['aim'],
|
'user_aim' => $data['aim'],
|
||||||
'user_msnm' => $data['msn'],
|
|
||||||
'user_yim' => $data['yim'],
|
'user_yim' => $data['yim'],
|
||||||
'user_jabber' => $data['jabber'],
|
'user_jabber' => $data['jabber'],
|
||||||
'user_birthday' => $data['user_birthday'],
|
'user_birthday' => $data['user_birthday'],
|
||||||
|
@ -1459,7 +1456,6 @@ class acp_users
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'YIM' => $data['yim'],
|
'YIM' => $data['yim'],
|
||||||
'AIM' => $data['aim'],
|
'AIM' => $data['aim'],
|
||||||
'MSN' => $data['msn'],
|
|
||||||
'JABBER' => $data['jabber'],
|
'JABBER' => $data['jabber'],
|
||||||
|
|
||||||
'S_BIRTHDAY_DAY_OPTIONS' => $s_birthday_day_options,
|
'S_BIRTHDAY_DAY_OPTIONS' => $s_birthday_day_options,
|
||||||
|
|
|
@ -795,6 +795,7 @@ $schema_data['phpbb_profile_fields_data'] = array(
|
||||||
'pf_phpbb_interests' => array('TEXT_UNI', ''),
|
'pf_phpbb_interests' => array('TEXT_UNI', ''),
|
||||||
'pf_phpbb_occupation' => array('TEXT_UNI', ''),
|
'pf_phpbb_occupation' => array('TEXT_UNI', ''),
|
||||||
'pf_phpbb_icq' => array('VCHAR', ''),
|
'pf_phpbb_icq' => array('VCHAR', ''),
|
||||||
|
'pf_phpbb_wlm' => array('VCHAR', ''),
|
||||||
'pf_phpbb_website' => array('VCHAR', ''),
|
'pf_phpbb_website' => array('VCHAR', ''),
|
||||||
),
|
),
|
||||||
'PRIMARY_KEY' => 'user_id',
|
'PRIMARY_KEY' => 'user_id',
|
||||||
|
@ -1176,7 +1177,6 @@ $schema_data['phpbb_users'] = array(
|
||||||
'user_sig_bbcode_bitfield' => array('VCHAR:255', ''),
|
'user_sig_bbcode_bitfield' => array('VCHAR:255', ''),
|
||||||
'user_aim' => array('VCHAR_UNI', ''),
|
'user_aim' => array('VCHAR_UNI', ''),
|
||||||
'user_yim' => array('VCHAR_UNI', ''),
|
'user_yim' => array('VCHAR_UNI', ''),
|
||||||
'user_msnm' => array('VCHAR_UNI', ''),
|
|
||||||
'user_jabber' => array('VCHAR_UNI', ''),
|
'user_jabber' => array('VCHAR_UNI', ''),
|
||||||
'user_form_salt' => array('VCHAR_UNI:32', ''),
|
'user_form_salt' => array('VCHAR_UNI:32', ''),
|
||||||
'user_new' => array('BOOL', 1),
|
'user_new' => array('BOOL', 1),
|
||||||
|
|
|
@ -211,7 +211,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||||
'U_PM' => ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_info['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id) : '',
|
'U_PM' => ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_info['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id) : '',
|
||||||
'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_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_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_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'] : '',
|
'U_DELETE' => ($auth->acl_get('u_pm_delete')) ? "$url&mode=compose&action=delete&f=$folder_id&p=" . $message_row['msg_id'] : '',
|
||||||
|
|
|
@ -265,7 +265,6 @@ class ucp_profile
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'aim' => request_var('aim', $user->data['user_aim']),
|
'aim' => request_var('aim', $user->data['user_aim']),
|
||||||
'msn' => request_var('msn', $user->data['user_msnm']),
|
|
||||||
'yim' => request_var('yim', $user->data['user_yim']),
|
'yim' => request_var('yim', $user->data['user_yim']),
|
||||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),
|
'jabber' => utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),
|
||||||
);
|
);
|
||||||
|
@ -291,7 +290,6 @@ class ucp_profile
|
||||||
{
|
{
|
||||||
$validate_array = array(
|
$validate_array = array(
|
||||||
'aim' => array('string', true, 3, 255),
|
'aim' => array('string', true, 3, 255),
|
||||||
'msn' => array('string', true, 5, 255),
|
|
||||||
'jabber' => array(
|
'jabber' => array(
|
||||||
array('string', true, 5, 255),
|
array('string', true, 5, 255),
|
||||||
array('jabber')),
|
array('jabber')),
|
||||||
|
@ -336,7 +334,6 @@ class ucp_profile
|
||||||
|
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'user_aim' => $data['aim'],
|
'user_aim' => $data['aim'],
|
||||||
'user_msnm' => $data['msn'],
|
|
||||||
'user_yim' => $data['yim'],
|
'user_yim' => $data['yim'],
|
||||||
'user_jabber' => $data['jabber'],
|
'user_jabber' => $data['jabber'],
|
||||||
'user_notify_type' => $data['notify'],
|
'user_notify_type' => $data['notify'],
|
||||||
|
@ -403,7 +400,6 @@ class ucp_profile
|
||||||
|
|
||||||
'YIM' => $data['yim'],
|
'YIM' => $data['yim'],
|
||||||
'AIM' => $data['aim'],
|
'AIM' => $data['aim'],
|
||||||
'MSN' => $data['msn'],
|
|
||||||
'JABBER' => $data['jabber'],
|
'JABBER' => $data['jabber'],
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -907,7 +907,6 @@ if (!$get_info)
|
||||||
array('user_inactive_time', '', 'phpbb_inactive_time'),
|
array('user_inactive_time', '', 'phpbb_inactive_time'),
|
||||||
|
|
||||||
array('user_jabber', '', ''),
|
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_yim', 'users.user_yim', array('function1' => 'phpbb_set_encoding')),
|
||||||
array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')),
|
array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')),
|
||||||
array('user_rank', 'users.user_rank', 'intval'),
|
array('user_rank', 'users.user_rank', 'intval'),
|
||||||
|
@ -962,6 +961,7 @@ if (!$get_info)
|
||||||
array('pf_phpbb_interests', 'users.user_interests', array('function1' => 'phpbb_set_encoding')),
|
array('pf_phpbb_interests', 'users.user_interests', array('function1' => 'phpbb_set_encoding')),
|
||||||
array('pf_phpbb_location', 'users.user_from', array('function1' => 'phpbb_set_encoding')),
|
array('pf_phpbb_location', 'users.user_from', array('function1' => 'phpbb_set_encoding')),
|
||||||
array('pf_phpbb_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
array('pf_phpbb_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
||||||
|
array('pf_phpbb_wlm', 'users.user_msnm', array('function1' => 'phpbb_set_encoding')),
|
||||||
array('pf_phpbb_website', 'users.user_website', 'validate_website'),
|
array('pf_phpbb_website', 'users.user_website', 'validate_website'),
|
||||||
|
|
||||||
'where' => 'users.user_id <> -1',
|
'where' => 'users.user_id <> -1',
|
||||||
|
|
|
@ -467,10 +467,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_approved, forum_posts_unapproved, forum_posts_softdeleted, forum_topics_approved, forum_topics_unapproved, forum_topics_softdeleted, 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, 0, 0, 1, 0, 0, 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, '', '', '', '', '', '', '', 0, 0, '', 48);
|
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts_approved, forum_posts_unapproved, forum_posts_softdeleted, forum_topics_approved, forum_topics_unapproved, forum_topics_softdeleted, 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, 0, 0, 1, 0, 0, 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, '', '', '', '', '', '', '', 0, 0, '', 48);
|
||||||
|
|
||||||
# -- Users / Anonymous user
|
# -- 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_aim, user_yim, user_msnm, user_jabber, 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_aim, user_yim, user_jabber, 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!)
|
# -- 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_aim, user_yim, user_msnm, user_jabber, 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_aim, user_yim, user_jabber, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '');
|
||||||
|
|
||||||
# -- Groups
|
# -- Groups
|
||||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GUESTS', 3, 0, '', 0, '', '', '', 5);
|
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GUESTS', 3, 0, '', 0, '', '', '', 5);
|
||||||
|
@ -793,6 +793,7 @@ INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_len
|
||||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_occupation', 'profilefields.type.text', 'phpbb_occupation', '3|30', '2', '500', '', '', '.*', 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 3, 0, '', '');
|
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_occupation', 'profilefields.type.text', 'phpbb_occupation', '3|30', '2', '500', '', '', '.*', 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 3, 0, '', '');
|
||||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_icq', 'profilefields.type.string', 'phpbb_icq', '20', '3', '15', '', '', '[0-9]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 4, 1, 'SEND_ICQ_MESSAGE', 'https://www.icq.com/people/%s/');
|
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_icq', 'profilefields.type.string', 'phpbb_icq', '20', '3', '15', '', '', '[0-9]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 4, 1, 'SEND_ICQ_MESSAGE', 'https://www.icq.com/people/%s/');
|
||||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_website', 'profilefields.type.url', 'phpbb_website', '40', '12', '255', '', '', '', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 5, 1, 'VISIT_WEBSITE', '%s');
|
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_website', 'profilefields.type.url', 'phpbb_website', '40', '12', '255', '', '', '', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 5, 1, 'VISIT_WEBSITE', '%s');
|
||||||
|
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_wlm', 'profilefields.type.string', 'phpbb_wlm', '40', '5', '255', '', '', '.*', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 6, 1, '', '');
|
||||||
|
|
||||||
# User Notification Options (for first user)
|
# User Notification Options (for first user)
|
||||||
INSERT INTO phpbb_user_notifications (item_type, item_id, user_id, method) VALUES('post', 0, 2, '');
|
INSERT INTO phpbb_user_notifications (item_type, item_id, user_id, method) VALUES('post', 0, 2, '');
|
||||||
|
|
|
@ -185,7 +185,6 @@ $lang = array_merge($lang, array(
|
||||||
'IMG_ICON_CONTACT_AIM' => 'AIM',
|
'IMG_ICON_CONTACT_AIM' => 'AIM',
|
||||||
'IMG_ICON_CONTACT_EMAIL' => 'Send email',
|
'IMG_ICON_CONTACT_EMAIL' => 'Send email',
|
||||||
'IMG_ICON_CONTACT_JABBER' => 'Jabber',
|
'IMG_ICON_CONTACT_JABBER' => 'Jabber',
|
||||||
'IMG_ICON_CONTACT_MSNM' => 'WLM',
|
|
||||||
'IMG_ICON_CONTACT_PM' => 'Send message',
|
'IMG_ICON_CONTACT_PM' => 'Send message',
|
||||||
'IMG_ICON_CONTACT_YAHOO' => 'YIM',
|
'IMG_ICON_CONTACT_YAHOO' => 'YIM',
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,6 @@ $lang = array_merge($lang, array(
|
||||||
'MODERATORS' => 'Moderators',
|
'MODERATORS' => 'Moderators',
|
||||||
'MONTH' => 'Month',
|
'MONTH' => 'Month',
|
||||||
'MOVE' => 'Move',
|
'MOVE' => 'Move',
|
||||||
'MSNM' => 'WLM',
|
|
||||||
|
|
||||||
'NA' => 'N/A',
|
'NA' => 'N/A',
|
||||||
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
||||||
|
@ -683,7 +682,6 @@ $lang = array_merge($lang, array(
|
||||||
'TOO_LONG_CONFIRM_CODE' => 'The confirm code you entered is too long.',
|
'TOO_LONG_CONFIRM_CODE' => 'The confirm code you entered is too long.',
|
||||||
'TOO_LONG_DATEFORMAT' => 'The date format you entered is too long.',
|
'TOO_LONG_DATEFORMAT' => 'The date format you entered is too long.',
|
||||||
'TOO_LONG_JABBER' => 'The Jabber account name you entered is too long.',
|
'TOO_LONG_JABBER' => 'The Jabber account name 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_NEW_PASSWORD' => 'The password you entered is too long.',
|
||||||
'TOO_LONG_PASSWORD_CONFIRM' => 'The password confirmation you entered is too long.',
|
'TOO_LONG_PASSWORD_CONFIRM' => 'The password confirmation you entered is too long.',
|
||||||
'TOO_LONG_USER_PASSWORD' => 'The password you entered is too long.',
|
'TOO_LONG_USER_PASSWORD' => 'The password you entered is too long.',
|
||||||
|
@ -699,7 +697,6 @@ $lang = array_merge($lang, array(
|
||||||
'TOO_SHORT_CONFIRM_CODE' => 'The confirm code you entered is too short.',
|
'TOO_SHORT_CONFIRM_CODE' => 'The confirm code you entered is too short.',
|
||||||
'TOO_SHORT_DATEFORMAT' => 'The date format you entered is too short.',
|
'TOO_SHORT_DATEFORMAT' => 'The date format you entered is too short.',
|
||||||
'TOO_SHORT_JABBER' => 'The Jabber account name you entered is too short.',
|
'TOO_SHORT_JABBER' => 'The Jabber account name 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_NEW_PASSWORD' => 'The password you entered is too short.',
|
||||||
'TOO_SHORT_PASSWORD_CONFIRM' => 'The password confirmation you entered is too short.',
|
'TOO_SHORT_PASSWORD_CONFIRM' => 'The password confirmation you entered is too short.',
|
||||||
'TOO_SHORT_USER_PASSWORD' => 'The password you entered is too short.',
|
'TOO_SHORT_USER_PASSWORD' => 'The password you entered is too short.',
|
||||||
|
@ -818,6 +815,7 @@ $lang = array_merge($lang, array(
|
||||||
'WEBSITE' => 'Website',
|
'WEBSITE' => 'Website',
|
||||||
'WHOIS' => 'Whois',
|
'WHOIS' => 'Whois',
|
||||||
'WHO_IS_ONLINE' => 'Who is online',
|
'WHO_IS_ONLINE' => 'Who is online',
|
||||||
|
'WLM' => 'WLM',
|
||||||
'WRONG_PASSWORD' => 'You entered an incorrect password.',
|
'WRONG_PASSWORD' => 'You entered an incorrect password.',
|
||||||
|
|
||||||
'WRONG_DATA_COLOUR' => 'The colour value you entered is invalid.',
|
'WRONG_DATA_COLOUR' => 'The colour value you entered is invalid.',
|
||||||
|
|
|
@ -77,9 +77,6 @@ $lang = array_merge($lang, array(
|
||||||
'IM_JABBER' => 'Please note that users may have selected to not receive unsolicited instant messages.',
|
'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_JABBER_SUBJECT' => 'This is an automated message please do not reply! Message from user %1$s at %2$s.',
|
||||||
'IM_MESSAGE' => 'Your message',
|
'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_NAME' => 'Your Name',
|
||||||
'IM_NO_DATA' => 'There is no suitable contact information for this user.',
|
'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.',
|
'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.',
|
||||||
|
@ -122,7 +119,6 @@ $lang = array_merge($lang, array(
|
||||||
'SEND_IM' => 'Instant messaging',
|
'SEND_IM' => 'Instant messaging',
|
||||||
'SEND_JABBER_MESSAGE' => 'Send Jabber message',
|
'SEND_JABBER_MESSAGE' => 'Send Jabber message',
|
||||||
'SEND_MESSAGE' => 'Message',
|
'SEND_MESSAGE' => 'Message',
|
||||||
'SEND_MSNM_MESSAGE' => 'Send WLM message',
|
|
||||||
'SEND_YIM_MESSAGE' => 'Send YIM message',
|
'SEND_YIM_MESSAGE' => 'Send YIM message',
|
||||||
'SORT_EMAIL' => 'Email',
|
'SORT_EMAIL' => 'Email',
|
||||||
'SORT_LAST_ACTIVE' => 'Last active',
|
'SORT_LAST_ACTIVE' => 'Last active',
|
||||||
|
|
|
@ -503,7 +503,6 @@ $lang = array_merge($lang, array(
|
||||||
'UCP_MAIN_FRONT' => 'Front page',
|
'UCP_MAIN_FRONT' => 'Front page',
|
||||||
'UCP_MAIN_SUBSCRIBED' => 'Manage subscriptions',
|
'UCP_MAIN_SUBSCRIBED' => 'Manage subscriptions',
|
||||||
|
|
||||||
'UCP_MSNM' => 'Windows Live Messenger',
|
|
||||||
'UCP_NO_ATTACHMENTS' => 'You have posted no files.',
|
'UCP_NO_ATTACHMENTS' => 'You have posted no files.',
|
||||||
|
|
||||||
'UCP_NOTIFICATION_LIST' => 'Manage notifications',
|
'UCP_NOTIFICATION_LIST' => 'Manage notifications',
|
||||||
|
|
|
@ -312,13 +312,6 @@ switch ($mode)
|
||||||
$s_action = '';
|
$s_action = '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'msnm':
|
|
||||||
$lang = 'MSNM';
|
|
||||||
$sql_field = 'user_msnm';
|
|
||||||
$s_select = 'S_SEND_MSNM';
|
|
||||||
$s_action = '';
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'jabber':
|
case 'jabber':
|
||||||
$lang = 'JABBER';
|
$lang = 'JABBER';
|
||||||
$sql_field = 'user_jabber';
|
$sql_field = 'user_jabber';
|
||||||
|
@ -651,7 +644,6 @@ switch ($mode)
|
||||||
'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']),
|
'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']),
|
||||||
'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']),
|
'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']),
|
||||||
'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']),
|
'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']),
|
'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']),
|
||||||
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
||||||
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
||||||
|
@ -996,8 +988,8 @@ switch ($mode)
|
||||||
$pagination = $phpbb_container->get('pagination');
|
$pagination = $phpbb_container->get('pagination');
|
||||||
|
|
||||||
// Sorting
|
// Sorting
|
||||||
$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'h' => $user->lang['AIM'], 'i' => $user->lang['MSNM'], 'j' => $user->lang['YIM'], 'k' => $user->lang['JABBER']);
|
$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'h' => $user->lang['AIM'], 'j' => $user->lang['YIM'], 'k' => $user->lang['JABBER']);
|
||||||
$sort_key_sql = array('a' => 'u.username_clean', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'h' => 'u.user_aim', 'i' => 'u.user_msnm', 'j' => 'u.user_yim', 'k' => 'u.user_jabber');
|
$sort_key_sql = array('a' => 'u.username_clean', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'h' => 'u.user_aim', 'j' => 'u.user_yim', 'k' => 'u.user_jabber');
|
||||||
|
|
||||||
if ($auth->acl_get('a_user'))
|
if ($auth->acl_get('a_user'))
|
||||||
{
|
{
|
||||||
|
@ -1040,7 +1032,7 @@ switch ($mode)
|
||||||
$select_single = request_var('select_single', false);
|
$select_single = request_var('select_single', false);
|
||||||
|
|
||||||
// Search URL parameters, if any of these are in the URL we do a search
|
// Search URL parameters, if any of these are in the URL we do a search
|
||||||
$search_params = array('username', 'email', 'aim', 'yahoo', 'msn', 'jabber', 'search_group_id', 'joined_select', 'active_select', 'count_select', 'joined', 'active', 'count', 'ip');
|
$search_params = array('username', 'email', '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
|
// We validate form and field here, only id/class allowed
|
||||||
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
|
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
|
||||||
|
@ -1051,7 +1043,6 @@ switch ($mode)
|
||||||
$email = strtolower(request_var('email', ''));
|
$email = strtolower(request_var('email', ''));
|
||||||
$aim = request_var('aim', '');
|
$aim = request_var('aim', '');
|
||||||
$yahoo = request_var('yahoo', '');
|
$yahoo = request_var('yahoo', '');
|
||||||
$msn = request_var('msn', '');
|
|
||||||
$jabber = request_var('jabber', '');
|
$jabber = request_var('jabber', '');
|
||||||
$search_group_id = request_var('search_group_id', 0);
|
$search_group_id = request_var('search_group_id', 0);
|
||||||
|
|
||||||
|
@ -1094,7 +1085,6 @@ switch ($mode)
|
||||||
$sql_where .= ($auth->acl_get('a_user') && $email) ? ' AND u.user_email ' . $db->sql_like_expression(str_replace('*', $db->any_char, $email)) . ' ' : '';
|
$sql_where .= ($auth->acl_get('a_user') && $email) ? ' AND u.user_email ' . $db->sql_like_expression(str_replace('*', $db->any_char, $email)) . ' ' : '';
|
||||||
$sql_where .= ($aim) ? ' AND u.user_aim ' . $db->sql_like_expression(str_replace('*', $db->any_char, $aim)) . ' ' : '';
|
$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 .= ($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 .= ($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 . ' ' : '';
|
$sql_where .= (is_numeric($count) && isset($find_key_match[$count_select])) ? ' AND u.user_posts ' . $find_key_match[$count_select] . ' ' . (int) $count . ' ' : '';
|
||||||
|
|
||||||
|
@ -1325,7 +1315,6 @@ switch ($mode)
|
||||||
'email' => array('email', ''),
|
'email' => array('email', ''),
|
||||||
'aim' => array('aim', ''),
|
'aim' => array('aim', ''),
|
||||||
'yahoo' => array('yahoo', ''),
|
'yahoo' => array('yahoo', ''),
|
||||||
'msn' => array('msn', ''),
|
|
||||||
'jabber' => array('jabber', ''),
|
'jabber' => array('jabber', ''),
|
||||||
'search_group_id' => array('search_group_id', 0),
|
'search_group_id' => array('search_group_id', 0),
|
||||||
'joined_select' => array('joined_select', 'lt'),
|
'joined_select' => array('joined_select', 'lt'),
|
||||||
|
@ -1456,7 +1445,6 @@ switch ($mode)
|
||||||
'EMAIL' => $email,
|
'EMAIL' => $email,
|
||||||
'AIM' => $aim,
|
'AIM' => $aim,
|
||||||
'YAHOO' => $yahoo,
|
'YAHOO' => $yahoo,
|
||||||
'MSNM' => $msn,
|
|
||||||
'JABBER' => $jabber,
|
'JABBER' => $jabber,
|
||||||
'JOINED' => implode('-', $joined),
|
'JOINED' => implode('-', $joined),
|
||||||
'ACTIVE' => implode('-', $active),
|
'ACTIVE' => implode('-', $active),
|
||||||
|
@ -1633,7 +1621,6 @@ switch ($mode)
|
||||||
'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']),
|
'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']),
|
||||||
'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']),
|
'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']),
|
||||||
'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']),
|
'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']),
|
'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']),
|
||||||
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']),
|
||||||
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']),
|
||||||
|
@ -1645,7 +1632,6 @@ switch ($mode)
|
||||||
'U_SORT_POSTS' => $sort_url . '&sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
|
'U_SORT_POSTS' => $sort_url . '&sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||||
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
|
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||||
'U_SORT_AIM' => $sort_url . '&sk=h&sd=' . (($sort_key == 'h' && $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_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_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'),
|
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||||
|
@ -1768,12 +1754,10 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
||||||
'U_EMAIL' => $email,
|
'U_EMAIL' => $email,
|
||||||
'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_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_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) : '',
|
'U_JABBER' => ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '',
|
||||||
|
|
||||||
'USER_AIM' => $data['user_aim'],
|
'USER_AIM' => $data['user_aim'],
|
||||||
'USER_YIM' => $data['user_yim'],
|
'USER_YIM' => $data['user_yim'],
|
||||||
'USER_MSN' => $data['user_msnm'],
|
|
||||||
'USER_JABBER' => $data['user_jabber'],
|
'USER_JABBER' => $data['user_jabber'],
|
||||||
'USER_JABBER_IMG' => ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
'USER_JABBER_IMG' => ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
||||||
|
|
||||||
|
|
51
phpBB/phpbb/db/migration/data/v310/profilefield_wlm.php
Normal file
51
phpBB/phpbb/db/migration/data/v310/profilefield_wlm.php
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package migration
|
||||||
|
* @copyright (c) 2014 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace phpbb\db\migration\data\v310;
|
||||||
|
|
||||||
|
class profilefield_wlm extends \phpbb\db\migration\profilefield_base_migration
|
||||||
|
{
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v310\profilefield_website_cleanup',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected $profilefield_name = 'phpbb_wlm';
|
||||||
|
|
||||||
|
protected $profilefield_database_type = array('VCHAR', '');
|
||||||
|
|
||||||
|
protected $profilefield_data = array(
|
||||||
|
'field_name' => 'phpbb_wlm',
|
||||||
|
'field_type' => 'profilefields.type.string',
|
||||||
|
'field_ident' => 'phpbb_wlm',
|
||||||
|
'field_length' => '40',
|
||||||
|
'field_minlen' => '5',
|
||||||
|
'field_maxlen' => '255',
|
||||||
|
'field_novalue' => '',
|
||||||
|
'field_default_value' => '',
|
||||||
|
'field_validation' => '.*',
|
||||||
|
'field_required' => 0,
|
||||||
|
'field_show_novalue' => 0,
|
||||||
|
'field_show_on_reg' => 0,
|
||||||
|
'field_show_on_pm' => 1,
|
||||||
|
'field_show_on_vt' => 1,
|
||||||
|
'field_show_on_ml' => 0,
|
||||||
|
'field_show_profile' => 1,
|
||||||
|
'field_hide' => 0,
|
||||||
|
'field_no_view' => 0,
|
||||||
|
'field_active' => 1,
|
||||||
|
'field_is_contact' => 1,
|
||||||
|
'field_contact_desc' => '',
|
||||||
|
'field_contact_url' => '',
|
||||||
|
);
|
||||||
|
|
||||||
|
protected $user_column_name = 'user_msnm';
|
||||||
|
}
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package migration
|
||||||
|
* @copyright (c) 2014 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace phpbb\db\migration\data\v310;
|
||||||
|
|
||||||
|
class profilefield_wlm_cleanup extends \phpbb\db\migration\migration
|
||||||
|
{
|
||||||
|
public function effectively_installed()
|
||||||
|
{
|
||||||
|
return !$this->db_tools->sql_column_exists($this->table_prefix . 'users', 'user_msnm');
|
||||||
|
}
|
||||||
|
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v310\profilefield_wlm',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_schema()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'drop_columns' => array(
|
||||||
|
$this->table_prefix . 'users' => array(
|
||||||
|
'user_msnm',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function revert_schema()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'add_columns' => array(
|
||||||
|
$this->table_prefix . 'users' => array(
|
||||||
|
'user_msnm' => array('VCHAR_UNI', ''),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -305,64 +305,6 @@ function apply_onkeypress_event() {
|
||||||
|
|
||||||
jQuery(document).ready(apply_onkeypress_event);
|
jQuery(document).ready(apply_onkeypress_event);
|
||||||
|
|
||||||
/**
|
|
||||||
* Run MSN action
|
|
||||||
*/
|
|
||||||
function msn_action(action, address)
|
|
||||||
{
|
|
||||||
// Does the browser support the MSNM object?
|
|
||||||
var app = document.getElementById('objMessengerApp');
|
|
||||||
|
|
||||||
if (!app || !app.MyStatus) {
|
|
||||||
var lang = $('form[data-lang-im-msnm-browser]');
|
|
||||||
if (lang.length) {
|
|
||||||
alert(lang.attr('data-lang-im-msnm-browser'));
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Is MSNM connected?
|
|
||||||
if (app.MyStatus == 1) {
|
|
||||||
var lang = $('form[data-lang-im-msnm-connect]');
|
|
||||||
if (lang.length) {
|
|
||||||
alert(lang.attr('data-lang-im-msnm-connect'));
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do stuff
|
|
||||||
try {
|
|
||||||
switch (action) {
|
|
||||||
case 'add':
|
|
||||||
app.AddContact(0, address);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'im':
|
|
||||||
app.InstantMessage(address);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add to your contact list
|
|
||||||
*/
|
|
||||||
function add_contact(address)
|
|
||||||
{
|
|
||||||
msn_action('add', address);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write IM to contact
|
|
||||||
*/
|
|
||||||
function im_contact(address)
|
|
||||||
{
|
|
||||||
msn_action('im', address);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Functions for user search popup
|
* Functions for user search popup
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<!-- INCLUDE simple_header.html -->
|
<!-- 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>
|
<h2 class="solo">{L_SEND_IM}</h2>
|
||||||
|
|
||||||
<form method="post" action="{S_IM_ACTION}" data-lang-im-msnm-connect="{L_IM_MSNM_CONNECT|e('html_attr')}" data-lang-im-msnm-browser="{L_IM_MSNM_BROWSER|e('html_attr')}">
|
<form method="post" action="{S_IM_ACTION}">
|
||||||
|
|
||||||
<div class="panel bg2">
|
<div class="panel bg2">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
@ -13,7 +12,7 @@
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<dl class="fields2">
|
<dl class="fields2">
|
||||||
<dt><label>{L_IM_RECIPIENT}{L_COLON}</label></dt>
|
<dt><label>{L_IM_RECIPIENT}{L_COLON}</label></dt>
|
||||||
<dd><strong>{USERNAME}</strong><!-- IF 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_AIM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --><!-- IF PRESENCE_IMG --> {PRESENCE_IMG}<!-- ENDIF --></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<!-- IF S_SEND_AIM -->
|
<!-- IF S_SEND_AIM -->
|
||||||
|
@ -25,15 +24,6 @@
|
||||||
</dl>
|
</dl>
|
||||||
<!-- ENDIF -->
|
<!-- 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 -->
|
<!-- IF S_SEND_JABBER -->
|
||||||
<dl class="fields2">
|
<dl class="fields2">
|
||||||
<dt><label for="message">{L_IM_MESSAGE}{L_COLON}</label></dt>
|
<dt><label for="message">{L_IM_MESSAGE}{L_COLON}</label></dt>
|
||||||
|
|
|
@ -25,10 +25,6 @@
|
||||||
<dt><label for="yahoo">{L_YIM}{L_COLON}</label></dt>
|
<dt><label for="yahoo">{L_YIM}{L_COLON}</label></dt>
|
||||||
<dd><input type="text" name="yahoo" id="yahoo" value="{YAHOO}" class="inputbox" /></dd>
|
<dd><input type="text" name="yahoo" id="yahoo" value="{YAHOO}" class="inputbox" /></dd>
|
||||||
</dl>
|
</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>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="jabber">{L_JABBER}:</label></dt>
|
<dt><label for="jabber">{L_JABBER}:</label></dt>
|
||||||
<dd><input type="text" name="jabber" id="jabber" value="{JABBER}" class="inputbox" /></dd>
|
<dd><input type="text" name="jabber" id="jabber" value="{JABBER}" class="inputbox" /></dd>
|
||||||
|
|
|
@ -62,13 +62,17 @@
|
||||||
<dl class="details">
|
<dl class="details">
|
||||||
<!-- 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_EMAIL --><dt>{L_EMAIL_ADDRESS}{L_COLON}</dt> <dd><a href="{U_EMAIL}">{L_SEND_EMAIL_USER} {USERNAME}</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_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_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_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_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}{L_COLON}</dt> <dd><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}{L_COLON}</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
<!-- IF U_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}{L_COLON}</dt> <dd><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}{L_COLON}</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
||||||
<!-- BEGIN custom_fields -->
|
<!-- BEGIN custom_fields -->
|
||||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||||
<dt>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</dt> <dd><a href="{custom_fields.PROFILE_FIELD_CONTACT}">{custom_fields.PROFILE_FIELD_DESC}</a></dd>
|
<dt>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</dt>
|
||||||
|
<!-- IF custom_fields.PROFILE_FIELD_CONTACT -->
|
||||||
|
<dd><a href="{custom_fields.PROFILE_FIELD_CONTACT}">{custom_fields.PROFILE_FIELD_DESC}</a></dd>
|
||||||
|
<!-- ELSE -->
|
||||||
|
<dd>{custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||||
|
<!-- ENDIF -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- END custom_fields -->
|
<!-- END custom_fields -->
|
||||||
<!-- IF S_PROFILE_FIELD1 -->
|
<!-- IF S_PROFILE_FIELD1 -->
|
||||||
|
|
|
@ -34,19 +34,22 @@
|
||||||
<!-- EVENT ucp_pm_viewmessage_custom_fields_after -->
|
<!-- EVENT ucp_pm_viewmessage_custom_fields_after -->
|
||||||
|
|
||||||
|
|
||||||
<!-- IF U_PM or U_EMAIL or U_MSN or U_YIM or U_AIM or U_JABBER -->
|
<!-- IF U_PM or U_EMAIL or U_YIM or U_AIM or U_JABBER -->
|
||||||
<dd>
|
<dd>
|
||||||
<ul class="profile-icons">
|
<ul class="profile-icons">
|
||||||
<!-- EVENT ucp_pm_viewmessage_contact_fields_before -->
|
<!-- EVENT ucp_pm_viewmessage_contact_fields_before -->
|
||||||
<!-- 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_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_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_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_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_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 -->
|
<!-- 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 -->
|
||||||
<!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
<!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||||
<!-- BEGIN custom_fields -->
|
<!-- BEGIN custom_fields -->
|
||||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||||
<li class="{custom_fields.PROFILE_FIELD_IDENT}-icon"><a href="{custom_fields.PROFILE_FIELD_CONTACT}"><span>{custom_fields.PROFILE_FIELD_NAME}</span></a></li>
|
<li class="{custom_fields.PROFILE_FIELD_IDENT}-icon">
|
||||||
|
<a href="<!-- IF custom_fields.PROFILE_FIELD_CONTACT -->{custom_fields.PROFILE_FIELD_CONTACT}<!-- ELSE -->{U_MESSAGE_AUTHOR}<!-- ENDIF -->">
|
||||||
|
<span>{custom_fields.PROFILE_FIELD_NAME}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- END custom_fields -->
|
<!-- END custom_fields -->
|
||||||
<!-- EVENT ucp_pm_viewmessage_contact_fields_after -->
|
<!-- EVENT ucp_pm_viewmessage_contact_fields_after -->
|
||||||
|
|
|
@ -14,10 +14,6 @@
|
||||||
<dt><label for="aim">{L_UCP_AIM}{L_COLON}</label></dt>
|
<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>
|
<dd><input type="text" name="aim" id="aim" maxlength="255" value="{AIM}" class="inputbox" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
|
||||||
<dt><label for="msn">{L_UCP_MSNM}{L_COLON}</label></dt>
|
|
||||||
<dd><input type="email" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
|
|
||||||
</dl>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="yim">{L_UCP_YIM}{L_COLON}</label></dt>
|
<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>
|
<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
|
||||||
|
|
|
@ -144,18 +144,21 @@
|
||||||
<!-- EVENT viewtopic_body_postrow_custom_fields_after -->
|
<!-- EVENT viewtopic_body_postrow_custom_fields_after -->
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT -->
|
<!-- IF not S_IS_BOT -->
|
||||||
<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_MSN or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
|
<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
|
||||||
<dd>
|
<dd>
|
||||||
<ul class="profile-icons">
|
<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_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_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_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_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_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 -->
|
<!-- 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 -->
|
||||||
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||||
<!-- BEGIN custom_fields -->
|
<!-- BEGIN custom_fields -->
|
||||||
<!-- IF postrow.custom_fields.S_PROFILE_CONTACT -->
|
<!-- IF postrow.custom_fields.S_PROFILE_CONTACT -->
|
||||||
<li class="{postrow.custom_fields.PROFILE_FIELD_IDENT}-icon"><a href="{postrow.custom_fields.PROFILE_FIELD_CONTACT}"><span>{postrow.custom_fields.PROFILE_FIELD_NAME}</span></a></li>
|
<li class="{postrow.custom_fields.PROFILE_FIELD_IDENT}-icon">
|
||||||
|
<a href="<!-- IF postrow.custom_fields.PROFILE_FIELD_CONTACT -->{postrow.custom_fields.PROFILE_FIELD_CONTACT}<!-- ELSE -->{postrow.U_POST_AUTHOR}<!-- ENDIF -->">
|
||||||
|
<span>{postrow.custom_fields.PROFILE_FIELD_NAME}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- END custom_fields -->
|
<!-- END custom_fields -->
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -849,7 +849,7 @@ ul.linklist li.small-icon > a, ul.linklist li.breadcrumbs span:first-child > a {
|
||||||
padding-right: 11px;
|
padding-right: 11px;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
.rtl .imageset.icon_contact_aim, .rtl .imageset.icon_contact_email, .rtl .imageset.icon_contact_icq, .rtl .imageset.phpbb_icq-icon, .rtl .imageset.icon_contact_jabber, .rtl .imageset.icon_contact_msnm, .rtl .imageset.icon_contact_www, .rtl .imageset.phpbb_website-icon, .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.phpbb_icq-icon, .rtl .imageset.icon_contact_jabber, .rtl .imageset.icon_contact_msnm, .rtl .imageset.phpbb_wlm-icon, .rtl .imageset.icon_contact_www, .rtl .imageset.phpbb_website-icon, .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-right: 20px;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -242,6 +242,7 @@ ul.profile-icons.responsive a.responsive-menu-link:before {
|
||||||
.web-icon, .web-icon a { background: none top left no-repeat; }
|
.web-icon, .web-icon a { background: none top left no-repeat; }
|
||||||
.phpbb_website-icon, .phpbb_website-icon a { background: none top left no-repeat; }
|
.phpbb_website-icon, .phpbb_website-icon a { background: none top left no-repeat; }
|
||||||
.msnm-icon, .msnm-icon a { background: none top left no-repeat; }
|
.msnm-icon, .msnm-icon a { background: none top left no-repeat; }
|
||||||
|
.phpbb_wlm-icon, .phpbb_wlm-icon a { background: none top left no-repeat; }
|
||||||
.icq-icon, .icq-icon a { background: none top left no-repeat; }
|
.icq-icon, .icq-icon a { background: none top left no-repeat; }
|
||||||
.phpbb_icq-icon, .phpbb_icq-icon a { background: none top left no-repeat; }
|
.phpbb_icq-icon, .phpbb_icq-icon a { background: none top left no-repeat; }
|
||||||
.jabber-icon, .jabber-icon a { background: none top left no-repeat; }
|
.jabber-icon, .jabber-icon a { background: none top left no-repeat; }
|
||||||
|
@ -262,6 +263,7 @@ ul.profile-icons li.yahoo-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.web-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.web-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.phpbb_website-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.phpbb_website-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.msnm-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.msnm-icon { width: 20px; height: 20px; }
|
||||||
|
ul.profile-icons li.phpbb_wlm-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.icq-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.icq-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.phpbb_icq-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.phpbb_icq-icon { width: 20px; height: 20px; }
|
||||||
ul.profile-icons li.jabber-icon { width: 20px; height: 20px; }
|
ul.profile-icons li.jabber-icon { width: 20px; height: 20px; }
|
||||||
|
|
|
@ -744,6 +744,7 @@ a.sendemail {
|
||||||
.web-icon, .web-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
.web-icon, .web-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
||||||
.phpbb_website-icon, .phpbb_website-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
.phpbb_website-icon, .phpbb_website-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
||||||
.msnm-icon, .msnm-icon a { background-image: url("./images/icon_contact_msnm.gif"); }
|
.msnm-icon, .msnm-icon a { background-image: url("./images/icon_contact_msnm.gif"); }
|
||||||
|
.phpbb_wlm-icon, .phpbb_wlm-icon a { background-image: url("./images/icon_contact_msnm.gif"); }
|
||||||
.icq-icon, .icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
.icq-icon, .icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
||||||
.phpbb_icq-icon, .phpbb_icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
.phpbb_icq-icon, .phpbb_icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
||||||
.jabber-icon, .jabber-icon a { background-image: url("./images/icon_contact_jabber.gif"); }
|
.jabber-icon, .jabber-icon a { background-image: url("./images/icon_contact_jabber.gif"); }
|
||||||
|
|
|
@ -280,7 +280,7 @@ span.imageset {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
.imageset.icon_contact_msnm {
|
.imageset.phpbb_wlm-icon, .imageset.icon_contact_msnm {
|
||||||
background-image: url("./images/icon_contact_msnm.gif");
|
background-image: url("./images/icon_contact_msnm.gif");
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
<br clear="all" />
|
<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}">
|
<form method="post" action="{S_IM_ACTION}">
|
||||||
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -14,7 +12,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_IM_RECIPIENT}{L_COLON} </b></td>
|
<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_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_AIM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --></span> <!-- IF PRESENCE_IMG -->{PRESENCE_IMG}<!-- ENDIF --></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- IF S_SEND_AIM -->
|
<!-- IF S_SEND_AIM -->
|
||||||
|
@ -26,85 +24,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- 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 -->
|
<!-- IF S_SEND_JABBER -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_IM_MESSAGE}{L_COLON} </b></td>
|
<td class="row1"><b class="genmed">{L_IM_MESSAGE}{L_COLON} </b></td>
|
||||||
|
|
|
@ -94,16 +94,13 @@
|
||||||
<td class="row1"><b class="genmed">{L_YIM}{L_COLON}</b></td>
|
<td class="row1"><b class="genmed">{L_YIM}{L_COLON}</b></td>
|
||||||
<td class="row2"><input class="post" type="text" name="yahoo" value="{YAHOO}" /></td>
|
<td class="row2"><input class="post" type="text" name="yahoo" value="{YAHOO}" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<!-- IF S_VIEWONLINE -->
|
<!-- IF S_VIEWONLINE -->
|
||||||
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_LAST_ACTIVE}{L_COLON}</b></td>
|
<td class="row1"><b class="genmed">{L_LAST_ACTIVE}{L_COLON}</b></td>
|
||||||
<td class="row2"><select name="active_select">{S_ACTIVE_TIME_OPTIONS}</select> <input class="post" type="text" name="active" value="{ACTIVE}" /></td>
|
<td class="row2"><select name="active_select">{S_ACTIVE_TIME_OPTIONS}</select> <input class="post" type="text" name="active" value="{ACTIVE}" /></td>
|
||||||
<!-- ELSE -->
|
|
||||||
<td colspan="2" class="row1"> </td>
|
<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>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- ENDIF -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_POSTS}{L_COLON}</b></td>
|
<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="number" min="0" name="count" value="{COUNT}" /></td>
|
<td class="row2"><select name="count_select">{S_COUNT_OPTIONS}</select> <input class="post" type="number" min="0" name="count" value="{COUNT}" /></td>
|
||||||
|
|
|
@ -118,10 +118,6 @@
|
||||||
<td><a href="{U_PM}" class="imageset">{PM_IMG}</a></td>
|
<td><a href="{U_PM}" class="imageset">{PM_IMG}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- 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>
|
<tr>
|
||||||
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_YIM}{L_COLON} </td>
|
<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>
|
<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>
|
||||||
|
@ -138,7 +134,11 @@
|
||||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{custom_fields.PROFILE_FIELD_NAME}{L_COLON} </td>
|
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{custom_fields.PROFILE_FIELD_NAME}{L_COLON} </td>
|
||||||
|
<!-- IF custom_fields.PROFILE_FIELD_CONTACT -->
|
||||||
<td><a href="{custom_fields.PROFILE_FIELD_CONTACT}"><span class="imageset {custom_fields.PROFILE_FIELD_IDENT}-icon">{custom_fields.PROFILE_FIELD_DESC}</span></a></td>
|
<td><a href="{custom_fields.PROFILE_FIELD_CONTACT}"><span class="imageset {custom_fields.PROFILE_FIELD_IDENT}-icon">{custom_fields.PROFILE_FIELD_DESC}</span></a></td>
|
||||||
|
<!-- ELSE -->
|
||||||
|
<td><b class="genmed">{custom_fields.PROFILE_FIELD_VALUE}</b></td>
|
||||||
|
<!-- ENDIF -->
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- END custom_fields -->
|
<!-- END custom_fields -->
|
||||||
|
|
|
@ -16,10 +16,6 @@
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_AIM}{L_COLON} </b></td>
|
<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>
|
<td class="row2"><input class="post" type="text" name="aim" size="30" maxlength="255" value="{AIM}" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_MSNM}{L_COLON} </b></td>
|
|
||||||
<td class="row2"><input class="post" type="email" name="msn" size="30" maxlength="255" value="{MSN}" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_UCP_YIM}{L_COLON} </b></td>
|
<td class="row1" width="35%"><b class="genmed">{L_UCP_YIM}{L_COLON} </b></td>
|
||||||
<td class="row2"><input class="post" type="email" name="yim" size="30" maxlength="255" value="{YIM}" /></td>
|
<td class="row2"><input class="post" type="email" name="yim" size="30" maxlength="255" value="{YIM}" /></td>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
padding-left: 72px;
|
padding-left: 72px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
.imageset.icon_contact_msnm {
|
.imageset.phpbb_wlm-icon, .imageset.icon_contact_msnm {
|
||||||
background-image: url("./icon_contact_msnm.gif");
|
background-image: url("./icon_contact_msnm.gif");
|
||||||
padding-left: 72px;
|
padding-left: 72px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
|
|
@ -1033,7 +1033,7 @@ a.imageset {
|
||||||
padding-left: 72px;
|
padding-left: 72px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
.imageset.icon_contact_msnm {
|
.imageset.phpbb_wlm-icon, .imageset.icon_contact_msnm {
|
||||||
background-image: url("./en/icon_contact_msnm.gif");
|
background-image: url("./en/icon_contact_msnm.gif");
|
||||||
padding-left: 72px;
|
padding-left: 72px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
|
|
@ -621,7 +621,6 @@ $template->assign_vars(array(
|
||||||
'PM_IMG' => $user->img('icon_contact_pm', 'SEND_PRIVATE_MESSAGE'),
|
'PM_IMG' => $user->img('icon_contact_pm', 'SEND_PRIVATE_MESSAGE'),
|
||||||
'EMAIL_IMG' => $user->img('icon_contact_email', 'SEND_EMAIL'),
|
'EMAIL_IMG' => $user->img('icon_contact_email', 'SEND_EMAIL'),
|
||||||
'AIM_IMG' => $user->img('icon_contact_aim', 'AIM'),
|
'AIM_IMG' => $user->img('icon_contact_aim', 'AIM'),
|
||||||
'MSN_IMG' => $user->img('icon_contact_msnm', 'MSNM'),
|
|
||||||
'YIM_IMG' => $user->img('icon_contact_yahoo', 'YIM'),
|
'YIM_IMG' => $user->img('icon_contact_yahoo', 'YIM'),
|
||||||
'JABBER_IMG' => $user->img('icon_contact_jabber', 'JABBER') ,
|
'JABBER_IMG' => $user->img('icon_contact_jabber', 'JABBER') ,
|
||||||
'REPORT_IMG' => $user->img('icon_post_report', 'REPORT_POST'),
|
'REPORT_IMG' => $user->img('icon_post_report', 'REPORT_POST'),
|
||||||
|
@ -1116,7 +1115,6 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
'pm' => '',
|
'pm' => '',
|
||||||
'email' => '',
|
'email' => '',
|
||||||
'aim' => '',
|
'aim' => '',
|
||||||
'msn' => '',
|
|
||||||
'yim' => '',
|
'yim' => '',
|
||||||
'jabber' => '',
|
'jabber' => '',
|
||||||
'search' => '',
|
'search' => '',
|
||||||
|
@ -1182,7 +1180,6 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
'online' => false,
|
'online' => false,
|
||||||
'profile' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$poster_id"),
|
'profile' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$poster_id"),
|
||||||
'aim' => ($row['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=aim&u=$poster_id") : '',
|
'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' : '',
|
'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") : '',
|
'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") : '',
|
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
|
||||||
|
@ -1628,7 +1625,6 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
'U_PM' => ($poster_id != ANONYMOUS && $config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_cache[$poster_id]['allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&action=quotepost&p=' . $row['post_id']) : '',
|
'U_PM' => ($poster_id != ANONYMOUS && $config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_cache[$poster_id]['allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&action=quotepost&p=' . $row['post_id']) : '',
|
||||||
'U_EMAIL' => $user_cache[$poster_id]['email'],
|
'U_EMAIL' => $user_cache[$poster_id]['email'],
|
||||||
'U_AIM' => $user_cache[$poster_id]['aim'],
|
'U_AIM' => $user_cache[$poster_id]['aim'],
|
||||||
'U_MSN' => $user_cache[$poster_id]['msn'],
|
|
||||||
'U_YIM' => $user_cache[$poster_id]['yim'],
|
'U_YIM' => $user_cache[$poster_id]['yim'],
|
||||||
'U_JABBER' => $user_cache[$poster_id]['jabber'],
|
'U_JABBER' => $user_cache[$poster_id]['jabber'],
|
||||||
|
|
||||||
|
|
|
@ -195,7 +195,6 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||||
'user_sig_bbcode_bitfield' => '',
|
'user_sig_bbcode_bitfield' => '',
|
||||||
'user_aim' => '',
|
'user_aim' => '',
|
||||||
'user_yim' => '',
|
'user_yim' => '',
|
||||||
'user_msnm' => '',
|
|
||||||
'user_jabber' => '',
|
'user_jabber' => '',
|
||||||
'user_actkey' => '',
|
'user_actkey' => '',
|
||||||
'user_newpasswd' => '',
|
'user_newpasswd' => '',
|
||||||
|
|
Loading…
Add table
Reference in a new issue