How can I do this? How can I do this?
 

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]

Main Menu

How can I do this?

Started by shadowone, November 10, 2005, 09:26:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shadowone

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

Nibbler

displayimage.php, find

// 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:

// 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>';

shadowone