Search Results - No Images

Please report bugs here!

Moderator: Thorsten

Post Reply
cosmin1086
Posts: 7
Joined: Wed Oct 17, 2012 5:58 pm

Search Results - No Images

Post by cosmin1086 »

Hi There,

I'm having an issue with phpMyFAQ 2.7.8 and the search function. I've created several FAQs with images(some copied and pasted directly into the WYSIWYG editor, others uploaded directly to the site. When I search for the FAQs, and click on one of the results, the record is displayed but the images show up as:
<img src="https://<host>/images/Outlook/OutlookLocation/OutlookLocation1-0000.png" alt="" width="450" height="578" />


This only seems to happen in the search. If I browse to the FAQ, it looks fine. Any ideas?

Thanks,
Cosmin
cosmin1086
Posts: 7
Joined: Wed Oct 17, 2012 5:58 pm

Re: Search Results - No Images

Post by cosmin1086 »

I've also tried 2.8.0-alpha2 and the same thing happens, although it seems hit and miss. Sometimes the image comes up and others I just see the html code as below:
<img src="http://<hostname>/phpmyfaq28/images/Outlook/OutlookLocation1.jpg" alt="How To Find Outlook" width="450" height="578" />
cosmin1086
Posts: 7
Joined: Wed Oct 17, 2012 5:58 pm

Re: Search Results - No Images

Post by cosmin1086 »

This should probably be moved to bug reports, I think I found out the problem. It's the highlighting that's messing up the rendering of the page.
If my search term is "How do I", then the search result tries to highlight each one of those words. Looking at the source, I can see this:

<<span class="highlight">i</span>mg src="https://<hostname>/images/Outlook/OOF1.jpg"

It's adding a span and breaking out the "i" in "img". This of course breaks the rendering. Is there any way we can fix this? For now I'm just looking at turning highlighting off but I don't want to tell users to be careful how they search.

if the search term does not include the letter "i", the results display ok.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search Results - No Images

Post by Thorsten »

Hi,

can you show me this in your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply