|
@@ -1471,7 +1471,7 @@ function EditCustomProfiles()
|
|
|
// Load the profile language for section names.
|
|
|
loadLanguage('Profile');
|
|
|
|
|
|
- // Theres really only a few places we can go...
|
|
|
+ // There's really only a few places we can go...
|
|
|
$move_to = array('up', 'down');
|
|
|
|
|
|
// We need this for both moving and saving so put it right here.
|
|
@@ -1482,7 +1482,7 @@ function EditCustomProfiles()
|
|
|
$request = $smcFunc['db_query']('', '
|
|
|
SELECT
|
|
|
id_field, col_name, field_name, field_desc, field_type, field_order, field_length, field_options,
|
|
|
- show_reg, show_display, show_profile, private, active, default_value, can_search,
|
|
|
+ show_reg, show_display, show_mlist, show_profile, private, active, default_value, can_search,
|
|
|
bbc, mask, enclose, placement
|
|
|
FROM {db_prefix}custom_fields
|
|
|
WHERE id_field = {int:current_field}',
|
|
@@ -1508,6 +1508,7 @@ function EditCustomProfiles()
|
|
|
'profile_area' => $row['show_profile'],
|
|
|
'reg' => $row['show_reg'],
|
|
|
'display' => $row['show_display'],
|
|
|
+ 'mlist' => $row['show_mlist'],
|
|
|
'type' => $row['field_type'],
|
|
|
'order' => $row['field_order'],
|
|
|
'max_length' => $row['field_length'],
|
|
@@ -1538,6 +1539,7 @@ function EditCustomProfiles()
|
|
|
'profile_area' => 'forumprofile',
|
|
|
'reg' => false,
|
|
|
'display' => false,
|
|
|
+ 'mlist' => false,
|
|
|
'type' => 'text',
|
|
|
'order' => 0,
|
|
|
'max_length' => 255,
|
|
@@ -1608,6 +1610,7 @@ function EditCustomProfiles()
|
|
|
// Checkboxes...
|
|
|
$show_reg = isset($_POST['reg']) ? (int) $_POST['reg'] : 0;
|
|
|
$show_display = isset($_POST['display']) ? 1 : 0;
|
|
|
+ $show_mlist = isset($_POST['mlist']) ? 1 : 0;
|
|
|
$bbc = isset($_POST['bbc']) ? 1 : 0;
|
|
|
$show_profile = $_POST['profile_area'];
|
|
|
$active = isset($_POST['active']) ? 1 : 0;
|
|
@@ -1758,7 +1761,7 @@ function EditCustomProfiles()
|
|
|
field_name = {string:field_name}, field_desc = {string:field_desc},
|
|
|
field_type = {string:field_type}, field_length = {int:field_length},
|
|
|
field_options = {string:field_options}, show_reg = {int:show_reg},
|
|
|
- show_display = {int:show_display}, show_profile = {string:show_profile},
|
|
|
+ show_display = {int:show_display}, show_mlist = {int:show_mlist}, show_profile = {string:show_profile},
|
|
|
private = {int:private}, active = {int:active}, default_value = {string:default_value},
|
|
|
can_search = {int:can_search}, bbc = {int:bbc}, mask = {string:mask},
|
|
|
enclose = {string:enclose}, placement = {int:placement}
|
|
@@ -1767,6 +1770,7 @@ function EditCustomProfiles()
|
|
|
'field_length' => $field_length,
|
|
|
'show_reg' => $show_reg,
|
|
|
'show_display' => $show_display,
|
|
|
+ 'show_mlist' => $show_mlist,
|
|
|
'private' => $private,
|
|
|
'active' => $active,
|
|
|
'can_search' => $can_search,
|
|
@@ -1808,14 +1812,14 @@ function EditCustomProfiles()
|
|
|
array(
|
|
|
'col_name' => 'string', 'field_name' => 'string', 'field_desc' => 'string',
|
|
|
'field_type' => 'string', 'field_length' => 'string', 'field_options' => 'string', 'field_order' => 'int',
|
|
|
- 'show_reg' => 'int', 'show_display' => 'int', 'show_profile' => 'string',
|
|
|
+ 'show_reg' => 'int', 'show_display' => 'int', 'show_mlist' => 'int', 'show_profile' => 'string',
|
|
|
'private' => 'int', 'active' => 'int', 'default_value' => 'string', 'can_search' => 'int',
|
|
|
'bbc' => 'int', 'mask' => 'string', 'enclose' => 'string', 'placement' => 'int',
|
|
|
),
|
|
|
array(
|
|
|
$colname, $_POST['field_name'], $_POST['field_desc'],
|
|
|
$_POST['field_type'], $field_length, $field_options, $new_order,
|
|
|
- $show_reg, $show_display, $show_profile,
|
|
|
+ $show_reg, $show_display, $show_mlist, $show_profile,
|
|
|
$private, $active, $default, $can_search,
|
|
|
$bbc, $mask, $enclose, $placement,
|
|
|
),
|
|
@@ -1865,7 +1869,7 @@ function EditCustomProfiles()
|
|
|
checkSession();
|
|
|
|
|
|
$request = $smcFunc['db_query']('', '
|
|
|
- SELECT col_name, field_name, field_type, field_order, bbc, enclose, placement
|
|
|
+ SELECT col_name, field_name, field_type, field_order, bbc, enclose, placement, show_mlist
|
|
|
FROM {db_prefix}custom_fields
|
|
|
WHERE show_display = {int:is_displayed}
|
|
|
AND active = {int:active}
|
|
@@ -1891,6 +1895,7 @@ function EditCustomProfiles()
|
|
|
'bbc' => $row['bbc'] ? '1' : '0',
|
|
|
'placement' => !empty($row['placement']) ? $row['placement'] : '0',
|
|
|
'enclose' => !empty($row['enclose']) ? $row['enclose'] : '',
|
|
|
+ 'mlist' => $row['show_mlist'],
|
|
|
);
|
|
|
}
|
|
|
$smcFunc['db_free_result']($request);
|