How to Display Recent Images in Joomla 1.5.11

gmccanna

Joined: 2009-07-28
Posts: 3
Posted: Tue, 2009-07-28 22:15

I have Gallery 2.3 installed on my webhost server and it’s working fine.
I am also working on my Joomla 1.5.11 site.
Both Gallery and Joomla are installed in the /public_html directory of the webhost’s server.
What I am trying to accomplish is display a few recent Gallery images on my Joomla site. Through extensive reading, I figured out that I needed to install the G2 Bridge into Joomla and I finally see my recent images on my site within a Component. I am not satisfied with this solution. Ideally, I would like to see the recent images displayed within an Article because of the flexibility of where you can display and customize an Article.

Is there a way to display recent images from Gallery inside an Article?

Also, on my Gallery page, I stumbled across this External Imageblock PHP code:
<?php readfile('http://www.yoursite.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

Where is this code to be used? Can I use this code to display images in an Article?

Any help would be greatly appreciated.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-07-29 00:08
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-07-29 00:16
 
gmccanna

Joined: 2009-07-28
Posts: 3
Posted: Wed, 2009-07-29 01:34

Thank you for such quick replies and good links.
I actually uploaded mediaBlock this past weekend, but was uanble to get it working properly. Maybe I gave up too easily.
I installed directPHP a few days ago, and that was pretty simple. This product has some of the best documentation out there. The developer of directPHP doesn't take anyone for granted and gives clear step-by-step directions. He basically assumes everyone is a "newbie". Good Stuff.
I haven't tried the Minislideshow, but will give that a go also.

The hard part of what I am trying to accomplish is getting sound advice on how to actually make it work. Your suggestions are definitley appreciated, but by no means do I want to discourage any more advice from others out there.

So please, I would apprectiate anymore suggestions, advice or direction. Especially some clues on the External ImageBock thing. That still has me stumped, and seems like it will help me out with my Mediablock issues too.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-07-29 02:42

Each item within gallery be it an image, movie, user, module.... has an id.
So if you call the external imageBlock or mediaBlock code for an item by its id, it will output/display the proper html for that item.
so take the example for my mediaBlock php code snippet: <?php @readfile('http://www.flashyourweb.com/gallery2/mediaBlock.php?g2_itemId=1405&useThumb=1'); ?>
if you follow just the url from inside the snippet you can see the actual image(or thumb as I specified): http://www.flashyourweb.com/gallery2/mediaBlock.php?g2_itemId=1405&useThumb=1

With the DirectPHP-plugin you can now insert these types of php snippets into your articles where you want the image to show.

Another way of including G2 images in articles is G2Image.

I happen to use all three options on mysite :)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
gmccanna

Joined: 2009-07-28
Posts: 3
Posted: Wed, 2009-07-29 03:29

Now we're getting somewhere. Very cool! Could I use the same snippets to call up recent images (like using the Imageblock PHP code I listed in the above comment)? I've tried using that imageblock code and have only been able to get the actual code to output in my article. I will give some of your other suggestions a try. I'm glad to see that someone has actually done what I'm trying to do.

Thanks again for the advice. I'm no expert with this stuff, so I'll probably be back here with some more questions.