ZenphotoCMS Forum
Custom image size for search results - 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: Custom image size for search results (/thread-1706.html)



Custom image size for search results - enes - 2007-10-15

Is it possible to output custom image size, like thumbnails, for search results? And how could I make link that simulates search query, so instead writing "something" I would have click on "something"?




Custom image size for search results - sbillard - 2007-10-16

You would have to modify the search.php file. I would not recommend you doing that just yet, the search function is still evolving. Wait until after the 1.1 release November 1.




Custom image size for search results - enes - 2007-10-16

yes, I know, I'm with it last days :-) and constantly updating local files, kinda learning php, for now everything that I tried works fine, cold you explain please what should I do?
I need just this link/search/thumbnail thing so I can go online. thanx in advance




Custom image size for search results - sbillard - 2007-10-16

there is a template functin printCustomSizedImage that you would use in place of $image->getThumb(). You would have to have:
`global $_zp_current_image;

$_zp_current_image = $image;

printCustomSizedImage($alt, $size, $width, $height, $cropw, $croph, $cropx, $cropy, $class, $id);`
to print the image.




Custom image size for search results - enes - 2007-10-16

ok thanx I'll try




Custom image size for search results - jules11 - 2008-02-18

could anyone tell me how to include the customsizing imagefunction properly.
that doesn't work..

" title="">




Custom image size for search results - sbillard - 2008-02-18

This is a snippet from stopdesign:

``

Perhaps yours did not work because the alt parameter was NULL.