coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Raphus on June 28, 2007, 10:19:06 PM

Title: Search results
Post by: Raphus on June 28, 2007, 10:19:06 PM
First I have to thank this great community for providing this phenomenal software package!

The issue I'm having is the following; when I do a search for a specific image, and that image is found in the CPG database, when clicking on it it does NOT bring me to the actual URL of the image (ie: /displayimage.php?pos=-33) , but instead it brings me to a temporary URL (ie: /displayimage.php?album=search&cat=0&pos=0)..

Is there any way possible to have it go directly to the image URL instead of this 'temporary' search url? The main reason I'd needthis is because if you search for an image, and display it, it doesn't display the FILM STRIP.. To do so you have to go into the image info, then click on the correct URL at the bottom.

Any help on this issue would be greatly appreciated it, i know it may seem like an insignificant thing...

Thanks in advanced!
Title: Re: Search results
Post by: artoonie on July 01, 2007, 01:31:25 AM
I couldn't figure it out, but here's a way to display the filmstrip even if it is searching. It shows a filmstrip of the search results though.

Open: displayimage.php

Find:
    if ($album != 'search') {
        $film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
    }


Replace with:
    $film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
Title: Re: Search results
Post by: Raphus on July 02, 2007, 08:47:45 PM
thanks for the reply artoonie -

What i really need to be able to see are the pictures in the album before and after the searched photo.. I was thinking, when the searched image is displayed, is there any way to have coppermine link to the actual photo instead of the that temporary search URL is creates?

thanks again!
Title: Re: Search results
Post by: sharpo on May 18, 2009, 06:24:46 PM
I use "search" a lot with my gallery, and missed not having a filmstrip when viewing the resulting images.

Thanks to artoonie for providing a solution.

Proves that it is worth searching the forum.

Cheers to all of you.