(not a mycode request) - Edit Search Function
The "Find All Threads" link should filter by threads without post snips.

For the "Find All Posts"..

(2014-04-04, 03:51 AM)Leefish Wrote: I think that this is actually in the member php.

On or about line 1452 there is this query:

$query = $db->simple_select("threads", "tid", "fid IN (0$flist) AND visible = 1", array('order_by' => 'lastpost', 'order_dir' => 'DESC', 'limit' => '1'));

You could try changing the variable (0$flist) to something like ('1','2','3'). If you do decide to edit a core file I suggest you use the patches plugin as it makes upgrades much easier.

Code not tested.

It is actually in the search.php file, replace:
$where_sql = "uid='".intval($mybb->input['uid'])."'";

$where_sql = "uid='".intval($mybb->input['uid'])."' AND fid IN ('1', '2', '3')";

Where 1, 2, and 3 are the allowed forums to search in.

To snip HTML, MyCode, and quotes from psot results, there was a plugin/mod of mine around here I couldn't find now xD

Messages In This Thread
RE: (not a mycode request) - Edit Search Function - by Omar G. - 2014-04-04, 04:39 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)