[Solved]: How to fix photo positions within an album ? [Solved]: How to fix photo positions within an album ?
 

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]

Main Menu

[Solved]: How to fix photo positions within an album ?

Started by Shpangle, January 18, 2010, 09:16:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shpangle

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

Joachim Müller

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.

Shpangle

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

Thanks again.
Mick