I allready did exactly that, and I also wrote the link into the includes/page_header.php, by adding:
Code: Alles auswählen
'U_SEARCH_STATUS' => append_sid('search.'.$phpEx.'?search_id=statussearch'),Code: Alles auswählen
'L_SEARCH_STATUS' => $lang['Search_status'],So, everything is set for the search - but it doesn't work..
This is how I wrote the mysql-query, but somethings not correct:
Code: Alles auswählen
			// BEGIN add status to topic mod
			else if ( $search_id == 'statussearch' )
			{
				if ( $userdata['session_logged_in'] )
				{
					$sql = "SELECT topic_id 
						FROM " . TOPICS_TABLE . " 
						WHERE topic_info = '2'";
				}
				else
				{
					... bla bla ...gee... guess this makes me sound like one poor bastard
Best regards
- Jesper