coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Peter R on May 02, 2009, 11:10:43 AM

Title: Changing picture links
Post by: Peter R on May 02, 2009, 11:10:43 AM
Hello,

I am running CP1.4.19, together with a smf forum. On the forum, people talk about the pictures, and in the topics, they use links to the pictures. The use links that end with:
/displayimage.php?album=indexlist&cat=0&pos=2
/displayimage.php?album=20&pos=1

Because the albums are rebuild every time you click on a link, the picture that will show up is different when new pictures are uploaded to that album. With other words, today the link:
/displayimage.php?album=20&pos=1 will give me picture 500. Tomorrow, when 5 pictures are added to album 20, the link should be: /displayimage.php?album=20&pos=6 to show me the same picture. Not very handy when discussing about pictures.
I found a possible solution. Add &pid=(right number) to the URL, and you will always get the same picture.

I don't have enough experience with CP to now if this is a solid solution, or if there is a better way to solve this. I looked around on the forum, but couldn't find a better one.  And now, my question. Is this the way to go?

Have fun,
Peter
Title: Re: Changing picture links
Post by: Joachim Müller on May 02, 2009, 01:56:08 PM
That's what the link at the top of the pic info section is meant to be used for - it's the permanent URL. Will be taken care of for good in cpg1.5.x. Not sure what your actual question is.
Title: Re: Changing picture links
Post by: Peter R on May 02, 2009, 02:30:10 PM
Quote from: Joachim Müller on May 02, 2009, 01:56:08 PM
That's what the link at the top of the pic info section is meant to be used for
Right, but not everybody is cleaver enough to get this. A lot of artistic people are good in being artistic, but not good in reading manuals. Copying the URL from the URL bar is as far as they get. And it looks like this problem can be solved by adding the pid to the picture link, so it will automatically be added to the url in the url bar.

My question was, will it cause problems that I can not oversee, if I add pid to the picture links?

I know, people should rtfm. But what if some very good artistic people stop visiting, because the site is using software that is to "difficult" for them?
Title: Re: Changing picture links
Post by: Joachim Müller on May 03, 2009, 04:23:05 PM
Quote from: Peter R on May 02, 2009, 02:30:10 PM
And it looks like this problem can be solved by adding the pid to the picture link, so it will automatically be added to the url in the url bar.
Yes, true. That's why I said
Quote from: Joachim Müller on May 02, 2009, 01:56:08 PMWill be taken care of for good in cpg1.5.x.
Not possible for cpg1.4.x though.