Thumbnail directly to view file Thumbnail directly to view file
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Thumbnail directly to view file

Started by jabi, October 24, 2004, 11:21:29 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jabi

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.

Joachim Müller

take a look at include/functions.inc.php and themes/yourtheme/theme.php as well.

Joachim

belgiebob

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

Joachim Müller