Moved all my WordPress stuff to my main site. New link is here:
http://www.prissed.com/2005-04/plugin-multiple-random-images/
Funny- this is exactly what I am looking for- the last plugin I had repeats images on the same load. Now, if only I can randomize descriptions of the images to. Trying to use it for a “random artist” thing- where each image also needs to displaythe name of the artist who created it.
Hmm. In order to associate a name with the image, I think you’d have to do something like I did:
http://www.stealtheblinds.net/2005/05/13/stbquote
(This only outputs one image)
My php skills aren’t that great, but maybe I can combine the two plugins somehow…?
are you guys talking something like this?
http://villacorta.us/files/myblog/?page_id=25
this is my site btw. 😀
Updated the plugin with an Options page in the WP Admin. This should make it less confusing for non-coders to edit the variables.
This plugin only works with WP 1.5+
http://www.prissed.com/2005-04/plugin-multiple-random-images/
I haven’t gotten around to checking into associating images with text, yet. That’s something on the to-do list, though. 🙂
Is it possible to have the images show up in multiple places on a page, instead of all together?
Not the way it is currently designed, no.
Ok…Thanks for the quick reply. It’s a plugin I’m still very likely to make use of.
Great plug. But how do you add a link to the picture? I tried to add a a href=\"$fileurl[$j] but it didn’t work that well.
I just whipped up a simple random image plugin that digs through my blog posts and returns an image tag that links back to the blog post at random. It’s really cool to see it in action (on the right side of my homepage).
Here’s the code:
http://justinsomnia.org/2005/09/random-image-plugin-for-wordpress/
If you guys want to display random multiple images without any duplicates, it’s not that complicated to code.
First get your list of images. That can be as simple as reading in the contents of a dir to an array. Then randomly sort the array. Then write the links out using $image[0], $image[1] etc. for wherever you wan them through your page. You guys sound like you know enough php to look up the various functions, but if you feel you need help figuring that out, speak up.
It’s a great plugin, but how do I make it so when someone clicks on it, a new window opens with the full resolution of that image?
Not that good with PHP..
I want to download this plugin, but where do you go to download it? I cant seem to find it anywhere.
Thanks for your help
a newbie here 🙂