Forgive me for being painfully stupid here, but is there a special format that needs to be used when setting up the random image block? I have my images that I want to show up randomly uploaded to domain.com/randomimages . When I add the block and view the page, no image shows up. I have tried a few different path variations, and then viewed the source in a browser to see what is getting pulled.

Entering the following paths in the "Images Path" field does the following:

/randomimages : shows nothing in a browser or source.
http://www.domain.com/randomimages/ : shows nothing in a browser or source
randomimages : at least shows a broken image

When I view the source in a browser, no code gets displayed for the first two options at all.

I noticed that in the module code, there is something that manipulates slashes, so I am just wondering if I am doing something wrong or the slash handler is malfunctioning. Please let me know.

Comments

criznach’s picture

Try the dev release. I simplified the path handling code and added more error checking.

Rob3rt’s picture

Ïnstalled this, set up a block. And when i activated the block. My whole site crashed.
So people. Take backup before installing this module!

criznach’s picture

Sorry for the delayed response. I was away for the holidays then playing catch up. I'd be happy to take a look if you're still wanting to use this.

Can you give any specifics about your site? Details? Enable your contact form?

criznach’s picture

Status: Active » Closed (fixed)

Closed due to lack of information. I've fixed the path handling code.