Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Picture's absolute link  (Read 4128 times)

0 Members and 1 Guest are viewing this topic.

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Picture's absolute link
« 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
« Last Edit: July 23, 2006, 02:34:38 pm by Abbas Ali »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Picture's absolute link
« Reply #1 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".
Logged

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Picture's absolute link
« Reply #2 on: July 23, 2006, 12:24:31 pm »

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)
 
Logged

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Picture's absolute link
« Reply #3 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://forum.coppermine-gallery.net/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
Logged

matthewmccoy

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Picture's absolute link
« Reply #4 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Picture's absolute link
« Reply #5 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.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Picture's absolute link
« Reply #6 on: April 25, 2009, 07:27:12 pm »

Locking...
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.