Changing picture links Changing picture links
 

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

Changing picture links

Started by Peter R, May 02, 2009, 11:10:43 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Peter R

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

Joachim Müller

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.

Peter R

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?

Joachim Müller

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.