ZenphotoCMS Forum
.printImageData not working - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: .printImageData not working (/thread-2240.html)



.printImageData not working - viorel - 2008-02-17

OK so i have the latest zenPHOTO 1.1.4 gallery and the default theme when I try to put in the template/default/image.php keep getting error about "Missing argument 1 for printImageData()" and "Missing argument 2 for printImageData()" what is the problem for what I see the template-functions.php is ok for getimageData() please help guys because I need that data displayed on every image.
Thanks




.printImageData not working - sbillard - 2008-02-17

You really need to read the documentation on the functions. http://www.zenphoto.org/documentation/

`printImageData [line 1328]

A composit for printing image data

Parameters:

string $field: which data you want

string $label: the html label for the paragraph

void printImageData( string $field, string $label )`

You got an error because you did not provide parameters to the function.




.printImageData not working - viorel - 2008-02-17

ok with it gives me something but i still get that error please give me an example thanks




.printImageData not working - viorel - 2008-02-17

ok solved after some reading for people that are making themes and want that data displayed for every image use this in your template image.php or and everything work thanks again sbillard for the documentation link. Hope is usefull for everyone.