Embed into existing page
| elkiwi 
      Joined: 2005-04-06 Posts: 1 |  Posted: Wed, 2005-04-06 18:16 | 
| Hi I realise this is a much disscussed topic and I have read instructions. I have this code on an existing page inside a table. 
<?php 
require_once(dirname(__FILE__) . '/gallery/embed.php');
  $ret = GalleryEmbed::init(array(
           'embedUri' => 'people.php', 'relativeG2Path' => 'gallery', 'loginRedirect' => 'gallery/main.php',
           'activeUserId' => ''));
  if ($ret->isError()) {
    $ret->getAsHtml() 
    exit;
  }
  $g2data = GalleryEmbed::handleRequest();
  if ($g2data['isDone']) {
    exit; // G2 has already sent output (redirect or binary data)
  }
?>
The page produces no errors but also no gallery. http://www.kiwi-designed.com/whatsup/people.php Am I doing something wrong? Thanks Peter | |



 
 
 
 
 
 
 
Posts: 32509
i.e.
add
print $g2data['bodyHtml'];
to your script.