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

#426 2011-04-13 03:38:05

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

sparks wrote:

You're a librarian, aren't you just going to add it?

I thought we might save up till there was a bunch of blocks, i had to get of right after that. Plus we need to at least say something about it. I also wanted to make sure no one made it before me, LOL. BTW: Did anyone make the Weebly account?

Yeah, SSBBM set it up. YourLocalBlockLib. Same pass.

Offline

 

#427 2011-04-13 11:07:43

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

Sparks wrote:

I don't know who did it, but I love the edit to the statistics page with the blue edit number!

I did it.

Sparks wrote:

I've made an update to the homepage just underneath the library logo! I hope it looks ok, feel free to move it. It shouldn't be too hard to edit the numbers, each character is a different image so you have s0-9, p0-9 and b0-9 .gif, the rest stays the same!

That looks great! Amazing!


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#428 2011-04-13 12:41:48

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

Re: ITopic: Welcome to your local block library!

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!

Name:

Code:

post key $String$ and value $String$ to $String$

Type:

Code:

r

Code:

Code:

| args |
args _ Dictionary new.
args at: t1 put: (Array with: t2).
^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contents

A test script in PHP:

Code:

<?php
foreach ($_POST as $key => $value)
{
    echo $key . ": " . $value . "\n";
}
?>

big_smile


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

Offline

 

#429 2011-04-13 13:30:31

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Cool!

Offline

 

#430 2011-04-13 13:45:16

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

Re: ITopic: Welcome to your local block library!

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
big_smile

Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!


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

Offline

 

#431 2011-04-13 13:46:59

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
big_smile

Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!

You could post from there on here, right?

Offline

 

#432 2011-04-13 13:55:04

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

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

sparks wrote:

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
big_smile

Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!

You could post from there on here, right?

WHOA THAT WOULD BE SO SUPER EPIC!!!!

Offline

 

#433 2011-04-13 14:01:36

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

ProgrammingFreak wrote:

sparks wrote:


Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!

You could post from there on here, right?

WHOA THAT WOULD BE SO SUPER EPIC!!!!

Um, yeah! I'm gonna try it!

Offline

 

#434 2011-04-13 14:03:05

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

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

sparks wrote:

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
big_smile

Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!

You could post from there on here, right?

yikes  I DIDN'T THINK OF THAT...


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

Offline

 

#435 2011-04-13 14:06:42

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

MathWizz wrote:

ProgrammingFreak wrote:

sparks wrote:


Does this mean Panther could use this to post to a site without putting the information into the address? So POST rather than GET? That is seriously cool!

You could post from there on here, right?

yikes  I DIDN'T THINK OF THAT...

I DID. AND I THINK IT'LL WORK!!!
Discuss more on Hamachi...  tongue

Offline

 

#436 2011-04-13 14:18:51

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

Re: ITopic: Welcome to your local block library!

No! Discuss more on new thread! I want to know about this!


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

Offline

 

#437 2011-04-13 14:22:21

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

No! Discuss more on new thread! I want to know about this!

Username and Password has us stuck. :S

Offline

 

#438 2011-04-13 14:28:13

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

Re: ITopic: Welcome to your local block library!

How do you work out the correct things to post to make it post? It's not really visible to us when we click submit...


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

Offline

 

#439 2011-04-13 14:28:29

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

Re: ITopic: Welcome to your local block library!

What new thread?

Offline

 

#440 2011-04-13 14:35:34

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

How do you work out the correct things to post to make it post? It's not really visible to us when we click submit...

Thats our problem. I don't think its possible for us without access to the php code of scratch.

Offline

 

#441 2011-04-13 18:35:16

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Can I add the Block Library banner to my signature to show my support for the Block Library?
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#442 2011-04-13 19:11:20

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

Re: ITopic: Welcome to your local block library!

scratcher7_13 wrote:

Can I add the Block Library banner to my signature to show my support for the Block Library?
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

sure!  smile


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

Offline

 

#443 2011-04-13 19:15:44

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Thanks!


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#444 2011-04-13 20:55:04

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

New block!

This is the scratch version:
blockspec:

('password for %s is %s ?' #b #username:password:)

Code:

username: t1 password: t2 
    (HTTPSocket httpGet: 'contentshttp://scratch.mit.edu/api/authenticateuser?username=' , t1 , '&password=' , t2) contents = 'false' ifTrue: [^false].
^true

Panther version, works faster:

Box1:

password for $String$ is $String$ ?

Box2

b

Color Box: # (#0494DC)

Box3:

Code:

 readFromUrl: 'contentshttp://scratch.mit.edu/api/authenticateuser?username=' , t1 , '&password=' , t2 = 'false' ifTrue: [^false].
^true

Sorry it had the wrong code, i edited it to the right one though!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#445 2011-04-14 03:15:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Welcome to your local block library!

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!

Name:

Code:

post key $String$ and value $String$ to $String$

Type:

Code:

r

Code:

Code:

| args |
args _ Dictionary new.
args at: t1 put: (Array with: t2).
^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contents

A test script in PHP:

Code:

<?php
foreach ($_POST as $key => $value)
{
    echo $key . ": " . $value . "\n";
}
?>

big_smile

Ill have a go at useing it. BTW I made this a while ago, but found no use for it. I kept being stopped by username and passwords.


You can now reach me on Twitter @johnnydean1_

Offline

 

#446 2011-04-14 22:49:45

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

Re: ITopic: Welcome to your local block library!

can I change my bounce block for BYOB?
I want to change it to,
http://i55.tinypic.com/o586qr.gif
you have to click atomic if you don't want it glitchy


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

 

#447 2011-04-14 22:53:54

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Another new block! (this time I will add them) It's a cool one!
blockspec

('open project with the id of %n' #- #openProjectId:)

Code:

openProjectId: t1
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/api/getproject/' , t1]

(if they are not added soon it means I was kicked off. like the last two times.)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#448 2011-04-14 23:28:30

mrsrec
Scratcher
Registered: 2010-11-14
Posts: 100+

Re: ITopic: Welcome to your local block library!

None Of These Work.


Scratchy Scratcher Scratched Scratch Scratches When He Scratchy Scratches Scratch Projects. These Scratch Projects Were Started From Scratch.
http://internetometer.com/image/37716.png

Offline

 

#449 2011-04-15 03:58:29

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!

Name:

Code:

post key $String$ and value $String$ to $String$

Type:

Code:

r

Code:

Code:

| args |
args _ Dictionary new.
args at: t1 put: (Array with: t2).
^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contents

A test script in PHP:

Code:

<?php
foreach ($_POST as $key => $value)
{
    echo $key . ": " . $value . "\n";
}
?>

big_smile

YAY, thank you! I was needing something like this for the [post to block website] block I'm making!  big_smile


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#450 2011-04-15 06:22:29

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

Another new block! (this time I will add them) It's a cool one!
blockspec

('open project with the id of %n' #- #openProjectId:)

Code:

openProjectId: t1
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/api/getproject/' , t1]

(if they are not added soon it means I was kicked off. like the last two times.)

Oh yeah, that's cool!

Offline

 

Board footer