Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How can I do this?  (Read 3477 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.