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: Why bother with relative position in URL?  (Read 4245 times)

0 Members and 1 Guest are viewing this topic.

pnear

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 35
    • http://www.thenears.com
Why bother with relative position in URL?
« on: March 30, 2005, 03:33:03 am »

I've always found it annoying that coppermine uses a relative position in the URL when navigating from album to intermediate image.  Clearly there is a permanent URL for the intermediate page, as it is referenced in the picture details.

There may be a reason for using relative positions that I'm unaware of, but here's my argument as to why we should ditch it in favour of a permanent id.

1. When a user copies a URL for passing along to a friend (where user=me) it is easiest and most intuitive to copy the URL in the address bar.
2. When a user is browsing during an upload or change to the album, they will not arrive at the image they expect since the pointer is now leading them to a different image than the thumbnail they clicked on.

Curious to know if there's a good reason for the relative position (I assume there is) and wonder what it would take to make the URLs more of a permanent link.

Pete
« Last Edit: March 30, 2005, 09:22:27 am by GauGau »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Why bother with relative position in URL?
« Reply #1 on: March 30, 2005, 03:49:59 am »

Using the pid instead of relative position would also fix the meta_albums that spontaneously change like when viewing the "last viewed" meta album.

when a user is viewing that meta album, clicks on a thumb, then hits back, clicks on a different thumb, the intermediate image now links to  a different picture, because of the fact that they viewed a picture and changed the underlying order without respect to the cached thumbnails page.

If the page had been generated with pids, it would have been avoided, and the page wont reflect new activity until it's refreshed. I think that just makes more sense.

But I don't know the underlying reasons for the relative positioning either.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Why bother with relative position in URL?
« Reply #2 on: March 30, 2005, 07:12:07 am »

Relative positions are currently saving running some extra queries on displayimage.php, and supports the twisted idea that the meta-albums position should always be correct.

BUT pid is infact being used to show the picture when the user goes from thumbnails.php to displayimage.php

The permanent link is the URL which is shown in the picture info - that has just the pid
Logged
SANIsoft PHP applications for E Biz

omniscientdeveloper

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 901
Re: Why bother with relative position in URL?
« Reply #3 on: March 30, 2005, 07:22:14 am »

I think the point they're trying to say is that the pictures can be ordered by the relative id, while the url shows the permanent id.


On a side note, I think there are already a few threads on this topic floating around. Maybe this one is redundant.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Why bother with relative position in URL?
« Reply #4 on: March 30, 2005, 07:29:55 am »

I think the point they're trying to say is that the pictures can be ordered by the relative id, while the url shows the permanent id.
I understood - what I am trying to say is if you do not pass the relative position to displayimage.php then the code will have to jump through some more hoops to get the next and previous links specially in cases of metalbums.

Logged
SANIsoft PHP applications for E Biz

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Why bother with relative position in URL?
« Reply #5 on: March 30, 2005, 09:22:05 am »

this is not exactly a bug, but a matter of taste or a feature request, so I'm marking this thread as invalid.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.