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: [Solved]: Picture url logic  (Read 3877 times)

0 Members and 1 Guest are viewing this topic.

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
[Solved]: Picture url logic
« on: August 15, 2004, 10:40:07 am »

Hello,

I need to learn more about how the picture url is generated and maintained because I sometimes refer to pictures within my website with that url (for instance when I describe a trip I made).

What I do is locate the picture, open it and copy/paste its url as a hyperlink on my website (e.g. http://www.dophan.com/photos/displayimage.php?album=24&pos=10). Recently however, I noticed while browsing on the site that some picture url links were pointing to a wrong picture.

After thinking, I remember having either resorted the pictures in the album (by name or date) or even adding pictures to the album.

Can you please confirm how to avoid this problem in the future / describe how urls are generated and maintained by Coppermine, so that I can avoid having to check all my links every time I change sort option or upload new pictures.

Thanks

Regards
« Last Edit: August 16, 2004, 07:42:11 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Picture url logic
« Reply #1 on: August 15, 2004, 11:30:43 am »

expand the pic info section and check the url at the very bottom of the page - this is the absolute url of a pic, looking like this: http://coppermine.sourceforge.net/demo/displayimage.php?pos=-2
The stuff you have is a relative position and is determined by the sorting order the user has chosen - don't post links like http://coppermine.sourceforge.net/demo/displayimage.php?album=1&pos=0 (although they both relate to the same pic if you haven't changed the custom sort order.

GauGau
Logged

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
Re: Picture url logic
« Reply #2 on: August 15, 2004, 12:28:23 pm »

Thanks for the hint. Does it mean that if I use the absolute url of a picture (with a displayimage.php?pos=-x), it will stay unchanged even if I add or delete photos or albums or change sort order as long as the picture stays in the database?

Regards

Son
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Picture url logic
« Reply #3 on: August 15, 2004, 12:49:38 pm »

yes, the absolute url will link to the pic as long as it stays in the coppermine database, no matter into what album you move it to.

GauGau
Logged

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
Re: Picture url logic
« Reply #4 on: August 15, 2004, 03:56:47 pm »

Thanks, does this hold also if I delete pictures or add some to albums?

Regards
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Picture url logic
« Reply #5 on: August 15, 2004, 04:14:34 pm »

Yes.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
Re: Picture url logic
« Reply #6 on: August 15, 2004, 04:29:10 pm »

Thanks for your patience.

have a nice day.

Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.