mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12169] Convert user_from to profile field location
Missing changes on memberlist view due to missing functionality PHPBB3-12169
This commit is contained in:
@@ -1367,7 +1367,6 @@ class acp_users
|
||||
'yim' => request_var('yim', $user_row['user_yim']),
|
||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),
|
||||
'website' => request_var('website', $user_row['user_website']),
|
||||
'location' => utf8_normalize_nfc(request_var('location', $user_row['user_from'], true)),
|
||||
'bday_day' => 0,
|
||||
'bday_month' => 0,
|
||||
'bday_year' => 0,
|
||||
@@ -1399,7 +1398,6 @@ class acp_users
|
||||
'website' => array(
|
||||
array('string', true, 12, 255),
|
||||
array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')),
|
||||
'location' => array('string', true, 2, 100),
|
||||
'bday_day' => array('num', true, 1, 31),
|
||||
'bday_month' => array('num', true, 1, 12),
|
||||
'bday_year' => array('num', true, 1901, gmdate('Y', time())),
|
||||
@@ -1427,7 +1425,6 @@ class acp_users
|
||||
'user_yim' => $data['yim'],
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_website' => $data['website'],
|
||||
'user_from' => $data['location'],
|
||||
'user_birthday' => $data['user_birthday'],
|
||||
);
|
||||
|
||||
@@ -1477,7 +1474,6 @@ class acp_users
|
||||
'MSN' => $data['msn'],
|
||||
'JABBER' => $data['jabber'],
|
||||
'WEBSITE' => $data['website'],
|
||||
'LOCATION' => $data['location'],
|
||||
|
||||
'S_BIRTHDAY_DAY_OPTIONS' => $s_birthday_day_options,
|
||||
'S_BIRTHDAY_MONTH_OPTIONS' => $s_birthday_month_options,
|
||||
|
@@ -787,6 +787,7 @@ $schema_data['phpbb_profile_fields'] = array(
|
||||
$schema_data['phpbb_profile_fields_data'] = array(
|
||||
'COLUMNS' => array(
|
||||
'user_id' => array('UINT', 0),
|
||||
'pf_phpbb_location' => array('VCHAR', ''),
|
||||
'pf_phpbb_interests' => array('TEXT_UNI', ''),
|
||||
'pf_phpbb_occupation' => array('TEXT_UNI', ''),
|
||||
),
|
||||
@@ -1165,7 +1166,6 @@ $schema_data['phpbb_users'] = array(
|
||||
'user_sig' => array('MTEXT_UNI', ''),
|
||||
'user_sig_bbcode_uid' => array('VCHAR:8', ''),
|
||||
'user_sig_bbcode_bitfield' => array('VCHAR:255', ''),
|
||||
'user_from' => array('VCHAR_UNI:100', ''),
|
||||
'user_icq' => array('VCHAR:15', ''),
|
||||
'user_aim' => array('VCHAR_UNI', ''),
|
||||
'user_yim' => array('VCHAR_UNI', ''),
|
||||
|
@@ -188,7 +188,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||
'AUTHOR_AVATAR' => (isset($user_info['avatar'])) ? $user_info['avatar'] : '',
|
||||
'AUTHOR_JOINED' => $user->format_date($user_info['user_regdate']),
|
||||
'AUTHOR_POSTS' => (int) $user_info['user_posts'],
|
||||
'AUTHOR_FROM' => (!empty($user_info['user_from'])) ? $user_info['user_from'] : '',
|
||||
|
||||
'ONLINE_IMG' => (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('icon_user_online', $user->lang['ONLINE']) : $user->img('icon_user_offline', $user->lang['OFFLINE'])),
|
||||
'S_ONLINE' => (!$config['load_onlinetrack']) ? false : ((isset($user_info['online']) && $user_info['online']) ? true : false),
|
||||
|
@@ -270,7 +270,6 @@ class ucp_profile
|
||||
'yim' => request_var('yim', $user->data['user_yim']),
|
||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),
|
||||
'website' => request_var('website', $user->data['user_website']),
|
||||
'location' => utf8_normalize_nfc(request_var('location', $user->data['user_from'], true)),
|
||||
);
|
||||
|
||||
if ($config['allow_birthdays'])
|
||||
@@ -305,7 +304,6 @@ class ucp_profile
|
||||
'website' => array(
|
||||
array('string', true, 12, 255),
|
||||
array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')),
|
||||
'location' => array('string', true, 2, 100),
|
||||
);
|
||||
|
||||
if ($config['allow_birthdays'])
|
||||
@@ -351,7 +349,6 @@ class ucp_profile
|
||||
'user_yim' => $data['yim'],
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_website' => $data['website'],
|
||||
'user_from' => $data['location'],
|
||||
'user_notify_type' => $data['notify'],
|
||||
);
|
||||
|
||||
@@ -420,7 +417,6 @@ class ucp_profile
|
||||
'MSN' => $data['msn'],
|
||||
'JABBER' => $data['jabber'],
|
||||
'WEBSITE' => $data['website'],
|
||||
'LOCATION' => $data['location'],
|
||||
));
|
||||
|
||||
// Get additional profile fields and assign them to the template block var 'profile_fields'
|
||||
|
Reference in New Issue
Block a user