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
-
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.
-
take a look at include/functions.inc.php and themes/yourtheme/theme.php as well.
Joachim
-
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
-
http://forum.coppermine-gallery.net/index.php?topic=15671.0