1
Ok, I'll have to admit this really doesn't have much with xoops. But since there are a lot of coders hanging out here I though I'd post this none the less.
I need a php script that will randomly load an image from a directory and add a link to it. All images are the same size, same format and each image needs to have a specific link so when the script randomly loads an image it will always have the same link I set to it. Oh and I should be able to upload new images to the folder without changing the code but it's not a must. I don't mind modifying some code once a week or so.
Why do I need this? Because I need a block in which this script will randomly load my site's offers and each offer will have a link attached to it. The principle upon it works is the same as random screenshots scripts you can find all over the internet. The only different is that when I click on the image I don't see a full version of it (because random screenshots are actually thumbnails of the actual screenshots) but instead I visit another page (it's a link after all).
I would appreciate it a lot if someone helped me.