URL Displayed Incorrectly URL Displayed Incorrectly
 

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

URL Displayed Incorrectly

Started by equi, December 09, 2004, 03:33:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

equi

Might be my ignorance but within the image view the url link in file information does not work

eg For image x the file info. url reads      "gallery/displayimage.php?pos=-152", this doesnt seem to link to anything

correct url link to image is -- displayimage.php?album=topn&cat=0&pos=57 as can be seen in the browser Address window

BTW is there any way of displaying just the domain../gallery  without the whole url in the browser address and display

the '/displayimage.....' bit in the URL section of image info (ie."gallery/displayimage.php?pos=-152" )

Any help appreciated


Thanx

Joachim Müller

that's not correct: the url http://yourdomain.tld/your_coppermine_folder/displayimage.php?album=topn&cat=0&pos=57 points to the most viewed meta album, it will be linking to the pic that ranks on place 58 of your most viewed list (the count starts from 0). As the order of this list might change, the path to the pic is relative; it will link to file A at one moment and to file B in another. The url http://yourdomain.tld/your_coppermine_folder/displayimage.php?pos=-152 on the other hand is an absolute url, it will never change and always point to the same file (the one with the picture id 152). That's why the field "URL" in the pic info section contains the absolute URL (this is actually a feature that was introduced in cpg1.2.1 afaik - older versions didn't come with it).

Joachim

equi

Thanx, now i understand the difference

The bit i cant get to work then is to only display domain/gallery in browser bar not whole url

and to get url info for images to be prefixed with /gallery so clicking on the url does not come up page not found


Thanx

Casper

make sure you have set your url correctly in config.  The ' Target address for the 'See more pictures' link in e-cards' is more important than it sounds.  It must be your full url, such as http://www.your_site.com/gallery/ ending in the trailing slash.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

equi

where is 'See more pictures' located
however will that provide only domainname/gallery to be displayed in browsers address window and in file infomation URL: display path but with /gallery in front of it


Thanx

Casper

It's in your config admin page, using the link in your admin menu.

You MUST set this correctly for coppermine to work correctly.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

equi

Thanx very much, as I had ecards option disabled i did not bother to fill that part in,  thats solved issue 1

Lastly how can i set browsers url link to read domainname/gallery  rather than display whole url

/thanx again

Joachim Müller

urm, what? Do you want to hide the full url from the browser's address bar? If yes, you could put coppermine into a frame, where the parent frame definition defines one frame with the width or height of 0 pixels and the other frame filling the rest of the screen, or you could use an iframe. Both methods are not recommended, most users prefer to actually see the url. There's little point in hiding it imo.

Joachim