Recent Changes - Search:

Users

Developers

Wiki help.

SearchFilter

Purpose

Allows filtering the results of an item list by a keyword search on title and description.

Modification instructions (for V0.7 RC1)

1. In listItems.php find:

   echo '<input type="submit"...
around line 143

2. Insert the following just before the line in step 1:

   echo "&nbsp;&nbsp;&nbsp;\nSearch:&nbsp;\n";
   echo '<input type="text" name="search" size="10" />';

3. Find the text:

  if($showme=="y") {

  around line 161

4. Insert the following block just before the line in step 3:

$search = strtoupper($_POST['search']);
if($search != "") {
  if(!strstr(strtoupper($row['title']),$search) and !strstr(strtoupper($row['description']),$search)) $showme="n";
}

5. Save, refresh your browser, and enjoy your new search filter!

Questions/comments

Add-Ons User Contributed

Edit - History - Print - Recent Changes - Search
Page last modified on December 17, 2007, at 07:55 AM