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
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!
Offline
I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
Name:
post key $String$ and value $String$ to $String$
Type:
r
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:
<?php foreach ($_POST as $key => $value) { echo $key . ": " . $value . "\n"; } ?>
Offline
Cool!
Offline
MathWizz wrote:
I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
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!
Offline
sparks wrote:
MathWizz wrote:
I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!
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
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!
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
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
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!
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?
I DIDN'T THINK OF THAT...
Offline
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?
I DIDN'T THINK OF THAT...
I DID. AND I THINK IT'LL WORK!!!
Discuss more on Hamachi...
Offline
sparks wrote:
No! Discuss more on new thread! I want to know about this!
Username and Password has us stuck. :S
Offline
What new thread?
Offline
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
Can I add the Block Library banner to my signature to show my support for the Block Library?
Offline
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!
Offline
Thanks!
Offline
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]. ^truePanther 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!
Offline
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:
rCode:
Code:
| args | args _ Dictionary new. args at: t1 put: (Array with: t2). ^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contentsA test script in PHP:
Code:
<?php foreach ($_POST as $key => $value) { echo $key . ": " . $value . "\n"; } ?>
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.
Offline
Another new block! (this time I will add them) It's a cool one!
blockspec
('open project with the id of %n' #- #openProjectId:)
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.)
Offline
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:
rCode:
Code:
| args | args _ Dictionary new. args at: t1 put: (Array with: t2). ^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contentsA test script in PHP:
Code:
<?php foreach ($_POST as $key => $value) { echo $key . ": " . $value . "\n"; } ?>
YAY, thank you! I was needing something like this for the [post to block website] block I'm making!
Offline
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