View Full Version : phpdig highlight class only for first search word

10-15-2003, 08:04 AM

there's another one on my list of bugs that i'd like to have fixed:
on the results-page phpdig puts the search-words in a <span class="phpdigHighlight">. that's a nice thing - if it would work correctly. :-)
the problem is: it only puts the first word in that class, other words are not highlighted. is that a known bug? any fixes available?

10-17-2003, 12:06 PM
Sorry don't understand the Problem :confused:

See: documentation apache are highlight (http://www.phpdig.net/demo/search.php?template_demo=.%2Ftemplates%2Fphpdig.html&site=0&path=&result_page=search.php&query_string=document+Apache&search=Go...&limite=10&option=start)


10-17-2003, 12:32 PM
??? that is really strange. now it suddenly works with my site, too.
but it definitely didn't before. strange. perhaps it's still some kind of bug, that it doesn't in some special cases. i'm gonna keep my eyes open...

10-17-2003, 08:42 PM
but, try a query containing 2 words beside each other, it won't highlight both words but it'll only highlight one :-( thats a major BUG.

Please fix it.

10-17-2003, 09:37 PM
Hi. It looks to be a problem with the "exact words" option and will be worked on for a future release. :)

10-18-2003, 04:16 AM
right. that was the problem. when you search aus "exact" it won't highlight both.

11-26-2003, 10:10 AM
Hi. This should be fixed in PhpDig version 1.6.4.