K2 Live Search Mod 1.0

This mod is no longer supported. Live Search in the current K2 svn works great.

This is a modification of the Live Search functionality found in K2 from svn and the nightly builds. I’m currently using this mod with my site. For a demonstration, just type something in the search field. This mod will not work in K2 Beta Two r167. If Live Search and/or Rolling Archives currently do not work with your site, then this mod most likely will not work.

Features:

  1. Search results shown in the sidebar.
  2. Works without the need of the built-in Rolling Archives. Yay!
  1. Button to clear the search results.

Installation Instructions:

  1. Make a backup of the following files:
    • livesearch.php
    • searchform.php
    • js/livesearch.js.php
  2. Download live-search-1.0.zip.
  3. Copy livesearch.php and searchform.php into the k2 folder, replacing the existing files.
  4. Copy livesearch.js.php into the js subfolder, replacing the existing file.
  5. Copy search-more.gif and search-reset.gif into your scheme’s images folder.
  1. Add the following to your scheme’s stylesheet:

[syntax,k2-live-search/live-search-css.txt,dl]

Notes:

If you’re applying the stylesheet additions directly to the default style.css then change the background tag for #search-loading to: background: url('images/spinner.gif') center center no-repeat;

18 Responses to “K2 Live Search Mod 1.0”


Comments are currently closed.