Member
Member
levista   2008-01-25, 13:16
#1

I am playing around & modifying my zenphoto install. I am trying to find a way to get the full complete url to the images as seen in my ftp program but can't manage it.

I tried as I saw it is used on the image.php to click through to the image alone but no success at all.

To give you an idea of what I am trying to do, I am passing the image to another php page to modify it, my current code attempt is;

`

[code]

modify

[/code]

`

Member
Member
levista   2008-01-25, 16:09
#2

just to clarify further, rather than this ;

`

"/gallery/zp-core/i.php?a=videogames%2Fgod+of+war&i=god+of+war.jpg&s=120"

`

i want this

`

http://www.mysite.com/gallery/videogames/godofwar/godofwar.jpg

`

Member
Member
jlang   2008-01-25, 16:33
#3

echo getMainSiteURL()."/".getFullImageURL() will return the image as seen from the browser, as something like http://www.website.com/gallery/albums/videogames/godofwar/godofwar.jpg

Depending on your host's configuration where your website is basically mapped from a directory on another computer, your ftp program would probably look at a file location something like:
/local/home/username/www.website.com/gallery/videogames/godofwar/godofwar.jpg and I don't know how to get that one out. In fact for security it may make more sense to prevent it getting out!

Member
Member
junko   2011-07-25, 15:59
#4

Hi guys,

I want something similar to this.

On album.php:

I have a list of thumbnails of the images, clicking one image opens it in a Colorbox lightbox, but for that to work, you need a path to the .jpg/.png, rather than a [...]/zenphoto/pre-wedding/img_0003.jpg.php

Thanks

Member
Member
sbillard   2011-07-25, 16:57
#5

There is a function to get that url. Please look in the functions guide.

Member
Member
Simounet   2011-07-26, 09:56
#6

Hi,

I also get a problem with the last version of ZP. Even if I unprotected from hotlinking, I can't get the clean URL with getFullImageURL(). Where am I wrong ?

Regards.

Administrator
Administrator
acrylian   2011-07-26, 10:07
#7

Example please... Make sure you don't have the html cache enabled.

Member
Member
Simounet   2011-07-26, 10:12
#8

Code:
``

Result:
...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.