forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: aisle8com on December 30, 2003, 04:45:20 am

Title: HOW TO: The right URL for the filename....
Post by: aisle8com on December 30, 2003, 04:45:20 am
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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Faisle8.com%2Fimages%2Fpicinfo.jpg&hash=8a03a7346030394848b95a49c8748939fc538ac3)

http://aisle8.com/gallery
Title: HOW TO: The right URL for the filename....
Post by: Joachim Müller on December 30, 2003, 08:32:07 am
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
Title: HOW TO: The right URL for the filename....
Post by: aisle8com on December 31, 2003, 12:05:06 am
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!
Title: HOW TO: The right URL for the filename....
Post by: Joachim Müller on December 31, 2003, 10:42:57 am
[not tested]:
edit displayimage.php and look for
Code: [Select]
   $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
Code: [Select]
   $info['URL'].= '<br /><a href="' . $path_to_pic . '">' . $path_to_pic . '</a>';[/not tested]

GauGau
Title: HOW TO: The right URL for the filename....
Post by: aisle8com on December 31, 2003, 01:12:23 pm
Thank you!!! It worked...
Title: HOW TO: The right URL for the filename....
Post by: MaThIbUs on December 31, 2003, 02:03:49 pm
Or if you want to use the images on a forum, you could use the bbCode mod (http://forum.coppermine-gallery.net/index.php?topic=431)...

/m_aTh!bUs