This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-27 14:48:31

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

API help, please

I've been wanting to make a banner like in LiquidMetal's signature, and I have made the graphics:

http://i1237.photobucket.com/albums/ff468/sciteccf/loves.pnghttp://i1237.photobucket.com/albums/ff468/sciteccf/faves.pnghttp://i1237.photobucket.com/albums/ff468/sciteccf/down.png

I know how to use the API, but I don't know if I'm doing it right; I'm getting an error. Please post step-by-step instructions on how to make the banner.

Last edited by SciTecCf (2012-06-27 15:30:29)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#2 2012-06-27 15:03:02

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: API help, please

You just split the image up in a program such as Paint.NET or Gimp, and then put each of those images in your sig with a link using BBCode.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2012-06-27 15:04:19

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

jvvg wrote:

You just split the image up in a program such as Paint.NET or Gimp, and then put each of those images in your sig with a link using BBCode.

I did.

(pre-noob apology)


How do I use the API?

Last edited by SciTecCf (2012-06-27 15:05:11)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#4 2012-06-27 15:05:33

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: API help, please

SciTecCf wrote:

jvvg wrote:

You just split the image up in a program such as Paint.NET or Gimp, and then put each of those images in your sig with a link using BBCode.

I did.

(pre-noob apology)


How do I use the API?

What API?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#5 2012-06-27 15:06:55

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

jvvg wrote:

SciTecCf wrote:

jvvg wrote:

You just split the image up in a program such as Paint.NET or Gimp, and then put each of those images in your sig with a link using BBCode.

I did.

(pre-noob apology)


How do I use the API?

What API?

blocks.scratchr.org/API.php

^^^^^^^^^^^^^^^^^^^^^^^^^


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#6 2012-06-27 15:14:17

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: API help, please

For an online/offline indicator, use:

Code:

[img]http://blocks.scratchr.org/API.php?user=SciTecCf&action=onlineStatus[/img]

http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-06-27 15:21:12

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

jvvg wrote:

For an online/offline indicator, use:

Code:

[url]http://blocks.scratchr.org/API.php?user=SciTecCf&action=onlineStatus[/url]

I know how to do that. I want a banner like in LiquidMetal's signature. Here's a link to one of his posts.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#8 2012-06-27 15:37:17

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: API help, please

Like this?
http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=loves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/loves.png&font_size=10&ypos=25&xpos=35&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=faves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/faves.png&font_size=10&ypos=25&xpos=35&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=downloads&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/down.png&font_size=10&ypos=25&xpos=25&textr=0&textg=0&textb=0&num=1
Tell me if you want anything adjusted. :3

EDIT: It doesn't like your images.

Last edited by scimonster (2012-06-27 15:39:29)

Offline

 

#9 2012-06-27 15:41:10

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

scimonster wrote:

EDIT: It doesn't like your images.

Oh noes... maybe it isn't a big fan of 32bit.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#10 2012-06-27 15:42:15

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

I'll try to "24bitify" my images.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#11 2012-06-27 15:47:29

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=loves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/loves2.png&font_size=10&ypos=25&xpos=35&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=faves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/faves2.png&font_size=10&ypos=25&xpos=35&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=Scorpion_Studios&type=newest&return=downloads&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/down2.png&font_size=10&ypos=25&xpos=25&textr=0&textg=0&textb=0&num=1

Testing with sci's code, but the 24bit images.

EDIT: Nah, it ain't working. I'll try it with GIFs tomorrow, for now, I need to go to bed.

Last edited by SciTecCf (2012-06-27 15:52:01)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#12 2012-06-27 16:21:20

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: API help, please

Use PNGs. ALWAYS use PNGs. They are the best for... everything.  big_smile


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#13 2012-06-27 20:40:55

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: API help, please

scimonster wrote:

Like this?
http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1
Tell me if you want anything adjusted. :3

EDIT: It doesn't like your images.

There's a chance the URLs are too long. Try shortening them with goo.gl or something.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#14 2012-06-27 20:47:17

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: API help, please

SciTecCf wrote:

http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1

Testing with sci's code, but the 24bit images.

EDIT: Nah, it ain't working. I'll try it with GIFs tomorrow, for now, I need to go to bed.

maybe all the & s are messing it up.  After all, the forums automatically replace all &'s with &'s; just check the source of the page
Therefore, you shouldn't need it.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#15 2012-06-27 21:10:19

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: API help, please

SJRCS_011 wrote:

SciTecCf wrote:

http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1

Testing with sci's code, but the 24bit images.

EDIT: Nah, it ain't working. I'll try it with GIFs tomorrow, for now, I need to go to bed.

maybe all the & s are messing it up.  After all, the forums automatically replace all &'s with &'s; just check the source of the page
Therefore, you shouldn't need it.

I don't see any &amps...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#16 2012-06-28 05:37:41

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

MathWizz wrote:

Use PNGs. ALWAYS use PNGs. They are the best for... everything.  big_smile

I know PNGs rule, but they aren't working with the API. Unfortunately, I have to go to a 256 color GIF. *shudder*

Okay, let's try again.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#17 2012-06-28 05:39:38

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

http://www.blocks.scratchr.org/API.php?action=projects&user=cpumaster930&type=newest&return=loves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/loves3.png&font_size=10&ypos=45&xpos=181&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=cpumaster930&type=newest&return=faves&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/faves2.png&font_size=10&ypos=45&xpos=50&textr=0&textg=0&textb=0&num=1http://www.blocks.scratchr.org/API.php?action=projects&user=cpumaster930&type=newest&return=downloads&bgimage=http://i1237.photobucket.com/albums/ff468/sciteccf/down3.png&font_size=10&ypos=45&xpos=50&textr=0&textg=0&textb=0&num=1

Okay, so the PNGs aren't the problem. Switching back to them.

Above bar is CPUmaster's latest project. That works fine. I tried replacing "Scorpion_Studios" with "Scorpion%5Studios" and still nothing.

I figured out what is causing the problem, it is the "_" in "Scorpion_Studios". Their API has a bug. 0_0

Last edited by SciTecCf (2012-06-28 06:53:27)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#18 2012-06-28 06:33:30

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: API help, please

SciTecCf wrote:

http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1

Okay, so the PNGs aren't the problem. Switching back to them.

Well, it works with other users, but not Scorpion_Studios... in the bar above, it's cpumaster930's latest project. Maybe it's the underscore in the username?

Try using %5 in place of _


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#19 2012-06-28 06:41:18

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: API help, please

Hardmath123 wrote:

SciTecCf wrote:

http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1http://www.blocks.scratchr.org/API.php? … &num=1

Okay, so the PNGs aren't the problem. Switching back to them.

Well, it works with other users, but not Scorpion_Studios... in the bar above, it's cpumaster930's latest project. Maybe it's the underscore in the username?

Try using %5 in place of _

Nada, it ain't workin'.

Since I got the code to work, but there is a bug in the API, there isn't much I can do. I'm requesting this topic to be closed.

Last edited by SciTecCf (2012-06-28 16:00:30)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#20 2012-06-28 16:22:13

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: API help, please

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer