Well I've been on scratch for awhile, and while here, I've seen some signatures that automatically pick a random one from whatever was given them. Now, I would like to apply this to my Shop Directory and have a random "featured" shop each time it's visited. So, could someone be kind enough to provide some code that'll work with over 30 slots (or as high as possible if 30 isn't possible) for shops?
Oh, and this is a side questions, but will there be any new music formats supported by Scratch 2.0?
Thanks for any answers!
Last edited by ErnieParke (2013-01-09 16:38:20)
Offline
Offline
jvvg wrote:
That's nice and all, but there's a problem. Yes, the forum that you gave lets you have random pictures, random links, or random text, but the problem is that I need everything that'll appear to be from the same shop, which I currently can't see how to do that with what you've given.
Last edited by ErnieParke (2013-01-10 19:13:26)
Offline
Bump
Up
My
Post (Or for fun, pineapple.)
Last edited by ErnieParke (2013-01-16 18:12:02)
Offline
ErnieParke wrote:
That's nice and all, but there's a problem. Yes, the forum that you gave lets you have random pictures, random links, or random text, but the problem is that I need everything that'll appear to be from the same shop, which I currently can't see how to do that with what you've given.
Could you be a bit more clear? So far what I understand if that you want to pick a random picture out of 30, to then display it in a "shop" thread, and that's exactly what the random image API is meant for.
Offline
The random image API only works with upto 10 images.
You'd have to code your own PHP random image server to make it 30+.
I have a website that serves up a random image everytime the reload button is clicked, or the webpage is reloaded. Currently it only chooses from 3 images, but it can use as many images as you want.
Javascript can also be used if it is a website.
meanwhileinaustralia.tk
Offline
Edit: Made some things more clearer.
technoguyx wrote:
ErnieParke wrote:
That's nice and all, but there's a problem. Yes, the forum that you gave lets you have random pictures, random links, or random text, but the problem is that I need everything that'll appear to be from the same shop, which I currently can't see how to do that with what you've given.
Could you be a bit more clear? So far what I understand if that you want to pick a random picture out of 30, to then display it in a "shop" thread, and that's exactly what the random image API is meant for.
Okay, so what I want is to have random text with a link, followed possibly by a radnom image, and then most likely followed by more random text. The problem that arises is that all of those random objects need to be from the same shop, and the API in that thread, as far as I can see, can't do that. Just in summarization of what I need:
1). Some random text with a link.
2). Poissibly a random image.
3). Most likely more random text.
4). All of this to be from the same shop, and not from different shops.
Oh, and on a side note, when I say "random", I don't mean gibberish as in "ghedfjuf", but instead as in a random choice from what's been put in.
jji7skyline wrote:
The random image API only works with upto 10 images.
You'd have to code your own PHP random image server to make it 30+.
I have a website that serves up a random image everytime the reload button is clicked, or the webpage is reloaded. Currently it only chooses from 3 images, but it can use as many images as you want.
Javascript can also be used if it is a website.
meanwhileinaustralia.tk
That's nice to know, but I just went to your server and it's been taken down due to "inactivity".
Edit: Made some things more clearer.
Last edited by ErnieParke (2013-01-16 22:17:37)
Offline
Couldnt you just change the random featured shop per day manually?
Or you could have a REALLY slow animated gif of everyshop banner like my signature but slower.
Offline
Blazingwave wrote:
1). Couldnt you just change the random featured shop per day manually?
2). Or you could have a REALLY slow animated gif of everyshop banner like my signature but slower.
1). I could, but I'd rather avoid that.
2). Maybe, but the problem with this is that I'd have to take a screenshot of every shop, edit it, and upload it to imgur, and that would tak a lot of work. Also, wouldn't the .gif start at the same place each time? That way, there would only be 1 featured shop all year long, which I don't want.
Offline