forum.coppermine-gallery.net
Support => Older/other versions => cpg1.3.x Support => Topic started by: shadowone 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
-
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>';
-
It works. Thank you.