Info
- 2 posts
- 2 voices
- Started 2 years ago by windyjonas
- Latest reply from chrishajer
- This topic is not resolved
Broken forum search? forum-id vs. forum_id
-
- Posted 2 years ago #
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 .= "\t\t<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any'), 'id' => 'forum-id
' ) ) . "</div>\n";
$r .= "\t</div>\n\n";
}
Changing forum-id to forum_id here fixes the problem, but I would prefer not to tamper with core files. -
- Posted 2 years ago #
If you feel this is a problem with the bbPress core, please open a ticket at trac so the problem can be fixed.
You can log in there with your wordpress.org login, or get one from wordpress.org if you need one.
-
You must log in to post.