Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to preselect a value in the forum dropdownlist?


  • Null
    Member

    @null

    Hi,

    With <?php forum_dropdown(); ?> I get a dropdowlistbox that shows all the forums on my forum. Works great, but how can I get the dropdownlistbox to preselect a forum instead of showing the first one in the list?

    Tried:

    <?php forum_dropdown(2); ?> Where 2 = forum id of the preselected forum

    <?php forum_dropdown('Forum2'); ?> Where Forum2 is the name of the preselected forum

    Any ideas?

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)

  • Ben L.
    Member

    @nightgunner5

    <?php bb_forum_dropdown( array( 'selected' => 2 ) ); ?>


    Null
    Member

    @null

    Ahhhh so simple once you know how to do it :) Thanks a lot, it worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar