coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Farina on July 23, 2006, 11:21:20 AM

Title: Picture's absolute link
Post by: Farina on July 23, 2006, 11:21:20 AM
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
Title: Re: Picture's absolute link
Post by: Joachim Müller 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".
Title: Re: Picture's absolute link
Post by: Farina on July 23, 2006, 12:24:31 PM
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 (http://forum.coppermine-gallery.net/index.php?topic=34154.0))
Title: Re: Picture's absolute link
Post by: Farina on July 23, 2006, 02:31:36 PM
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
Title: Re: Picture's absolute link
Post by: matthewmccoy on April 25, 2009, 03:10:33 AM

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.
Title: Re: Picture's absolute link
Post by: Stramm on April 25, 2009, 09:13:03 AM
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.
Title: Re: Picture's absolute link
Post by: Joachim Müller on April 25, 2009, 07:27:12 PM
Locking...