Getting the absolute filename? Getting the absolute filename?
 

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

Main Menu

Getting the absolute filename?

Started by NigelH, October 30, 2003, 03:06:08 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

NigelH

I would like to be able to list the absolute filename in the details when a user views image details.  As standard it shows the url which is effectively a call through the script, I need the absolute address to be shown i.e.

http://www.xxx.co.uk/coppermine/filename.jpg

Is that possible and how?

Many thanks.

PS Just discovered Coppermine and it's incredible!  Well, written and very well presented, I almost feel guilty using it for nothing!

Joachim Müller

edit displayimage.php and look for    // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
Replace it with    // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a><br /> '.$CONFIG["ecards_more_pic_target"].$path_to_pic;

In the same way, you can make it clickable, but what's the point of having the naked pic instead of the full url to the html with the embedded pic?

GauGau