Picture's absolute link Picture's absolute link
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Picture's absolute link

Started by Farina, July 23, 2006, 11:21:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Farina

Hi folks,

I have a question. In the displayimage panel is possible to have the absolute link where can I find the picture? For example http://www.mysite/albums/userpics/namepic.jpg. For me is important because sometime the users want show the pics in some forum, if possible to do this the users can copy the links and so to paste in the forum.

thanks

Joachim Müller

There are several mods that enable you to do what you want - search the mods board for "bbcode".

Farina

Quote from: GauGau on July 23, 2006, 11:40:18 AM
There are several mods that enable you to do what you want - search the mods board for "bbcode".

Thank you GauGau.
Sorry but my english language is not better  ;D and maybe this question is not very clear.
My gallery's users would like to have a field where to read the absolute path where the picture is storage.
In the other forum they will use the tags (http://) for to show the picure that is in coppermine server.
And so is useful to have a text field where the user can copy the path for paste in the forum message.

Thanks and very thanks for other my problem:
(http://forum.coppermine-gallery.net/index.php?topic=34154.0)

Farina

Solved!

I replay the line 170 of displayimage.php of 1.4 version.

Original version: $info[$lang_picinfo['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>';

My version:
    $info[$lang_picinfo['URL']] = $CONFIG["ecards_more_pic_target"] . $path_to_pic;

Now I have this result:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.impressionistabili.it%2Fpublic%2Ffix%2Fpic001xCoppermine.JPG&hash=4461971540b77181e0610f211e94034658f613d2)

Now my gallery users will can copy and paste the absolute link of their pics.

Enjoy  ;D

matthewmccoy


I tried your code but it didn't work for me:

Original version: $info[$lang_picinfo['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>';

My version:
    $info[$lang_picinfo['URL']] = $CONFIG["ecards_more_pic_target"] . $path_to_pic;


Does your code completely replace the original or just part of it?

Please advise if anyone can help.

Stramm

As Joachim already suggested... have a look in the plugins forum and there especially at the bbcode plugin. It generates the links to the fullsized pics and is easy to modify and fit your needs.

Joachim Müller