Only fill this in if you're a spammer huh? Your name :
Your email :
Your message :
Dec
20th
2005

[renderer] Search highlighting

Posted in : Plugins & renderers, Renderers, Plugins, B2evo cvs

Having seen this feature requested a few times on the [b2evo] forums, and having been stoutly nudged by an unnamed displaced yank with "I've been after this for ages as well" I've created a search term highlighter plugin.

As always to use this plugin, download [media phoenix/renderers/search.zip]this file[/media] and upload it to your plugins directory.

Go into admin for your blog and choose the settings tab and then the plugins subtab, and click the install link for the plugin.

The search keywords are highlighted with the css classes search_hit# where # is the keyord number 0 > x , I would imagine that 10 or so would be more than ample for any search that is done

There are a few flaws in the way the search results are returned by the evocore at the moment. If you search for <span> it will return any posts with <span> tags (which obviously can't be highlighted). I'm working on a way to overcome this without hacking the evocore, but at the moment the plugin just works with the evocores version of results

There's also a flaw which highlights words that are part of link urls etc, I'll hopefully be eradicating that one as well, if not .... well... I can live with it :p

¥

Subscribe to rss feed
 
Skin design by AstonishMe This blog is powered by b2evolution
 

X