mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17493] Remove settings, values, and lang vars for jabber
PHPBB-17493
This commit is contained in:
parent
e32ebda982
commit
a7c7c38bfb
21 changed files with 11 additions and 101 deletions
|
@ -1681,7 +1681,6 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl
|
|||
'S_ONLINE' => ($config['load_onlinetrack'] && $online) ? true : false,
|
||||
'RANK_IMG' => $user_rank_data['img'],
|
||||
'RANK_IMG_SRC' => $user_rank_data['img_src'],
|
||||
'S_JABBER_ENABLED' => ($config['jab_enable']) ? true : false,
|
||||
|
||||
'S_WARNINGS' => ($auth->acl_getf_global('m_') || $auth->acl_get('m_warn')) ? true : false,
|
||||
|
||||
|
@ -1690,10 +1689,6 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl
|
|||
'U_WARN' => ($warn_user_enabled && $auth->acl_get('m_warn')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_user&u=' . $user_id) : '',
|
||||
'U_PM' => ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && $can_receive_pm) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $user_id) : '',
|
||||
'U_EMAIL' => $email,
|
||||
'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_JABBER' => ($config['jab_enable'] && $auth->acl_get('u_sendim')) ? $data['user_jabber'] : '',
|
||||
'USER_JABBER_IMG' => ($config['jab_enable'] && $auth->acl_get('u_sendim') && $data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
||||
|
||||
'L_SEND_EMAIL_USER' => $user->lang('SEND_EMAIL_USER', $username),
|
||||
'L_CONTACT_USER' => $user->lang('CONTACT_USER', $username),
|
||||
|
|
|
@ -2730,7 +2730,7 @@ function group_user_attributes($action, $group_id, $user_id_ary = false, $userna
|
|||
|
||||
case 'approve':
|
||||
// Make sure we only approve those which are pending ;)
|
||||
$sql = 'SELECT u.user_id, u.user_email, u.username, u.username_clean, u.user_notify_type, u.user_jabber, u.user_lang
|
||||
$sql = 'SELECT u.user_id, u.user_email, u.username, u.username_clean, u.user_notify_type, u.user_lang
|
||||
FROM ' . USERS_TABLE . ' u, ' . USER_GROUP_TABLE . ' ug
|
||||
WHERE ug.group_id = ' . $group_id . '
|
||||
AND ug.user_pending = 1
|
||||
|
|
|
@ -661,7 +661,7 @@ function close_report($report_id_list, $mode, $action, $pm = false)
|
|||
{
|
||||
$post_info = ($pm) ? phpbb_get_pm_data($post_id_list) : phpbb_get_post_data($post_id_list, 'm_report');
|
||||
|
||||
$sql = "SELECT r.report_id, r.$id_column, r.report_closed, r.user_id, r.user_notify, u.username, u.username_clean, u.user_email, u.user_jabber, u.user_lang, u.user_notify_type
|
||||
$sql = "SELECT r.report_id, r.$id_column, r.report_closed, r.user_id, r.user_notify, u.username, u.username_clean, u.user_email, u.user_lang, u.user_notify_type
|
||||
FROM " . REPORTS_TABLE . ' r, ' . USERS_TABLE . ' u
|
||||
WHERE ' . $db->sql_in_set('r.report_id', $report_id_list) . '
|
||||
' . (($action == 'close') ? 'AND r.report_closed = 0' : '') . '
|
||||
|
|
|
@ -201,18 +201,13 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
|||
}
|
||||
}
|
||||
|
||||
$u_pm = $u_jabber = '';
|
||||
$u_pm = '';
|
||||
|
||||
if ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_info['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')))
|
||||
{
|
||||
$u_pm = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id);
|
||||
}
|
||||
|
||||
if ($config['jab_enable'] && $user_info['user_jabber'] && $auth->acl_get('u_sendim'))
|
||||
{
|
||||
$u_jabber = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $author_id);
|
||||
}
|
||||
|
||||
$can_edit_pm = ($message_row['message_time'] > time() - ($config['pm_edit_time'] * 60) || !$config['pm_edit_time']) && $folder_id == PRIVMSGS_OUTBOX && $auth->acl_get('u_pm_edit');
|
||||
|
||||
$msg_data = array(
|
||||
|
@ -248,7 +243,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
|||
'MESSAGE_ID' => $message_row['msg_id'],
|
||||
|
||||
'U_PM' => $u_pm,
|
||||
'U_JABBER' => $u_jabber,
|
||||
|
||||
'U_DELETE' => ($auth->acl_get('u_pm_delete')) ? "$url&mode=compose&action=delete&f=$folder_id&p=" . $message_row['msg_id'] : '',
|
||||
'U_EMAIL' => $user_info['email'],
|
||||
|
@ -358,11 +352,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
|||
'NAME' => $user->lang['SEND_EMAIL'],
|
||||
'U_CONTACT' => $user_info['email'],
|
||||
),
|
||||
array(
|
||||
'ID' => 'jabber',
|
||||
'NAME' => $user->lang['JABBER'],
|
||||
'U_CONTACT' => $u_jabber,
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($contact_fields as $field)
|
||||
|
|
|
@ -54,12 +54,6 @@ class ucp_prefs
|
|||
'allowpm' => $request->variable('allowpm', (bool) $user->data['user_allow_pm']),
|
||||
);
|
||||
|
||||
if ($data['notifymethod'] == messenger_interface::NOTIFY_IM && (!$config['jab_enable'] || !$user->data['user_jabber'] || !@extension_loaded('xml')))
|
||||
{
|
||||
// Jabber isnt enabled, or no jabber field filled in. Update the users table to be sure its correct.
|
||||
$data['notifymethod'] = messenger_interface::NOTIFY_BOTH;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add UCP edit global settings data before they are assigned to the template or submitted
|
||||
*
|
||||
|
@ -218,7 +212,6 @@ class ucp_prefs
|
|||
'options' => $timezone_select,
|
||||
],
|
||||
'S_CAN_HIDE_ONLINE' => (bool) $auth->acl_get('u_hideonline'),
|
||||
'S_SELECT_NOTIFY' => (bool) ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')),
|
||||
]);
|
||||
|
||||
break;
|
||||
|
|
|
@ -284,9 +284,7 @@ class ucp_profile
|
|||
|
||||
$cp_data = $cp_error = array();
|
||||
|
||||
$data = array(
|
||||
'jabber' => $request->variable('jabber', $user->data['user_jabber'], true),
|
||||
);
|
||||
$data = [];
|
||||
|
||||
if ($config['allow_birthdays'])
|
||||
{
|
||||
|
@ -318,11 +316,7 @@ class ucp_profile
|
|||
|
||||
if ($submit)
|
||||
{
|
||||
$validate_array = array(
|
||||
'jabber' => array(
|
||||
array('string', true, 5, 255),
|
||||
array('jabber')),
|
||||
);
|
||||
$validate_array = [];
|
||||
|
||||
if ($config['allow_birthdays'])
|
||||
{
|
||||
|
@ -363,18 +357,8 @@ class ucp_profile
|
|||
|
||||
if (!count($error))
|
||||
{
|
||||
$data['notify'] = $user->data['user_notify_type'];
|
||||
|
||||
if ($data['notify'] == messenger_interface::NOTIFY_IM && (!$config['jab_enable'] || !$data['jabber'] || !@extension_loaded('xml')))
|
||||
{
|
||||
// User has not filled in a jabber address (Or one of the modules is disabled or jabber is disabled)
|
||||
// Disable notify by Jabber now for this user.
|
||||
$data['notify'] = messenger_interface::NOTIFY_EMAIL;
|
||||
}
|
||||
|
||||
$sql_ary = array(
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_notify_type' => $data['notify'],
|
||||
'user_notify_type' => messenger_interface::NOTIFY_EMAIL,
|
||||
);
|
||||
|
||||
if ($config['allow_birthdays'])
|
||||
|
@ -446,8 +430,6 @@ class ucp_profile
|
|||
|
||||
$template->assign_vars(array(
|
||||
'ERROR' => (count($error)) ? implode('<br />', $error) : '',
|
||||
'S_JABBER_ENABLED' => $config['jab_enable'],
|
||||
'JABBER' => $data['jabber'],
|
||||
));
|
||||
|
||||
// Get additional profile fields and assign them to the template block var 'profile_fields'
|
||||
|
|
|
@ -128,7 +128,7 @@ class ucp_resend
|
|||
// Grab an array of user_id's with a_user permissions ... these users can activate a user
|
||||
$admin_ary = $auth->acl_get_list(false, 'a_user', false);
|
||||
|
||||
$sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type
|
||||
$sql = 'SELECT user_id, username, user_email, user_lang, user_notify_type
|
||||
FROM ' . USERS_TABLE . '
|
||||
WHERE ' . $db->sql_in_set('user_id', $admin_ary[0]['a_user']);
|
||||
$result = $db->sql_query($sql);
|
||||
|
|
|
@ -923,7 +923,6 @@ if (!$get_info)
|
|||
array('user_inactive_reason', '', 'phpbb_inactive_reason'),
|
||||
array('user_inactive_time', '', 'phpbb_inactive_time'),
|
||||
|
||||
array('user_jabber', '', ''),
|
||||
array('user_rank', 'users.user_rank', 'intval'),
|
||||
array('user_permissions', '', ''),
|
||||
|
||||
|
|
|
@ -429,7 +429,6 @@ INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_group', 1);
|
|||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_groupadd', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_groupdel', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_icons', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_jabber', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_language', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_mauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_modules', 1);
|
||||
|
@ -559,7 +558,7 @@ INSERT INTO phpbb_ranks (rank_title, rank_min, rank_special, rank_image) VALUES
|
|||
# -- Roles data
|
||||
|
||||
# Standard Admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 1, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option NOT IN ('a_switchperm', 'a_jabber', 'a_phpinfo', 'a_server', 'a_backup', 'a_styles', 'a_clearlogs', 'a_modules', 'a_language', 'a_email', 'a_bots', 'a_search', 'a_aauth', 'a_roles');
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 1, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option NOT IN ('a_switchperm', 'a_phpinfo', 'a_server', 'a_backup', 'a_styles', 'a_clearlogs', 'a_modules', 'a_language', 'a_email', 'a_bots', 'a_search', 'a_aauth', 'a_roles');
|
||||
|
||||
# Forum admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 2, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option IN ('a_', 'a_authgroups', 'a_authusers', 'a_fauth', 'a_forum', 'a_forumadd', 'a_forumdel', 'a_mauth', 'a_prune', 'a_uauth', 'a_viewauth', 'a_viewlogs');
|
||||
|
|
|
@ -232,8 +232,6 @@ $lang = array_merge($lang, array(
|
|||
'ENTER_USERNAME' => 'Enter username',
|
||||
'ERR_CHANGING_DIRECTORY' => 'Unable to change directory.',
|
||||
'ERR_CONNECTING_SERVER' => 'Error connecting to the server.',
|
||||
'ERR_JAB_AUTH' => 'Could not authorise on Jabber server.',
|
||||
'ERR_JAB_CONNECT' => 'Could not connect to Jabber server.',
|
||||
'ERR_UNABLE_TO_LOGIN' => 'The specified username or password is incorrect.',
|
||||
'ERR_UNWATCHING' => 'An error occurred while trying to unsubscribe.',
|
||||
'ERR_WATCHING' => 'An error occurred while trying to subscribe.',
|
||||
|
@ -372,7 +370,6 @@ $lang = array_merge($lang, array(
|
|||
'IP' => 'IP',
|
||||
'IP_BLACKLISTED' => 'Your IP %1$s has been blocked because it is blacklisted. For details please see <a href="%2$s">%2$s</a>.',
|
||||
|
||||
'JABBER' => 'Jabber',
|
||||
'JOINED' => 'Joined',
|
||||
'JUMP_PAGE' => 'Enter the page number you wish to go to',
|
||||
'JUMP_TO' => 'Jump to',
|
||||
|
@ -801,7 +798,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'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_JABBER' => 'The Jabber account name 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_USER_PASSWORD' => 'The password you entered is too long.',
|
||||
|
@ -814,7 +810,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'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_JABBER' => 'The Jabber account name 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_USER_PASSWORD' => 'The password you entered is too short.',
|
||||
|
@ -943,7 +938,6 @@ $lang = array_merge($lang, array(
|
|||
'WRONG_PASSWORD' => 'You entered an incorrect password.',
|
||||
|
||||
'WRONG_DATA_COLOUR' => 'The colour value you entered is invalid.',
|
||||
'WRONG_DATA_JABBER' => 'The name you entered is not a valid Jabber account name.',
|
||||
'WRONG_DATA_LANG' => 'The language you specified is not valid.',
|
||||
'WRONG_DATA_POST_SD' => 'The post sort direction you specified is not valid.',
|
||||
'WRONG_DATA_POST_SK' => 'The post sort option you specified is not valid.',
|
||||
|
|
|
@ -78,16 +78,12 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'IM_ADD_CONTACT' => 'Add Contact',
|
||||
'IM_DOWNLOAD_APP' => 'Download application',
|
||||
'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_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.',
|
||||
'IM_RECIPIENT' => 'Recipient',
|
||||
'IM_SEND' => 'Send message',
|
||||
'IM_SEND_MESSAGE' => 'Send message',
|
||||
'IM_SENT_JABBER' => 'Your message to %1$s has been sent successfully.',
|
||||
'IM_USER' => 'Send an instant message',
|
||||
|
||||
'LAST_ACTIVE' => 'Last active',
|
||||
|
@ -125,7 +121,6 @@ $lang = array_merge($lang, array(
|
|||
'SENDER_NAME' => 'Your name',
|
||||
'SEND_ICQ_MESSAGE' => 'Send ICQ message',
|
||||
'SEND_IM' => 'Instant messaging',
|
||||
'SEND_JABBER_MESSAGE' => 'Send Jabber message',
|
||||
'SEND_MESSAGE' => 'Message',
|
||||
'SEND_YIM_MESSAGE' => 'Send YIM message',
|
||||
'SORT_EMAIL' => 'Email',
|
||||
|
|
|
@ -331,7 +331,6 @@ $lang = array_merge($lang, array(
|
|||
'NOTIFICATION_GROUP_POSTING' => 'Posting Notifications',
|
||||
'NOTIFICATION_METHOD_BOARD' => 'Notifications',
|
||||
'NOTIFICATION_METHOD_EMAIL' => 'Email',
|
||||
'NOTIFICATION_METHOD_JABBER' => 'Jabber',
|
||||
'NOTIFICATION_METHOD_WEBPUSH' => 'Web Push',
|
||||
'NOTIFICATION_TYPE' => 'Notification type',
|
||||
'NOTIFICATION_TYPE_BOOKMARK' => 'Someone replies to a topic you have bookmarked',
|
||||
|
@ -354,7 +353,6 @@ $lang = array_merge($lang, array(
|
|||
'NOTIFY_METHOD_BOTH' => 'Both',
|
||||
'NOTIFY_METHOD_EMAIL' => 'Email only',
|
||||
'NOTIFY_METHOD_EXPLAIN' => 'Method for sending messages sent via this board.',
|
||||
'NOTIFY_METHOD_IM' => 'Jabber only',
|
||||
'NOTIFY_ON_PM' => 'Notify me on new private messages',
|
||||
'NOTIFY_WEBPUSH_ENABLE' => 'Enable receiving Web Push notifications',
|
||||
'NOTIFY_WEBPUSH_ENABLE_EXPLAIN' => 'Enable receiving browser-based push notifications.<br>The notifications can be turned off at any time in your browser settings, by unsubscribing, or by disabling the push notifications below.',
|
||||
|
@ -534,7 +532,6 @@ $lang = array_merge($lang, array(
|
|||
'UCP_COPPA_BEFORE' => 'Before %s',
|
||||
'UCP_COPPA_ON_AFTER' => 'On or after %s',
|
||||
'UCP_EMAIL_ACTIVATE' => 'Please note that you will need to enter a valid email address before your account is activated. You will receive an email at the address you provide that contains an account activation link.',
|
||||
'UCP_JABBER' => 'Jabber address',
|
||||
'UCP_LOGIN_LINK' => 'Set up an external account association',
|
||||
|
||||
'UCP_MAIN' => 'Overview',
|
||||
|
|
|
@ -20,6 +20,7 @@ class remove_jabber extends migration
|
|||
public static function depends_on(): array
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v31x\add_jabber_ssl_context_config_options',
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
'\phpbb\db\migration\data\v400\add_webpush',
|
||||
];
|
||||
|
|
|
@ -317,7 +317,6 @@ class permissions
|
|||
// Admin Permissions
|
||||
'a_board' => array('lang' => 'ACL_A_BOARD', 'cat' => 'settings'),
|
||||
'a_server' => array('lang' => 'ACL_A_SERVER', 'cat' => 'settings'),
|
||||
'a_jabber' => array('lang' => 'ACL_A_JABBER', 'cat' => 'settings'),
|
||||
'a_phpinfo' => array('lang' => 'ACL_A_PHPINFO', 'cat' => 'settings'),
|
||||
|
||||
'a_forum' => array('lang' => 'ACL_A_FORUM', 'cat' => 'forums'),
|
||||
|
|
|
@ -176,7 +176,7 @@ class reset_password
|
|||
}
|
||||
|
||||
$sql_array = [
|
||||
'SELECT' => 'user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type,'
|
||||
'SELECT' => 'user_id, username, user_permissions, user_email, user_notify_type, user_type,'
|
||||
. ' user_lang, user_inactive_reason, reset_token, reset_token_expiration',
|
||||
'FROM' => [$this->users_table => 'u'],
|
||||
'WHERE' => "user_email = '" . $this->db->sql_escape($email) . "'" .
|
||||
|
@ -308,7 +308,7 @@ class reset_password
|
|||
add_form_key('ucp_reset_password');
|
||||
|
||||
$sql_array = [
|
||||
'SELECT' => 'user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type,'
|
||||
'SELECT' => 'user_id, username, user_permissions, user_email, user_notify_type, user_type,'
|
||||
. ' user_lang, user_inactive_reason, reset_token, reset_token_expiration',
|
||||
'FROM' => [$this->users_table => 'u'],
|
||||
'WHERE' => 'user_id = ' . $user_id,
|
||||
|
|
|
@ -29,12 +29,6 @@
|
|||
<dt><label for="email">{L_EMAIL}{L_COLON}</label></dt>
|
||||
<dd><input type="text" name="email" id="email" value="{EMAIL}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_JABBER_ENABLED -->
|
||||
<dl>
|
||||
<dt><label for="jabber">{L_JABBER}{L_COLON}</label></dt>
|
||||
<dd><input type="text" name="jabber" id="jabber" value="{JABBER}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<dl>
|
||||
<dt><label for="search_group_id">{L_GROUP}{L_COLON}</label></dt>
|
||||
|
|
|
@ -75,7 +75,6 @@
|
|||
<dl class="details">
|
||||
<!-- IF U_EMAIL --><dt>{L_EMAIL_ADDRESS}{L_COLON}</dt> <dd><a href="{U_EMAIL}">{L_SEND_EMAIL_USER}</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_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}{L_COLON}</dt> <dd><a href="{U_JABBER}" onclick="popup(this.href, 750, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}{L_COLON}</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
||||
<!-- EVENT memberlist_view_contact_custom_fields_before -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||
|
|
|
@ -40,16 +40,6 @@
|
|||
</dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_SELECT_NOTIFY -->
|
||||
<dl>
|
||||
<dt><label for="notifymethod0">{L_NOTIFY_METHOD}{L_COLON}</label></dt>
|
||||
<dd>
|
||||
<label for="notifymethod0"><input type="radio" name="notifymethod" id="notifymethod0" value="0"<!-- IF S_NOTIFY_EMAIL --> checked="checked"<!-- ENDIF --> /> {L_NOTIFY_METHOD_EMAIL}</label>
|
||||
<label for="notifymethod1"><input type="radio" name="notifymethod" id="notifymethod1" value="1"<!-- IF S_NOTIFY_IM --> checked="checked"<!-- ENDIF --> /> {L_NOTIFY_METHOD_IM}</label>
|
||||
<label for="notifymethod2"><input type="radio" name="notifymethod" id="notifymethod2" value="2"<!-- IF S_NOTIFY_BOTH --> checked="checked"<!-- ENDIF --> /> {L_NOTIFY_METHOD_BOTH}</label>
|
||||
</dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_MORE_LANGUAGES -->
|
||||
<dl>
|
||||
<dt><label for="{{ LANG_OPTIONS.id }}">{L_BOARD_LANGUAGE}{L_COLON}</label></dt>
|
||||
|
|
|
@ -21,12 +21,6 @@
|
|||
</dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_JABBER_ENABLED -->
|
||||
<dl>
|
||||
<dt><label for="jabber">{L_UCP_JABBER}{L_COLON}</label></dt>
|
||||
<dd><input type="email" name="jabber" id="jabber" maxlength="255" value="{JABBER}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN profile_fields -->
|
||||
<dl>
|
||||
<dt><label<!-- IF profile_fields.FIELD_ID --> for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}{L_COLON}<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
|
||||
|
|
|
@ -802,7 +802,6 @@ $template->assign_vars(array(
|
|||
'SEARCH_IMG' => $user->img('icon_user_search', 'SEARCH_USER_POSTS'),
|
||||
'PM_IMG' => $user->img('icon_contact_pm', 'SEND_PRIVATE_MESSAGE'),
|
||||
'EMAIL_IMG' => $user->img('icon_contact_email', 'SEND_EMAIL'),
|
||||
'JABBER_IMG' => $user->img('icon_contact_jabber', 'JABBER') ,
|
||||
'REPORT_IMG' => $user->img('icon_post_report', 'REPORT_POST'),
|
||||
'REPORTED_IMG' => $user->img('icon_topic_reported', 'POST_REPORTED'),
|
||||
'UNAPPROVED_IMG' => $user->img('icon_topic_unapproved', 'POST_UNAPPROVED'),
|
||||
|
@ -1423,7 +1422,6 @@ while ($row = $db->sql_fetchrow($result))
|
|||
'rank_image_src' => '',
|
||||
'pm' => '',
|
||||
'email' => '',
|
||||
'jabber' => '',
|
||||
'search' => '',
|
||||
'age' => '',
|
||||
|
||||
|
@ -1493,7 +1491,6 @@ while ($row = $db->sql_fetchrow($result))
|
|||
'contact_user' => $user->lang('CONTACT_USER', get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['username'])),
|
||||
|
||||
'online' => false,
|
||||
'jabber' => ($config['jab_enable'] && $row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',
|
||||
'search' => ($config['load_search'] && $auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
|
||||
|
||||
'author_full' => get_username_string('full', $poster_id, $row['username'], $row['user_colour']),
|
||||
|
@ -2068,7 +2065,6 @@ for ($i = 0, $end = count($post_list); $i < $end; ++$i)
|
|||
'U_SEARCH' => $user_cache[$poster_id]['search'],
|
||||
'U_PM' => $u_pm,
|
||||
'U_EMAIL' => $user_cache[$poster_id]['email'],
|
||||
'U_JABBER' => $user_cache[$poster_id]['jabber'],
|
||||
|
||||
'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p={$row['post_id']}&f={$row['forum_id']}&redirect=" . urlencode(str_replace('&', '&', $viewtopic_url . '&p=' . $row['post_id'] . '#p' . $row['post_id']))),
|
||||
'U_REPORT' => ($auth->acl_get('f_report', $forum_id)) ? $phpbb_container->get('controller.helper')->route('phpbb_report_post_controller', array('id' => $row['post_id'])) : '',
|
||||
|
@ -2179,11 +2175,6 @@ for ($i = 0, $end = count($post_list); $i < $end; ++$i)
|
|||
'NAME' => $user->lang['SEND_EMAIL'],
|
||||
'U_CONTACT' => $user_cache[$poster_id]['email'],
|
||||
),
|
||||
array(
|
||||
'ID' => 'jabber',
|
||||
'NAME' => $user->lang['JABBER'],
|
||||
'U_CONTACT' => $user_cache[$poster_id]['jabber'],
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($contact_fields as $field)
|
||||
|
|
|
@ -165,7 +165,6 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
|||
'user_sig' => '',
|
||||
'user_sig_bbcode_uid' => '',
|
||||
'user_sig_bbcode_bitfield' => '',
|
||||
'user_jabber' => '',
|
||||
'user_actkey' => '',
|
||||
'user_actkey_expiration' => 0,
|
||||
'user_newpasswd' => '',
|
||||
|
|
Loading…
Add table
Reference in a new issue