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: Link Thumbnails directly to fullsize image (.jpg)  (Read 3105 times)

0 Members and 1 Guest are viewing this topic.

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Link Thumbnails directly to fullsize image (.jpg)
« on: January 03, 2008, 08:29:08 pm »

Hello,

I am looking to modify the code for my thumbnails so that when clicked, the link goes directly to the fullsize jpg image. I need the link to be to the actual jpg and not something like:
Code: [Select]
displayimage.php?pid=1307&fullsize=1because this is for a lightbox script.

Thanks a lot.
Logged

aliveinindy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 33
    • www.aliveinindy.com
Logged
My Gallery -People, Kids, Nature, Family, and More
www.aliveinindy.com

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Link Thumbnails directly to fullsize image (.jpg)
« Reply #2 on: January 07, 2008, 01:59:32 am »

try this
http://forum.coppermine-gallery.net/index.php?topic=34360.0
Thanks for the help, I've tried that but that provides the solution I mentioned above - creating a link with:
Code: [Select]
displayimage.php?pid=1307&fullsize=1The lightbox script cannot handle this, it refuses to load the image. It requires a link directly to the .jpg file - not a script that loads the file. Is there a way to do this?
Logged

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Link Thumbnails directly to fullsize image (.jpg)
« Reply #3 on: January 11, 2008, 04:42:24 am »

Here's an update, I've tried several variations of this code in theme.php (subsilver btw):
old code:
Code: [Select]
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid={$thumb['pid']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width={$thumb['pwidth']},height={$thumb['pheight']}')",

new code:
Code: [Select]
$picture_url_fullsize = get_pic_url($picture, 'fullsize');
                $params = array('{CELL_WIDTH}' => $cell_width,
                    '{LINK_TGT}' => $picture_url_fullsize['$picture'],
It seems that this code works in other files, however when I use it here, it just shows no url in coppermine except for the base url to the gallery. Why doesn't this code actually generate the full url, do I have it placed in an incorrect spot?
Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.