technoboy10 wrote:
Can I use the 'target' parameter with it?
... good question. Let me take a look at the code a sec..
EDIT: Yes. The target parameter is applicable to all API calls of the action=onlineStatus type
Last edited by sparks (2012-02-17 16:02:26)
Offline
sparks wrote:
iampie wrote:
sparks wrote:
Okay, we how about you make some images with text in them, all the ones you want to be in the sig, then post the links to them all here and I will make the random API work for you
Here you go... all the images, in very good and working (I tested them) links.
Tineh Urlz wrote:
http://tinyurl.com/7wt4ffm
http://tinyurl.com/7ycyryb
http://tinyurl.com/88f4fqg
http://tinyurl.com/83prjec
http://tinyurl.com/7t7nxrv
http://tinyurl.com/844dvxx
http://tinyurl.com/88rht6t
http://tinyurl.com/6vv3l9nJust give me the straight-up code.
www.blocks.scratchr.org/API.php?action= … om/88rht6t
Code:
www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://tinyurl.com/7ycyryb&link2=http://tinyurl.com/88f4fqg&link3=http://tinyurl.com/83prjec&link4=http://tinyurl.com/7t7nxrv&link5=http://tinyurl.com/844dvxx&link6=http://tinyurl.com/88rht6tPut that inside img tags. I have no idea how well it will work with animated images, I've never tried
EDIT: No. I'm afraid it doesn't seem to work with animations, I'm sorry
I got it, nvm!! Look at the siggy!! Random abandon thread anis!!! Although, I would like to make the code smaller. The API that I put in is reeeeally long, so I would like more room for words.
Last edited by iampie (2012-02-17 16:03:46)
Offline
sparks wrote:
technoboy10 wrote:
Can I use the 'target' parameter with it?
... good question. Let me take a look at the code a sec..
EDIT: Yes. The target parameter is applicable to all API calls of the action=onlineStatus type
Cool, thanks!
Offline
iampie wrote:
sparks wrote:
iampie wrote:
Here you go... all the images, in very good and working (I tested them) links.
Just give me the straight-up code.www.blocks.scratchr.org/API.php?action= … om/88rht6t
Code:
www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://tinyurl.com/7ycyryb&link2=http://tinyurl.com/88f4fqg&link3=http://tinyurl.com/83prjec&link4=http://tinyurl.com/7t7nxrv&link5=http://tinyurl.com/844dvxx&link6=http://tinyurl.com/88rht6tPut that inside img tags. I have no idea how well it will work with animated images, I've never tried
EDIT: No. I'm afraid it doesn't seem to work with animations, I'm sorryI got it, nvm!! Look at the siggy!! Random abandon thread anis!!! Although, I would like to make the code smaller. The API that I put in is reeeeally long, so I would like more room for words.
Well done! Very cool!
And you can tinyurl it to make it smaller! Try this link: http://tinyurl.com/7m32p3u
Last edited by sparks (2012-02-17 16:39:55)
Offline
XD Sparks! Save me from boring sigs!
Offline
sparks wrote:
iampie wrote:
sparks wrote:
www.blocks.scratchr.org/API.php?action= … om/88rht6t
Code:
www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://tinyurl.com/7ycyryb&link2=http://tinyurl.com/88f4fqg&link3=http://tinyurl.com/83prjec&link4=http://tinyurl.com/7t7nxrv&link5=http://tinyurl.com/844dvxx&link6=http://tinyurl.com/88rht6tPut that inside img tags. I have no idea how well it will work with animated images, I've never tried
EDIT: No. I'm afraid it doesn't seem to work with animations, I'm sorryI got it, nvm!! Look at the siggy!! Random abandon thread anis!!! Although, I would like to make the code smaller. The API that I put in is reeeeally long, so I would like more room for words.
Well done! Very cool!
And you can tinyurl it to make it smaller! Try this link: http://tinyurl.com/7m32p3u
http://tinyurl.com/7m32p3u
I will try that.
EDIT: Wow!!! Thanks sooooo much!!!
Last edited by iampie (2012-02-17 19:21:48)
Offline
Explain the HTML... http://scratch.mit.edu/forums/viewtopic.php?id=91769
Also your code is down see sig
Last edited by Squawkers13 (2012-03-14 20:27:29)
Offline
Squawkers13 wrote:
I cannot display &num=2!
I have 2 projects up!
SPARKS PLEASE FIX THIS!!!
Offline
Offline
what happens if you put "...&num=(a number more than the number of projects you have)" ?
Offline
Is there any way to have certain dates have certain images? Such as 3/14 with an image of Pi, 3/17 with a shamrock, etc.
Offline
technoboy10 wrote:
Is there any way to have certain dates have certain images? Such as 3/14 with an image of Pi, 3/17 with a shamrock, etc.
Using PHP this is certainly possible, but considering the once-a-year occurance of a date, I'm pretty sure it's easier to update your sig yourself on that day
Offline
Wait, Is it possible to do this for the latest projects in galleries?
Offline
sparks wrote:
technoboy10 wrote:
Is there any way to have certain dates have certain images? Such as 3/14 with an image of Pi, 3/17 with a shamrock, etc.
Using PHP this is certainly possible, but considering the once-a-year occurance of a date, I'm pretty sure it's easier to update your sig yourself on that day
Ok, thanks. BTW, how do you do PHP in your sig?
EDIT: Clarification: How would you do that code and make it into an image link? (Sorry, don't know much about PHP )
Last edited by technoboy10 (2012-03-26 09:43:27)
Offline
Hey sparks! I was wondering if it would be possible to get a different picture (eg; with a "NEW!" badge) if a project is less then X weeks old? (for my signature.)
Offline
Hmm... yes, it should be. I could pull the date from the project. I think it would probably have one of these two formats:
d=0&w=2&m=0&y=0
or
age=00,02,00,00
I think the second one looks neater, what do you guys think?
I think I would have it so that if the age of the project is greater than your input it would return one link/image/text, another if it is equal to that (optional) and another if it is less than that.
I won't be able to start work on any of the suggested API updates until next month though, I have one piece of coursework left!
Offline
hey just wondering: would it be possible to print multiple lines of text with the text renderer?
Offline
Hi sparks,
I just updated my signature, and while I was playing around with it, I noticed it can be slow to load, and does not load all at once. I was wondering if you could make a single call script to get an image that links directly to the project. You would put all the images in one call to the api, and there would be less overhead. I'll explain more in depth if you need it.
Thanks!
Offline
LiquidMetal wrote:
Hi sparks,
I just updated my signature, and while I was playing around with it, I noticed it can be slow to load, and does not load all at once. I was wondering if you could make a single call script to get an image that links directly to the project. You would put all the images in one call to the api, and there would be less overhead. I'll explain more in depth if you need it.
Thanks!
Hey! I like the new sig!
I understand that loading time would be much reduced, but it may lower the level of customisation available. I suppose it could be done in one image using a really long url like
http://www.blocks.scratchr.org/API.php?type=myProjects&display=nlfd&number=1&lovesImage=anImageUrl&favesImage=urlToImage&downloadsImage=urlToImage&background=urlToImage
or something. (nlfd would tell it to display name, loves, faves and downloads in that order)my main worry with this is that it would still be accessing image urls for all the parts of the sig, which would slow down the loading of the one image so that whole sig would take longer to load...
Offline