Member
Member
eddiejanzer   2008-05-01, 05:07
#1
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 `

<a>" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printCustomAlbumThumbImage(getAlbumTitle()); ?></a>

` 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
Administrator
Administrator
acrylian   2008-05-01, 07:46
#2
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.
Member
Member
eddiejanzer   2008-05-01, 14:41
#3
in the album template or in template funtions? Could you give me an example?
Administrator
Administrator
acrylian   2008-05-01, 14:54
#4
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
Member
Member
eddiejanzer   2008-05-01, 15:24
#5
I got it, thanks. Strange that it worked on local server with the template-functions edit, but not on my remote server.
Member
Member
eddiejanzer   2008-05-01, 15:37
#6
'`<?php printCustomAlbumThumbImage(getAlbumTitle(), null, $ls?240:null, $ls?null:240); ?>`' how would I just set this for "height"
Developer
Developer
trisweb   2008-05-01, 18:27
#7
If you just want to set the height, just use the 4th argument.

'`<?php printCustomAlbumThumbImage(getAlbumTitle(), null, null, 240); ?>`'
Member
Member
eddiejanzer   2008-05-01, 19:16
#8
thanks, and I'm learning too!
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.