Multiselectbox and selectbox layout

BP Profile Search › Multiselectbox and selectbox layout

  • Author
    Post
  • #10021 Reply
    Pasi
    Guest

    Hi,

    below is output of selectbox and multiselectbox. Is there anyway to change output the way it prints instead of 1 column to for example 3 columns.

    ?php
    break;
    case ‘selectbox’:
    ?>
    <select id=”<?php echo $id; ?>” name=”<?php echo $name; ?>”>
    <?php foreach ($f->options as $key => $label) { ?>
    <option <?php if ($key == $value) echo ‘selected=”selected”‘; ?> value=”<?php echo $key; ?>”><?php echo $label; ?> </option>
    <?php } ?>
    </select><br>
    <?php
    break;
    case ‘multiselectbox’:
    ?>
    <select style=”font-size:12px; height:140px;” id=”<?php echo $id; ?>” name=”<?php echo $name.'[]’; ?>” multiple=”multiple” size=”<?php echo $f->multiselect_size; ?>”>
    <?php foreach ($f->options as $key => $label) { ?>
    <option <?php if (in_array ($key, $value)) echo ‘selected=”selected”‘; ?> value=”<?php echo $key; ?>”><?php echo $label; ?></option>
    <?php } ?>
    </select><br>

    #10022 Reply
    andrea
    Plugin Author

    Hi Pasi,

    Unfortunately I’m not good at visual design (HTML, CSS) and I’m unable to answer your question. Hope other readers can give some advice.

Reply to: Multiselectbox and selectbox layout
My Information