This topic is locked

Highlighting Advanced search results

4/9/2007 1:21:18 PM
PHPRunner General questions
D
Dale author

Quick question for support. Ver. 3.0

Any way of getting the Advanced search criteria highlighted on the return page.
I have successfully got all the search results highlighted on the quick search on the list page.

For the html fields, I turned off the view as HTML, after the search was returned with the appropriate words highlighted, I ran a script to reformat the html. Thus keeping the highlights and still getting the html look for the list page.
Works great. I was wondering if there is any way I can have the same effect when using the Advanced search.

M
mmponline 4/10/2007

I got this information from support that works very easy for Simple search. I would be interested in something for Advanced search as well.

PHPRunner has some support for search result highlighting however it's incomplete.

To enable it find this snippet in generated include/commonfunctions.php file:
Find
/

// highlight search results
and remove /
and the next */ signs at the start and end of the code range.


Will watch this post for hopefully some solution on advanced search.

D
Dale author 4/11/2007

A little bump.
Just wondering if there was a behind the scenes snippet that worked like the previous one for simple searches.
Also, I have one little side effect with the current "highlight search criteria". It works perfectly when doing a search on ANY FIELD, works like a charm. BUT if you search using only one column, the highlighting happens all over. It still in all its highlighting is highlighting the correct search criteria as well, so I can live with that. So it seems if you choose what column or Equal, more than etc etc, the highlighting gets a bit confused. Most often, people just search all fields, and as I say, it works fine there.
Maybe there is an improved snippet for that snippet as well.
Thankyou for the great support. This is the one forum I check daily. Lots of good stuff in here.