XF 1.5 How to add "with images" filter to search

pmosey

Member
Hey folks,
First time poster here.

We would like to add the ability to filter by posts with images in the search.
I've searched all over but can't seem to find anyone looking for the exact same thing. We looked into Media Gallery which looks great but not exactly what we are looking for.

We would just like a checkbox in the search that filters the results by images or the IMG tag.

Is there currently an extension that could this or any tips on how to go about it?

Thanks.
 
Last edited:
That's something I've been fiddling around for a while. While you could search for [IMG]tags, there's no practical way of telling if that given img-tag content actually is an image. So only attachments would be a good starting point to search for.
 
Are you searching for posts with the same image?
No, we'd like the ability to search for posts with any image (or attachment I suppose) in it.

there's no practical way of telling if that given img-tag content actually is an image.
I'd be okay with that! Is there currently a way to search for the
img tag?
I've tried a bunch of times but can't get it to work.
 
Back
Top Bottom