Skip to:
Content
Pages
Categories
Search
Top
Bottom

Broken forum search? forum-id vs. forum_id

  • I had problems with the “search in forum” feature. The “select” input control is displayed, but it seems as if the value i choose isn’t used by the code.

    When I press submit, this is he URL that is sent to the web server:

    http://my.hostname.com/forum/search.php?search=nisse&forum-id=2

    In this example, the forum restriction does not take effect.

    However,

    if i manually change the URL to:

    http://my.hostname.com/forum/search.php?search=nisse&forum_id=2 (note the underscore; forum_id)

    then it works!

    I can track it down to the file:

    /bb-includes/class.bb-query.php

    and this code:

    if ( $forum ) {

    $r .= "t<div><label for="forum-id">" . __('Forum') . "</label>n";

    $r .= "tt<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any'), 'id' => 'forum-id

    ' ) ) . "</div>n";

    $r .= "t</div>nn";

    }

    Changing forum-id to forum_id here fixes the problem, but I would prefer not to tamper with core files.

Viewing 1 replies (of 1 total)

  • chrishajer
    Participant

    @chrishajer

    If you feel this is a problem with the bbPress core, please open a ticket at trac so the problem can be fixed.

    https://trac.bbpress.org/

    You can log in there with your wordpress.org login, or get one from wordpress.org if you need one.

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