strange linking problem... strange linking problem...
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

strange linking problem...

Started by markhaldane, January 12, 2007, 01:56:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

markhaldane

Ok, my coppermine setup is here: http://markhaldane.net/photos/index.php

I have the stable 1.4.10 install, with the chaoticsoul skin (some very slight modifications)

I've noticed a problem; when you go to a photograph through a route that is not something like Category>Album>Picture, the URL for it is wrong. Let me try and elaborate..

If i go into the "daytrips" category, then the "london" album, then select the first photo in the album, the URL to this photo is ".../displayimage.php?album=16&pos=0" this is the correct URL, and if i sent this to someone, they would see the same picture

However, if i go to "search" and type in "katie" go to page 2 and right near the end we see the same photo, now if i click it, the URL for it is ".../displayimage.php?album=search&cat=0&pos=75"

if i was to send this link to someone, the picture they see will be different, and if you go to any picture in any album through "search" you always get this cat=0 part in the URL, so you can never get a correct URL unless you go through the category>album route.

what is going on here? is this something wrong in my install or is it normal? is there a way to fix it so that from a search people can still get the correct URL's for the photos? cause at the moment people are searching, finding a photo they like and want to show it to their friends, but when they send them the URL it goes to a different photo for their friends.

any help appreciated and ofc feel free to try it out on my site so you can see what is happening!

thanks in advance,
- mark

Nibbler

That's normal. If you give out links to people you should use the static link provided in the pic info section (which you have set to be hidden by default). This looks like http://markhaldane.net/photos/displayimage.php?pos=-996 and will always point to the correct picture.

markhaldane

gotcha, thanks very much! i'll make that visible now :)

cheers!
- mark