Gallery2 in Drupal direct database access

BlackLotus

Joined: 2005-10-22
Posts: 8
Posted: Sat, 2007-01-27 08:53

Hello,
I'm using a Drupal 5 website and successfully integrated Gallery2.
Now I wanted to insert random images into pages with this php command:

Quote:
<?php @readfile('http://www.example.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_itemId=22');?>

But my hoster seems to not support this sort of things. Now I've tested it on an other server and there it works.
Is there any other possibility to insert random images from specific albums into pages?

Thanks for your help

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2007-01-27 20:55

The G2 filter that comes with the Drupal Gallery module should be able to do this without you needing to code anything.

 
BlackLotus

Joined: 2005-10-22
Posts: 8
Posted: Sun, 2007-01-28 17:15

@kiz_0987
could You please add a short howto?
That would be nice; i'm really new this sort of things and need some time to have an idea how it works ;)

Thanks