Integrating G2 random image into Joomla homepage

D4CUE

Joined: 2005-05-30
Posts: 3
Posted: Sat, 2006-12-23 16:02

Hi all,
I'm trying to show a random thumbnail image in the right hand side of my homepage and have come unstuck doing so.
I've read the site admin >> image block info and have tried inserting <?php @readfile('http://www.northeast8ball.co.uk/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?> into my /index.php file at the root of my site. I did get a random thumb image on my homepage but in the wrong place.(I tried moving this code around the php file but couldnt find the right place to make the pic show up on the right blocks).
I then viewed the selection source of the html and copied it into a fresh module to show it on the right hand side of my homepage which worked but the images are not random, instead I have the same image all the time because the html I copied was a snapshot in time and hence not generating the random pic.
Ive read FAQ's and searched but cant find specific guidance to help.
I've tried my best to get this right but run out of ideas.
I'm new to Joomla and G2 and know very little about PHP and CSS coding so if you have a solution/ instructions can you try not to assume that I have a brain.
Help appreciated.

 
Xaneth

Joined: 2006-12-26
Posts: 20
Posted: Tue, 2006-12-26 05:51

Read up on how to embed G2 into Joomla here:

http://www.gallery-addons.com/Gallery-Addons/Component/Embedding_Gallery2/

Specifically, you'll want these modules installed on Joomla to add the random image module that you want, then you can put it wherever you like. Get the modules at:

http://developer.joomla.org/sf/frs/do/listReleases/projects.gallery2_bridge/frs.modules;jsessionid=20563A4709C200CA5CF185BFA80C993D

 
triangular

Joined: 2005-12-21
Posts: 138
Posted: Sun, 2007-02-18 21:14

The guide you refer to about how to embed G2 into Joomla does not match with the current versions of the modules listed in your other link.

I am having a problem as well. I dont know eveything about php but I am not new with G2 or Joomla. I dont see any clear instructions to get this image block module working in Joomla. Before, I had a prior version of the joomla/g2 image block and it never worked because although it did show an image properly in joomla, clicking the image always went to a bad url. Basically it did not include the gallery part of the subdomain, and just attached the image path to the joomla home dir. Now Ive installed the most recent joomla image block module and it just sits there with no image in it. I have looked in the image block admin section of g2 and I see examples of what can be pasted into the index.php of joomla (i guess thats the page being referred to), but these examples are for what? Im not sure. And Im not sure where to place them either. Does it matter? Which example should be used? Im not great with php but Im a lot better with instructions.