2009-08-25, 05:17 PM
TechMIX' fix does work, but he missed one additional line of code.
Apply his first edit, but for the second, find these 2 lines of code:
and replace with:
Then the search will find only thanked posts and work perfectly!
Apply his first edit, but for the second, find these 2 lines of code:
$where_sql .= " AND NOT p.thx='0'";
$searcharray["querycache"] = $db->escape_string($where_sql);
and replace with:
$where_sql .= "AND NOT thx='0'";
$query = $db->simple_select("posts", "pid", "{$where_sql}", $options);
$pids = "";
$comma = "";
while($pid = $db->fetch_field($query, "pid"))
{
$pids .= $comma.$pid;
$comma = ",";
}
$searcharray["posts"] = $db->escape_string($pids);
Then the search will find only thanked posts and work perfectly!