Search Hi-Lite Plugin

19th Jan 2006 stk
Introduction & Comparison

This plugin has now been updated for the 2.x series, you can download it here ( AM Search Highlighter ). NOTE : For this version you do not have to make any changes to your skin ;)

More Accurate Search Results Plus Multi-Term Highlighting

It's not often that you can kill two birds with one stone and do it with panache. We believe the "Search Hi-Lite" plugin accomplishes this. As the name suggests, it will highlight multiple search terms with different, user-customizable, colors and styles. Now visitors can actually see the results that they're searching for, at a glance. That in itself is useful, but that's not all this plug-in accompllishes. This plug-in yields more ACCURATE search results than the search function that ships with b2evolution!

You are going to like this plug-in!

While making the proto-type, we discovered that a b2evolution search matched on text inside XHTML tags. A search for "http://" returns every post with an img tag <img src="http://blah.jpg" /> or a link <a href="http://www.blah.com"> in other words, just about every post in a blog! Not good.

When returns are not highlighted, this behavior is difficult to notice. Once we highlighted the terms, however, it became apparent that b2evo was returning unseen text and highlighting them lead to broken images, broken links and - in the worst case - a broken site (if served with a MIME type of "application/xhtml+xml"). It looked awful and was FAR from the desired result. We had to completely redesign the plug-in to work around (and ultimagely FIX) this behavior.

Or goal: Give visitors highlighted search returns that matched the search term(s), either as full words or contained within a larger word (limiting the search to text VISIBLE in the blog).

We have achieved this, via creative coding and modifications to the skin's main template file "_main.php". Note: No core files were harmed in the making of this plugin.

To demonstrate the difference between the standard b2evo search returns and our "Astonish Me! Hi-Lite Search" Plug-in, click the links below. In each case, the search if for "http://":

This simple test makes it clear that not only does this plugin provide obviously VISIBLE search returns, but they're also more relevant and accurate!

You want this plugin, don't you? (I warned you about that!) HA! For downloading and installation instructions ... search on the next page.

***************************************************
Contents
  1. Introduction & Comparison
  2. Install Instructions
  3. Usage & Considerations
  4. FAQs & Something Else
 
 
 
 
 

B.O.P.I.T