forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Shpangle on January 18, 2010, 09:16:50 am

Title: [Solved]: How to fix photo positions within an album ?
Post by: Shpangle 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
Title: Re: How to fix photo positions within an album ?
Post by: Joachim Müller 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.
Title: Re: How to fix photo positions within an album ?
Post by: Shpangle 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