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.
- You must be logged in to reply to this topic.