forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: jabi on October 24, 2004, 11:21:29 pm

Title: Thumbnail directly to view file
Post by: jabi on October 24, 2004, 11:21:29 pm
How can we go directly from the thumbnail to opening the file in a new window for non-image files. Yes, we recognize that the visitor must have the proper plug-in(s) and that's not an issue for our application.

The intermediate step is great for images (to generate a slide show, give file info, etc.) but is of no value to us for document files (such as pdf) and we prefer to by-pass it, based on the extention.

The starting URL is: http://localhost/cpg132/thumbnails.php?album=1
Desired resulting URL is: http://localhost/cpg132/albums/userpics/10001/intake_combined_adult.pdf

Want to bypass: http://localhost/cpg132/displayimage.php?album=1&pos=0

In which file(s) and where would we place the "if" or "switch" statements to have this happen. I've studied the displayimage.php, init.inc.php and thumbnails.php but haven't been able to identify the relevant lines.

Thank you.
Title: Re: Thumbnail directly to view file
Post by: Joachim Müller on October 25, 2004, 07:23:43 am
take a look at include/functions.inc.php and themes/yourtheme/theme.php as well.

Joachim
Title: Re: Thumbnail directly to view file
Post by: belgiebob on October 04, 2005, 06:01:14 pm
Hi,

I was wondering if you found a solution for this problem.  If so could you let me knowhow you ended up doing it.  I would find this a very usefull mod for my site

Thanks
Title: Re: Thumbnail directly to view file
Post by: Joachim Müller on October 05, 2005, 06:23:02 am
http://forum.coppermine-gallery.net/index.php?topic=15671.0