ZenphotoCMS Forum
error using custom function printCustomAlbumThumbImage - 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: error using custom function printCustomAlbumThumbImage (/thread-2788.html)



error using custom function printCustomAlbumThumbImage - eddiejanzer - 2008-05-01

Everything works great on my local server. I get an error on the remote server Warning: Missing argument 2 for printCustomAlbumThumbImage(), called in /home2/antiquf5/public_html/themes/default/album.php on line 28 and defined in /home2/antiquf5/public_html/zp-core/template-functions.php on line 986 on my remote. Using most recent nightly build. Did a clean install, everything works fine. When I use this function printCustomAlbumThumbImage($alt, $size, $width=240, $height=NULL, $cropw=NULL, $croph=NULL, $cropx=NULL, $cropy=null, $class=NULL, $id=NULL) in the template-functions, and then add this `

                " title=" ">

` to the album template, I get the error above. Like I said, this works great on my local setup. I use subalbums. The gallery thumbs are small, the subalbums are larger, just like I want.
Any Ideas? Thanks in advance




error using custom function printCustomAlbumThumbImage - acrylian - 2008-05-01

You have to set some argument at least for size. Otherwise the function does not know what to do, since this is a replacement for the "normal" album thumb and its size.




error using custom function printCustomAlbumThumbImage - eddiejanzer - 2008-05-01

in the album template or in template funtions? Could you give me an example?




error using custom function printCustomAlbumThumbImage - acrylian - 2008-05-01

In the album.php theme page of course, you never have to add anything to template-functions.php.
http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functionprintCustomAlbumThumbImage




error using custom function printCustomAlbumThumbImage - eddiejanzer - 2008-05-01

I got it, thanks. Strange that it worked on local server with the template-functions edit, but not on my remote server.




error using custom function printCustomAlbumThumbImage - eddiejanzer - 2008-05-01

'``' how would I just set this for "height"




error using custom function printCustomAlbumThumbImage - trisweb - 2008-05-01

If you just want to set the height, just use the 4th argument.

'``'




error using custom function printCustomAlbumThumbImage - eddiejanzer - 2008-05-01

thanks, and I'm learning too!