Member
Member
sbillard   2007-12-07, 18:24
#1

I have done some experimentation in responding to a post here on the forum. Thought I'd share the findings with everyone.

You can use zenphoto functions on any of your WEB pages so long as you successfully inclucde template-functions.php in your page. To do so, include the following PHP. This assumes that your zenphoto installation is in a folder named zenphoto.

``

Member
Member
jayteegee   2007-12-19, 00:31
#2

I have tried this but I'm getting an error message stating that zenphoto cannot connect to the database. My zenphoto install works perfectly otherwise. Any thoughts?

Member
Member
sbillard   2007-12-19, 01:15
#3

here is the full source of an index.php that works. It displays a random image.

`

Test Index

Member
Member
michaelsam   2009-02-02, 16:30
#4

how to use that with two different galleries ? i want to show on one page a link to two different galleries with random thumb_img - is that possible ?

Member
Member
sbillard   2009-02-02, 18:24
#5

That has never been tried. And it probably cannot be made to work since the environment setup needs to be done before headers are sent and you would have to set up two different environments.

Member
Member
michaelsam   2009-02-02, 23:08
#6

$randomImage->getSizedImage(getOption('image_size')) .

how do i get instead of image_size the crop_image_sized thumbnails ?
thumb_size i tried but it's not working like in the gallery

can u please help me.

Administrator
Administrator
acrylian   2009-02-03, 10:19
#7

You need to use this: http://www.zenphoto.org/documentation/classes/Image.html#methodgetCustomImage

Member
Member
michaelsam   2009-02-03, 15:12
#8

thx for your help, but i don't get it working, i'm not used to php that much.
so i tried a view things but always i got errors or the image was in original size.

where i have it to fill in ?
i think i'm not right when i think in this section instead of image_size, cause that didn't work correktly.

echo "';

can you please post the whole code for me?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.