I don't believe this was posted before.  I am trying to use the "random" gallery link
<?
@readfile('http://www.planetnet.org/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage');
?>
On my site.  But when the user clicks on the image it brings you to the "NON" embeded gallery2 site.  Is there an option I can send this to link it to the embeded gallery site?
 
  
Posts: 32509
you'll have to use GalleryEmbed::getImageBlock for what you want.