.printImageData not working

OK so i have the latest zenPHOTO 1.1.4 gallery and the default theme when I try to put <?php printImageData(); ?> 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

Comments

  • 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.
  • ok with <?php printImageData(city); ?> it gives me something but i still get that error :( please give me an example thanks
  • 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 <?php printImageData(location, Location)?> or <?php printImageData(city, City)?> and everything work thanks again sbillard for the documentation link. Hope is usefull for everyone.
Sign In or Register to comment.