1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make forum selector a multiple one?

Discussion in 'XenForo Development Discussions' started by Milad Kawas Cale, Oct 28, 2010.

  1. Hello

    Here's my option:

    I need your help to make it multiple select instead of single select drop-down menu.
    There is no clear way to do this! No documentation either.

    Any help would be appreciated.
  2. Kier

    Kier XenForo Developer Staff Member

    You can add size="10" multiple="multiple" to your <xen:selectunit /> code.
  3. Thank you, Kier!

    So there is no input field for this in the form above?

  4. You mean to create the option on my own and not to use the default XenForo_Option_ForumChooser::renderOption ?
  5. Kier

    Kier XenForo Developer Staff Member

    No, I suggest you write a new XenForo_Option_ForumChooser::renderOption that extends the original but points to a different template with the appropriate multiple/size parameters specified.
  6. OK, got it, thank you!

    I really think that, sooner or later, you will create it for xenforo, there must be a usage for it.

    random likes this.
  7. vbgamer45

    vbgamer45 Active Member

    Milad Kawas Cale did you ever end up making a multiple forum chooser?
  8. vbgamer45

    vbgamer45 Active Member

    I ended up making my own with a custom template.
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    See the second post in tihs thread.
  10. Crazy-Achmet

    Crazy-Achmet Active Member

    Did anyone got this to work?

    I was be able to save the values of a multiple forum selector but i couldn't preselect the forums in the forum selector the next time i reload the page.

    Any hints for me? ;)
    ragtek likes this.
  11. ragtek

    ragtek Guest

Share This Page