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]: How to fix photo positions within an album ?  (Read 3546 times)

0 Members and 1 Guest are viewing this topic.

Shpangle

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Solved]: How to fix photo positions within an album ?
« on: January 18, 2010, 09:16:50 am »

My apologies if this has been asked before or if it is something obvious...I have tried to find the solution.

My gallery is at revision 1.4.25
My website is http://www.shpangle.co.uk
My website gallery is http://www.shpangle.co.uk/gallery/

Sometimes, when I add a photo to an album within the above gallery, it gets inserted in the middle and therefore shifts all the photo position numbers for the existing photos. This has the effect of any references (e.g. Google) to existing photos becoming invalid for a while.

Is there any way of overcoming this (i.e. by fixing photo positions)?

Thanks
Mick
« Last Edit: January 18, 2010, 11:26:32 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to fix photo positions within an album ?
« Reply #1 on: January 18, 2010, 10:28:54 am »

Positions always will move no matter what - you can't fix that. A position (both in real life as well as the gallery logic) is relative per definition. However, the problem with changing URLs will be taken care of in cpg1.5.x (currently unsupported) by using pid instead of pos.
Meanwhile, you should use the reference by PID in cpg1.4.x as well, as that will not change. To refer to the "Orange jelly sweet necklace" inside the "Candy"-album (http://www.shpangle.co.uk/gallery/thumbnails.php?album=1), you should not refer to http://www.shpangle.co.uk/gallery/displayimage.php?album=1&pos=2, but to http://www.shpangle.co.uk/gallery/displayimage.php?pos=-8 from your pages outside of coppermine instead.
Logged

Shpangle

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How to fix photo positions within an album ?
« Reply #2 on: January 18, 2010, 11:14:52 am »

Many thanks for your extremely useful and prompt response. This has now given me a good understanding of this.

Thanks again.
Mick
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 19 queries.