Collections functions
General functions
Render functions
Theme permission functions
Resource functions



Generate an html multi-select block for selecting from among RS users.

An array consisting of the user keys (i.e., values from the "ref" column of the user table) for the
selected users is the value posted.


$name string the name of the select block. Usually the name of the config variable being set.
$label string the user text displayed to label the select block. Usually a $lang string.
$current array
$width integer 300 the width of the input field in pixels. Default: 300.
array integer $current the current value of the config variable being set.


include/plugin_functions.php lines 775 to 794


function config_multi_user_select($name$label$current=array(), $width=300)
  <div class="Question">
    <label for=" echo $name?>" title=" echo str_replace('%cvn'$name$lang['plugins-configvar'])?>"> echo $label?></label>
    <select name=" echo $name?>[]" id=" echo $name?>" class="MultiSelect" multiple="multiple" size="7" style="width: echo $width ?>px">

    foreach (
$users as $user)
'    <option value="' $user['ref'] . '"' . ((in_array($user['ref'],$current))?' selected':'') . '>' $user['fullname'] . ' (' $user['email'] . ')</option>';
    <div class="clearerleft"></div>


This article was last updated 5th February 2023 08:35 Europe/London time based on the source file dated 2nd September 2022 14:25 Europe/London time.