Thumbnail directly to view file Thumbnail directly to view file
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Thumbnail directly to view file

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

Previous topic - Next topic

0 Members and 1 Guest 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