Member
Member
ClicClac   13-06-2008, 06:31
#1

Some functions (getHeight(), getFullIlage()...) give me a php error.
It seems the problems is with all functions from file class-image.php,

Any idea ?

zp nightly 1694, 1717

Administrator
Administrator
acrylian   13-06-2008, 11:57
#2

When do you get that error? Meaning what do you do when this appears? Do you use a standard theme?

Member
Member
ClicClac   13-06-2008, 13:49
#3

I'm using a personnal theme based from Cimi and Default.

I just just put a echo getFullImage(); (for testing) in my template because I need the real path of the picture.
Doing the same with Default theme -> same error

Try with get FileName(), getAlbumName... -> same error

Member
Member
ClicClac   13-06-2008, 13:53
#4

test page

Administrator
Administrator
acrylian   13-06-2008, 14:27
#5

Seems you have a typo in your theme's image.php, there is no function getFullImage()but getFullImageURL().

Member
Member
ClicClac   13-06-2008, 14:48
#6

Both seems exist

http://www.zenphoto.org/documentation/elementindex.html#g

getFullImage
in file class-image.php, method Image::getFullImage()
Returns a path to the original image in the original folder.
getFullImageURL
in file template-functions.php, function getFullImageURL()
Returns the url to original image.

Administrator
Administrator
acrylian   13-06-2008, 14:55
#7

True, but getFullImage() is a class object method that you can't use directly, it needs to be use like $_zp_current_image->getFullImage() for example, otherwise you get an error. getFullImageURL() is the template equivalent.

Member
Member
ClicClac   13-06-2008, 20:36
#8

Thanks acrylian!
But it's too difficult for me.

Administrator
Administrator
acrylian   14-06-2008, 09:16
#9

What exactly is too difficult? Looking in the source code and replacing getFullImage()with the correct getFullImageURL() should be doable I think.

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