forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: shadowone on November 10, 2005, 09:26:01 pm

Title: How can I do this?
Post 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
Title: Re: How can I do this?
Post by: Nibbler 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>';
Title: Re: How can I do this?
Post by: shadowone on November 11, 2005, 10:30:56 pm
It works. Thank you.