Include images thumbnails in the results excerpts when searching "with:images"

Hi!

I’m often looking for images posted by people on my forum, especially on certain topics (in fact, I sometimes try to do this on any forum engine).

The search query is like:

@Canapin with:images topic:265354

On the topic view, the results look like this:

On the advanced search page, it looks like this:

It would be cool if we had thumbnails included in the excerpts to easily find what we’re looking for - or simply have a good overview.

Plus, currently, the only way to check all the results is by clicking a result to see the post, then clicking the search icon again to see again the list of results, then clicking the second result, etc… Quickly annoying. :confused:


A mockup:

image

Excerpt example code:

<a class="widget-link search-link" href="/t/pictures-of-your-latest-ride-continued/265354/450" title="">
#450 by Canapin
  <span class="blurb"><span title="Sep 24, 2016 4:52 pm" data-time="1474728722000" data-format="tiny" class="relative-date">Sep 2016</span><span> - </span>
  <span>Poitiers, France http://tof.canardpc.com/view/6009f51c-c924-4d4b-b04f-b93fda475d3f.jpg</span></span>
  <span class="thumbnails-container">
    <span class="result-thumbnail" style="background-image: url('https://f5i4i8k5.stackpathcdn.com/uploads/default/original/3X/f/5/f5ec74ec6a23af79ccc2aa0fa175e2db15932aa2.jpeg');"></span>
    <span class="result-thumbnail" style="background-image: url('https://f5i4i8k5.stackpathcdn.com/uploads/default/original/3X/6/d/6d47f72debc3920dabf483e940b8c0b66f0da772.jpeg');"></span>
    <span class="result-thumbnail" style="background-image: url('https://f5i4i8k5.stackpathcdn.com/uploads/default/original/3X/a/3/a3ff77045a113377db71625dba7ac63487958608.jpeg');"></span>
    <span class="result-thumbnail" style="background-image: url('https://f5i4i8k5.stackpathcdn.com/uploads/default/original/3X/0/1/018c76e5db311eddf6ee18740f139e0594773be0.jpeg');"></span>
    <span class="result-thumbnail" style="background-image: url('https://f5i4i8k5.stackpathcdn.com/uploads/default/original/3X/d/e/dec5d4e4948c074614d41c56ae087d782361ec6f.jpeg');"></span>
  </span>
</a>
.thumbnails-container {
    display: flex;
}
.result-thumbnail {
    width: 20%;
    height: 80px;
    margin-right: 10px;
    background-size: cover;
}

Alternatively, an added link could display a regular post list containing only the posts found from the search query, and we would scroll through them as a regular post list (kinda like the “summarize topic” feature).

7 Likes

This definitely looks nifty! I love it :heart_eyes:

3 Likes