06-29-2010, 07:11 AM
|
|
|
|
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Solution for everybody who needs it:
Quote:
Originally Posted by Mystics
In file search.php search for:
Code:
//caputure the search form values for backreferencing
add after it:
Code:
$vbulletin->input->clean_array_gpc('r', array(
'exclude' => TYPE_NOHTML,
'include' => TYPE_NOHTML
));
if ($vbulletin->GPC['include'])
{
$list = explode(',', $vbulletin->GPC['include']);
if (is_array($list))
{
$list = array_map('intval', $list);
$criteria->add_forumid_filter($list, false);
}
}
if ($vbulletin->GPC['exclude'])
{
$list = explode(',', $vbulletin->GPC['exclude']);
if (is_array($list))
{
$list = array_map('intval', $list);
$criteria->add_excludeforumid_filter($list);
}
}
|
Works perfect
|