while ($row = phpbb::$db->sql_fetchrow($result)) { $contribs[] = $row['contrib_id']; } phpbb::$db->sql_freeresult($result); // Search in the set titania_search::in_set($query, 'id', $contribs); } $query->where($query->eq('type', TITANIA_CONTRIB)); } else { // Search type if ($search_type) { $query->where($query->eq('type', $search_type)); } } // Do the search $results = titania_search::custom_search($query, $sort); // Grab the users users_overlord::load_users($results['user_ids']); /*switch ($display) { case 'topics' : foreach ($results['documents'] as $document) { $url_base = $document->url; $url_params = ''; if (substr($url_base, -1) != '/') { $url_params = substr($url_base, (strrpos($url_base, '/') + 1)); $url_base = substr($url_base, 0, (strrpos($url_base, '/') + 1)); }