Please help

jjreina

Joined: 2010-03-08
Posts: 22
Posted: Wed, 2010-03-10 11:46

How can I show a photo of an album by code? i have try this:
<?php
require_once("../gallery2/embed.php");
$inicio = array('g2Uri' => 'http://192.168.1.24/gallery2/');
$ret = GalleryEmbed::init($inicio);
//$ret = GalleryInitFirstPass();
if ($ret)
{
print 'GalleryEmbed::init fall&oacute;, este es el error: ' . $ret->getAsHtml();
exit;
}
$opciones = array('blocks' => 'specificItem', 'itemId' => 45 , 'show' =>
'title');
$resultado = GalleryEmbed::getImageBlock($opciones);
print $resultado[2];
?>

but displays a blank page. please help me

Very Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-03-10 11:57
 
jjreina

Joined: 2010-03-08
Posts: 22
Posted: Thu, 2010-03-11 12:34

ok, very thx