When using the search engine, it highlights words in the code my modifying it. The problem is that the code contains links to pictures that contain the same keyword we searched for.
With highlighting OFF (first image string):
<p><img height="421" alt="Netopia_1.gif" hspace="0" src="/secured/yoda/images/Netopia_1.gif" width="648" align="baseline" border="0" /></p>
Same string, highlighting on:
<p><img height="421" alt="<span class="highlight">Netopia</span>_1.gif" hspace="0" src="/secured/yoda/images/Netopia_1.gif" width="648" align="baseline" border="0" /></p>
I turned the highlight function off in artikel.php by commenting the part out and it works now.
I must have disabled something else.
Will there be a fix for this. It should not look at the attachements names !
artikel.php highlight problem
Moderator: Thorsten
Hi,
this shouldn't happened.
Which version do you use?
I fix every bug!
bye
Thorsten
this shouldn't happened.

Which version do you use?
I fix every bug!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
I used version 1.4.7
Here is the artikel.php file code i have been forced to remove.
# Remove highlight function to allow the search engine to work properly
# It was removing access to screenshots because the filename contained # the word we were searching
#
# $highlight = $_REQUEST["highlight"];
# $highlight = str_replace("/", "\/", $highlight);
# $content = preg_replace('/(((href|src)="[^"]*)?'.$highlight.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
If you can fix that man, i'd sooo love you
Here is the artikel.php file code i have been forced to remove.
# Remove highlight function to allow the search engine to work properly
# It was removing access to screenshots because the filename contained # the word we were searching
#
# $highlight = $_REQUEST["highlight"];
# $highlight = str_replace("/", "\/", $highlight);
# $content = preg_replace('/(((href|src)="[^"]*)?'.$highlight.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
If you can fix that man, i'd sooo love you
