januszmk6
01-02-2014, 03:15 PM
Hi. I am trying to add filter to quick search form, so if someone set a checkbox, the search result will be just from specific forum id.
I can see that there is
vB_Search_Criteriaq::add_filter where I can add array of forum ids, but I see that all plugins are before
$criteria->set_search_terms($searchterms); which remove my search filters. I tried also add custom values to request array:
$_REQUEST['forumchoice'][] = 122;
$_REQUEST['childforums'] = 1;
$globals['forumchoice'] = 10;
$globals['childforums'] = 1;
but it seems that it doesn't work in that way.
Could someone help me with this?
vB version: 4.2.2
I can see that there is
vB_Search_Criteriaq::add_filter where I can add array of forum ids, but I see that all plugins are before
$criteria->set_search_terms($searchterms); which remove my search filters. I tried also add custom values to request array:
$_REQUEST['forumchoice'][] = 122;
$_REQUEST['childforums'] = 1;
$globals['forumchoice'] = 10;
$globals['childforums'] = 1;
but it seems that it doesn't work in that way.
Could someone help me with this?
vB version: 4.2.2