utilitees

- Addons for ExpressionEngine 1.6.x

Search Marker Documentation

Download Download

Installation

Unzip the archive and copy the file pi.search_marker.php into the plugins-directory inside your Expression Engine system-directory.

Back to top

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} 
Back to top

 

Changelog:

1.1:

  • fixed an error when highlighting keywords containing entities
  • added use of session cache to minimize SQL queries

Back to top

Questions / bug reports

For general comments, brickbats & bouquets please use the form over here.
Name:

Email:

URL:


Remember my personal information
Notify me of follow-up comments?


Page 1 of 1 pages

User Talk

Oliver:
2010-03-10 20:39

Alright. Thanks for the heads-up.
I also seized the opportunity and ported the plugin to 2.0.



Paul Frost:
2010-03-10 20:20

Yes, that’s fixed it for me.
Thanks Oliver



Oliver:
2010-03-10 11:12

Problem should be fixed with version 1.1



Oliver:
2010-03-09 14:35

I see, you have “Automatically Convert High ASCII Text to Entities” enabled. Now I can reproduce it. I’ll have a look.



Paul Frost:
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



Paul Frost:
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.



Oliver:
2010-03-09 11:46

Any chance you are using 1.0? 1.0.1 does not have preg_replace on line 81.
After that is settled we’ll look at the ø if the problem persists. I could not replicate it so far.



Paul Frost:
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.