elkiwi
Sep 30th 2005, 11:16 pm
Can anyone help me? I'm trying to embed Gallery2 into a simple php page. I don't need any logins or session data, I just want to display the gallery in an existing page.
I've read the embedd instuctions but they seem to relate only to cms systems.
<?php
require_once(dirname(__FILE__) . '/gallery2/embed.php');
$ret = GalleryEmbed::init(array(
'embedUri' => 'people.php', embedPath => '/', 'relativeG2Path' => 'gallery2/',
'loginRedirect' => 'people.php', 'activeUserId' => ''));
GalleryEmbed::init();
$params = array( 'blocks' => 'randomImage',
'show' => 'date|views|fullSize' );
$content = GalleryEmbed::getImageBlock($params);
if ($content) print_r($content);
GalleryEmbed::done();
?>
That just produces errors (http://www.whatsup-ibiza.com/people.php)
The gallery is here (http://www.whatsup-ibiza.com/gallery2/)
If anyone can help I'd be very greatful.
I've read the embedd instuctions but they seem to relate only to cms systems.
<?php
require_once(dirname(__FILE__) . '/gallery2/embed.php');
$ret = GalleryEmbed::init(array(
'embedUri' => 'people.php', embedPath => '/', 'relativeG2Path' => 'gallery2/',
'loginRedirect' => 'people.php', 'activeUserId' => ''));
GalleryEmbed::init();
$params = array( 'blocks' => 'randomImage',
'show' => 'date|views|fullSize' );
$content = GalleryEmbed::getImageBlock($params);
if ($content) print_r($content);
GalleryEmbed::done();
?>
That just produces errors (http://www.whatsup-ibiza.com/people.php)
The gallery is here (http://www.whatsup-ibiza.com/gallery2/)
If anyone can help I'd be very greatful.