Member
Member
RachelL   2009-01-10, 00:42
#1

Hi,

Does anyone know if there is a way for the search results to show images only, and not albums?

Thanks in advance,
Rachel

Member
Member
sbillard   2009-01-10, 01:17
#2

You would have to modify the search.php page of your theme to omit the album display part.

Member
Member
RachelL   2009-01-10, 02:41
#3

Thanks Sbillard,

That's the only thing I've tried so far; when I do that, the first page of the search results is empty, but page #2 onwards starts displaying the images alone perfectly with no albums.. the thing I deleted was the section with
to endwhile

I'm using the default theme with v1.1, would the new version allow this to work or should it work all the same?

Thanks for the help,
Rachel

Member
Member
RachelL   2009-01-10, 02:51
#4

Sorry, I'm using v1.2.1 not 1.1!

Member
Member
sbillard   2009-01-10, 03:48
#5

You are right, the pagination will include any albums found. The only way to do what you want is to 'criple' the album part of the search engine. Find function getAlbums() in class-search.php and insert return array()' as the first line of the function.

Member
Member
RachelL   2009-01-10, 04:07
#6

It worked perfectly, thank you so much!

Rachel

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.