Search Marker Documentation
Installation
Unzip the archive and copy the file pi.search_marker.php into the plugins-directory inside your Expression Engine system-directory.
Usage:
1. Add the following style to your CSS and modify the color as you see fit.
.marker { background-color: #ff0; }
2. Wrap your fields with the plugin tags.
Example:
{exp:search:search_results}
{exp:search_marker}
<p>{summary}</p>
<p>{body}</p>
{/exp:search_marker}
{/exp:search:search_results}
Changelog:
1.1:
- fixed an error when highlighting keywords containing entities
- added use of session cache to minimize SQL queries
Questions / bug reports
For general comments, brickbats & bouquets please use the form over here.Page 1 of 1 pages
User Talk
2010-03-09 12:25
I just checked the entry in the database and it is stored as &_#_248;
I added the underlines to stop it doing the conversion
2010-03-09 12:19
Upgraded to 1.0.1 and now get:
Warning: preg_replace() [function.preg-replace]: Unknown modifier ‘2’ in /home/abcde/public_html/blue/plugins/pi.search_marker.php on line 89
and it’s not finding the match.
2010-03-09 10:22
I have just come across a small problem that is probably a bit unique, but wonder if there is a small hack I can make to fix it.
I have a name that includes the ø (latin O with a stroke) that people may want to search on, but it us not recognised, and when logged in as SuperAdmin I see this error message:
Warning: preg_replace() [function.preg-replace]: Unknown modifier ‘2’ in /home/abcde/public_html/system/plugins/pi.search_marker.php on line 81
I’m not sure if the problem is with EE or the plugin that just highlights it.