joomla - External Image Block
Guy007
Joined: 2005-10-20
Posts: 9 |
Posted: Sat, 2006-01-28 14:55 |
I am creating a site using Joomla and G2, and the following is my setup: I want to be able to display a random image from the gallery on the index.php page. So i included the following line in the php code: <?php @readfile('http://mysite.org/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none'); ?> The random image is now appearing, but when I click on the random image, i am taken to the standalone G2 page, instead of displaying it in a wrapper on index.php. is there a way how i can change the url to which the random image links? thanks |
|
Posts: 32509
topic moved and renamed.
don't use the external imageblock. if the joomla integration has an imageblock, use that.
else, manually use GalleryEmbed::getImageblock(.....);
http://codex.gallery2.org/index.php/Gallery2:GalleryEmbed:getImageBlock
Posts: 9
Sorry, but I'm still new to this stuff!
I placed this code in my index.php. The random image gets displayed, but the problem still remains. But when i click on the image, it still links to the standalone G2 album...
Joomla's random image block can only extract images from one particular folder (not sub folders), so its not good for what i want it...
Posts: 224
You dont need any code for this to work have you installed the right random image block from http://opensource.4theweb.nl/
Heres a direct link to the module that you need to use
http://developer.joomla.org/sf/frs/do/viewRelease/projects.gallery2_bridge/frs.modules.image_module;jsessionid=94626708F1415DE20F0CD493EB9A0100