Advanced search  

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

Pages: [1]   Go Down

Author Topic: Thumbnail directly to view file  (Read 3280 times)

0 Members and 1 Guest are viewing this topic.

jabi

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Thumbnail directly to view file
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnail directly to view file
« Reply #1 on: October 25, 2004, 07:23:43 am »

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

Joachim
Logged

belgiebob

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Thumbnail directly to view file
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.