I've looked around quite a bit and haven't found it but is there a block that will show random images (only from publicly available) gallerys available?

If someone can point me to it I would much appreciate it.

Thanks

Comments

jxs2151’s picture

Icarus-1’s picture

This does part of what I want to do and till I can work something better out I'll use it.

What I'm really looking for is a block that will pull a random (image)node from the database where that node is not marked personal. With any luck it would also include the "Title" for that node.

That way the image could be a link to that node and when clicked would open the node for the full size image.

I really only want to show public images in the random block. The ransomizer script is not able to discriminate between the public and private images as they are stored in the same directory.

I've been digging around and trying to learn what I need so that I could write my own since one doesn't seem to exist but so far I've only been able to create some interesting error messages.

Thanks again I appreciate the help

koorneef’s picture

It's still in beta, but on the authors site you can find more info and an nice example of a random picture in a block.

jasmeetc’s picture

If you combine the patch on this page http://drupal.org/node/view/7063 with my changes (see comment#2 and #3 on the same page. Also use the patch attached to #3) you will get the random image block functionality. I have been using it on my web site without any issues.

Hope that helps

mercury66’s picture

I can't get the random image block to work - basically I know nothing of coding and I don't know how to patch the image.module correctly with image.patch..

Any chance someone could give me some pointers or send me the finished patched file to look at?

Hope you can help,
E

Danio’s picture

What OS are you using? If it's *nix or Mac OS X, you just put image.patch in the same folder as image.module, and do the following in the terminal:

$ patch < image.patch

That'll patch the image.module file.

mercury66’s picture

Thanks!

Patched my image.module - works great but thumb image missing?
Link works ok, but no image..

any thoughts?
..also would it be difficult to alter code to have say a couple of random images come up?

Cheers
E

mercury66’s picture

Hi,

Got image block and categories working great on my site.

Query - is it possible for this block to feature "new" images and categories rather than random ones?
What code would be required for this?

Cheers,
E

Tarlbot’s picture

Where can I find image.module v 1.008 that I need to apply this patch to? The version in the 4.4.0 download is 1.007, and the current CVS version is 1.123 or such.

ali.sharif’s picture

i want module in drupal where show picture in home page (random)
tanks every one tel me