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

#126 2011-07-19 11:24:13

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

Links yes, titles not for a while if ever as it's changing text...

Couldn't you do the thing like the block building? Where you input your username, it finds that projects title, and it writes it out? (Read my last post on the other page, too.)

Last edited by SeptimusHeap (2011-07-19 11:24:38)


http://i46.tinypic.com/dw7zft.png

Offline

 

#127 2011-07-19 11:24:27

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

Re: My new online/offline API for the fora

sparks wrote:

Links yes, titles not for a while if ever as it's changing text...

Like, from the project page. Find <h2 id="project_title>.  wink

And how do I do the link?

Last edited by scimonster (2011-07-19 11:25:46)

Offline

 

#128 2011-07-19 11:36:13

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though  images of text obviously works.

hopefully My newest project

or linked image:
http://blocks.scratchr.org/API.php?user=sparks&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1

EDIT: woo! First try! quote me for the code, it's the same as image but rather than return=image you put return=link

Last edited by sparks (2011-07-19 11:37:21)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#129 2011-07-19 11:37:09

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though  images of text obviously works.

hopefully My newest project

or linked image:
http://blocks.scratchr.org/API.php?user … &num=1

Sweet! I think you'll get a future in programming no problem  tongue


http://i46.tinypic.com/dw7zft.png

Offline

 

#130 2011-07-19 11:37:54

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

SeptimusHeap wrote:

Sweet! I think you'll get a future in programming no problem  tongue

Aw, thanks sep  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#131 2011-07-19 11:39:21

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: My new online/offline API for the fora

SeptimusHeap wrote:

sparks wrote:

I'm calling it forum API. Too undramatic for your tastes, sep?  tongue

It is a little unfortunate that you can't layer or border images... It's probably possible, I mean, TheSuccessor built http://theblocklibrary.site11.com/inclu … olor=looks. Bordering would probably require something similar but that's out of my depth.

Yeah  tongue

Lol, but if you make the title interesting it will get more views. Maybe... Hmm, how do I make APIs sound exciting...

Yeah, well, you need better names  tongue


http://i46.tinypic.com/dw7zft.png

Offline

 

#132 2011-07-19 11:54:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

Yeah, the problem is that plenty of people don't know what API is... self-updating images and links in posts is a little wordy but is perhaps a little more exciting-sounding....


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#133 2011-07-19 11:57:56

cpumaster930
Scratcher
Registered: 2009-02-23
Posts: 100+

Re: My new online/offline API for the fora

sparks wrote:

Yeah, the problem is that plenty of people don't know what API is... self-updating images and links in posts is a little wordy but is perhaps a little more exciting-sounding....

What's API? xD

Anyway...does the random projects feature work yet? And if so, how do I use it in my sig?  big_smile


http://i.imgur.com/Qd0lu.png

Offline

 

#134 2011-07-19 12:00:47

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: My new online/offline API for the fora

that's really cool!


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#135 2011-07-19 12:06:26

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

cpumaster930 wrote:

sparks wrote:

Yeah, the problem is that plenty of people don't know what API is... self-updating images and links in posts is a little wordy but is perhaps a little more exciting-sounding....

What's API? xD

Anyway...does the random projects feature work yet? And if so, how do I use it in my sig?  big_smile

Not yet, no. I will be able to get random project images OR random project links to work but because they're random and the API processes the image and the link seperately, you can't have both without the link leading to a different random project to the image :S

if you scroll up a bit you can see linked images though  big_smile

Last edited by sparks (2011-07-19 12:07:09)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#136 2011-07-19 12:08:47

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: My new online/offline API for the fora

sparks wrote:

That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though  images of text obviously works.

hopefully My newest project

or linked image:
http://blocks.scratchr.org/API.php?user … &num=1

EDIT: woo! First try! quote me for the code, it's the same as image but rather than return=image you put return=link

A challenge for you: Make the link say what the project is called, instead of "my newest project."

Nice thread.

EDIT: Also could you make it be able to do any project? like second newest?

Last edited by LiquidMetal (2011-07-19 12:10:27)

Offline

 

#137 2011-07-19 12:14:27

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

LiquidMetal wrote:

A challenge for you: Make the link say what the project is called, instead of "my newest project."

Nice thread.

EDIT: Also could you make it be able to do any project? like second newest?

Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc  smile

I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#138 2011-07-19 12:56:31

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

Re: My new online/offline API for the fora

sparks wrote:

LiquidMetal wrote:

A challenge for you: Make the link say what the project is called, instead of "my newest project."

Nice thread.

EDIT: Also could you make it be able to do any project? like second newest?

Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc  smile

I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!

So have an image with the text that is read from the title.  wink

Offline

 

#139 2011-07-19 13:42:00

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: My new online/offline API for the fora

scimonster wrote:

sparks wrote:

LiquidMetal wrote:

A challenge for you: Make the link say what the project is called, instead of "my newest project."

Nice thread.

EDIT: Also could you make it be able to do any project? like second newest?

Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc  smile

I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!

So have an image with the text that is read from the title.  wink

It's not that easy...


http://i46.tinypic.com/dw7zft.png

Offline

 

#140 2011-07-19 14:20:49

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

cool! but can u make the background properly transparent on the text one?


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#141 2011-07-19 14:32:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

comp500 wrote:

cool! but can u make the background properly transparent on the text one?

If you like, yes. I'll do that now, it's a good point as quoting will look a little odd.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#142 2011-07-19 14:48:23

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

comp500 wrote:

cool! but can u make the background properly transparent on the text one?

If you like, yes. I'll do that now, it's a good point as quoting will look a little odd.

yay! cos one of my forum posts looks wierd. XD


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#143 2011-07-19 14:49:29

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

comp500 wrote:

sparks wrote:

comp500 wrote:

cool! but can u make the background properly transparent on the text one?

If you like, yes. I'll do that now, it's a good point as quoting will look a little odd.

yay! cos one of my forum posts looks wierd. XD

and ive added it to my sig!


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#144 2011-07-19 15:01:47

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

Cool! It looks a little odd half covering your name though!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#145 2011-07-19 15:04:55

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

Cool! It looks a little odd half covering your name though!

yeah, nvm anyway idea:

why not use header() in php then it works even better like:

Code:

header("image/gif")

800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#146 2011-07-19 15:07:48

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

offline is done: http://www.blocks.scratchr.org/offlineText.gif

It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.

Last edited by sparks (2011-07-19 15:11:19)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#147 2011-07-19 15:12:10

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: My new online/offline API for the fora

comp500 wrote:

sparks wrote:

Cool! It looks a little odd half covering your name though!

yeah, nvm anyway idea:

why not use header() in php then it works even better like:

Code:

header("image/gif")

Because header() does not accept variables for the URL. Otherwise I would have, it's a lot faster!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#148 2011-07-19 15:14:55

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

Re: My new online/offline API for the fora

sparks wrote:

offline is done: http://www.blocks.scratchr.org/offlineText.gif

It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.

Seems pretty good to me. :3

Offline

 

#149 2011-07-19 15:19:23

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

offline is done: http://www.blocks.scratchr.org/offlineText.gif

It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.

OK!


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#150 2011-07-19 15:20:35

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: My new online/offline API for the fora

sparks wrote:

comp500 wrote:

sparks wrote:

Cool! It looks a little odd half covering your name though!

yeah, nvm anyway idea:

why not use header() in php then it works even better like:

Code:

header("image/gif")

Because header() does not accept variables for the URL. Otherwise I would have, it's a lot faster!

ok!
test: online offline


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

Board footer