Random block embeded

arnoadam

Joined: 2004-09-29
Posts: 32
Posted: Tue, 2005-04-19 09:33

Hey!
A quick question about the random image block. If I add this code to my front page the link goes to the stand-alone gallery instead of the embeded gallery.

<?php @readfile('http://www.mysite.com/gallery2/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=notitle'); ?>

Is there a way to make the link go to the embeded gallery?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-04-19 10:40

AFAIK no.
For embedded G2, we have the embedded image block...
GalleryEmbed::init(array('embedPath' => ..., 'embedUri' => ...,... ));
GalleryEmbed::getImageBlock
GalleryEmbed::done();

or something like that. see embed.php and the xaraya xarblocks/image.php as an example.

 
arnoadam

Joined: 2004-09-29
Posts: 32
Posted: Tue, 2005-04-19 12:06

thnx valiant!
Where do I find the Xaraya xarblocks/image.php file?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2005-04-19 12:12

Follow the Signature Link on his postings :-)

 
arnoadam

Joined: 2004-09-29
Posts: 32
Posted: Tue, 2005-04-19 12:29

to easy :D