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: How can I do this?  (Read 3553 times)

0 Members and 1 Guest are viewing this topic.

shadowone

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
How can I do this?
« on: November 10, 2005, 09:26:01 pm »

is there a way to put the exact filename instead of the url in the filename information?

Filename: Revo-wheelie_a.jpg
Album name: shadowone / Test Gallery
Rating (1 votes): 
File Size: 51 KB
Dimensions: 640 x 391 pixels
Displayed: 8 times
URL: http://radiocontrolimages.com/displayimage.php?pos=-3 <-- I want this to be the exact filename
Favorites: Add to Favorites
« Last Edit: November 11, 2005, 10:33:59 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: How can I do this?
« Reply #1 on: November 10, 2005, 11:13:09 pm »

displayimage.php, find

Code: [Select]
// Create the absolute URL for display in info
    $info['URL'] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';

Change to this:

Code: [Select]
// Create the absolute URL for display in info
    $info['URL'] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .$CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'] . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'] . '</a>';
Logged

shadowone

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How can I do this?
« Reply #2 on: November 11, 2005, 10:30:56 pm »

It works. Thank you.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.