HOW TO: The right URL for the filename.... HOW TO: The right URL for the 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

HOW TO: The right URL for the filename....

Started by aisle8com, December 30, 2003, 04:45:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aisle8com

I want to know if there is a way to change the URL: to the correct filename of the picture in the picture information. Let me know if you know how. Thanks!!

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Faisle8.com%2Fimages%2Fpicinfo.jpg&hash=8a03a7346030394848b95a49c8748939fc538ac3)

http://aisle8.com/gallery

Joachim Müller

I don't get the point....
If the filename of the jpg were in the url, there would be a link to the pic itself, not to the html "around" it.

GauGau

aisle8com

Quote from: "gaugau"I don't get the point....
If the filename of the jpg were in the url, there would be a link to the pic itself, not to the html "around" it.

GauGau

Right...that is what I am wanting...People using my board post their images on ebay or another site...My Image gallery is mainly used for storage space for people that do not have a website...Help me if you can...Thanks!

Joachim Müller

[not tested]:
edit displayimage.php and look for    $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>';Add after it    $info['URL'].= '<br /><a href="' . $path_to_pic . '">' . $path_to_pic . '</a>';[/not tested]

GauGau

aisle8com


MaThIbUs

Or if you want to use the images on a forum, you could use the bbCode mod...

/m_aTh!bUs