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

#26 2011-11-07 17:04:24

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[say(Coooooooooooooool!!!!!!!!%20Wonder%20if%20I%20can%20trick%20it...%20@'~#-4938\/\..z><|$££^*&^%$£"!)]

Ha! I tricked it! It doesn't support all chars  tongue  Awsome though!

Last edited by WindowsExplorer (2011-11-07 17:06:08)


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#27 2011-11-07 17:29:11

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[go_to_x%3A(10)y%3A(10)]

It works!   big_smile   It might be a good idea to make it so that reporters and booleans can show up on their own, outside of stack blocks...or is that possible?

Last edited by Greenatic (2011-11-07 17:33:11)

Offline

 

#28 2011-11-07 18:01:58

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Greenatic wrote:

[url]http://block.site90.net/[go_to_x%3A(10)y%3A(10)][/url]

It works!   big_smile   It might be a good idea to make it so that reporters and booleans can show up on their own, outside of stack blocks...or is that possible?

Yeah... this is a bug, currently. I'll probably fix it by parsing the block, then looking up its type (rather than assuming it's a command/reporter based on its position in the string)

I'm going to make a Scratch changeset that adds a "export to forums" option to each block's menu, for ease of use.

Last edited by nXIII (2011-11-07 18:02:48)


nXIII

Offline

 

#29 2011-11-07 19:05:12

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

The exporter is here!  smile


nXIII

Offline

 

#30 2011-11-07 19:45:50

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Testing...
http://block.site90.net/%5Bgo%20to%20x%3A(-16)y%3A(4)%5D%5Bswitch%20to%20costume(Up2)%5D%5Bset(CostumeCycle)to(1)%5D%5Bset(Direction)to(1)%5D%5Bset(LastCostumeChange)to(0)%5D%5Bset(InPen%3F)to(true)%5D%5Bset(Tile)to(489)%5D%5Bforever%7B%5Bwait%20until%5B%5B(Paused)%5D%3D(false)%5D%5D%5Bgo%20to%20front%5D%5Bif%5B%5B(InPen%3F)%5D%3D(true)%5D%7B%5Brepeat%20until%5B%5B%5B(InPen%3F)%5D%3D(false)%5Dand%5B%5B(Paused)%5D%3D(false)%5D%5D%7B%5Brepeat(32)%7B%5Bchange%20y%20by%5B(2)-%5B(Direction)%5D%5D%5D%5Bif%5B%5By%20position%5D%3D(0)%5D%7B%5Bset(Direction)to(1)%5D%7D%5D%5Bif%5B%5By%20position%5D%3D(8)%5D%7B%5Bset(Direction)to(3)%5D%7D%5D%5Bif%5Bnot%5B%5B(InkyDotCounter)%5D%3C(30)%5D%5D%7B%5Bset(InPen%3F)to(false)%5D%7D%5D%7D%5D%7D%5D%5Bset(Direction)to(1)%5D%5Brepeat(16)%7B%5Bchange%20x%20by(1)%5D%7D%5D%5Brepeat(48)%7B%5Bchange%20y%20by(0.5)%5D%7D%5D%7Delse%7B%5Bset(Tile%20X)to%5B%5B%5Bx%20position%5D%2B(121)%5D%2F(8)%5D%5D%5Bset(Tile%20Y)to%5B%5B(144)-%5By%20position%5D%5D%2F(8)%5D%5D%5Bset(Tile)to%5B%5B%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D*(28)%5D%2B%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%5D%5D%5Bif%5B%5B(GhostMode)%5D%3D(1)%5D%7B%5Bif%5B%5B(Direction)of(a%20ScratchSpriteMorph())%5D%3D(1)%5D%7B%5Bset(Target%20X)to%5B%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D-(2)%5D%5D%5Bset(Target%20Y)to%5B%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D-(2)%5D%5D%7Delse%7B%5Bif%5B%5B(Direction)of(a%20ScratchSpriteMorph())%5D%3D(2)%5D%7B%5Bset(Target%20X)to%5B%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D-(2)%5D%5D%5Bset(Target%20Y)to%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%7Delse%7B%5Bif%5B%5B(Direction)of(a%20ScratchSpriteMorph())%5D%3D(3)%5D%7B%5Bset(Target%20X)to%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%5Bset(Target%20Y)to%5B%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%2B(2)%5D%5D%7Delse%7B%5Bif%5B%5B(Direction)of(a%20ScratchSpriteMorph())%5D%3D(4)%5D%7B%5Bset(Target%20X)to%5B%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%2B(2)%5D%5D%5Bset(Target%20Y)to%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%7Delse%7B%5Bset(Target%20X)to%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%5Bset(Target%20Y)to%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%5D%5D%5D%5D%5Bset(Target%20X)to%5B%5B%5B(Target%20X)%5D-%5Bround%5B%5B(Tile%20X)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%2B%5B(Target%20X)%5D%5D%5D%5Bset(Target%20Y)to%5B%5B%5B(Target%20Y)%5D-%5Bround%5B%5B(Tile%20Y)of(a%20ScratchSpriteMorph())%5D-(0.5)%5D%5D%5D%2B%5B(Target%20Y)%5D%5D%5D%7Delse%7B%5Bif%5B%5B(GhostMode)%5D%3D(2)%5D%7B%5Bset(Target%20X)to(28)%5D%5Bset(Target%20Y)to(36)%5D%7D%5D%5D%5Bset(OpenDirections)to()%5D%5Bdelete(all)of(Distances)%5D%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D-(28)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5B%5Bnot%5B%5B(Direction)%5D%3D(3)%5D%5Dor%5Bnot%5B%5B(LastMode)%5D%3D%5B(GhostMode)%5D%5D%5D%5D%5D%7B%5Bset(OpenDirections)to%5Bjoin%5B(OpenDirections)%5D(1)%5D%5D%5Badd%5B%5Bround%5B%5B(sqrt)of%5B%5B%5B%5B(Target%20X)%5D-%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%5D*%5B%5B(Target%20X)%5D-%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%5D%5D%2B%5B%5B%5B(Target%20Y)%5D-%5B%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D-(1)%5D%5D*%5B%5B(Target%20Y)%5D-%5B%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D-(1)%5D%5D%5D%5D%5D*(10)%5D%5D%2F(10)%5Dto(Distances)%5D%7D%5D%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D-(1)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5B%5Bnot%5B%5B(Direction)%5D%3D(4)%5D%5Dor%5Bnot%5B%5B(LastMode)%5D%3D%5B(GhostMode)%5D%5D%5D%5D%5D%7B%5Bset(OpenDirections)to%5Bjoin%5B(OpenDirections)%5D(2)%5D%5D%5Badd%5B%5Bround%5B%5B(sqrt)of%5B%5B%5B%5B(Target%20X)%5D-%5B%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D-(1)%5D%5D*%5B%5B(Target%20X)%5D-%5B%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D-(1)%5D%5D%5D%2B%5B%5B%5B(Target%20Y)%5D-%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%5D*%5B%5B(Target%20Y)%5D-%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%5D%5D%5D%5D*(10)%5D%5D%2F(10)%5Dto(Distances)%5D%7D%5D%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D%2B(28)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5B%5Bnot%5B%5B(Direction)%5D%3D(1)%5D%5Dor%5Bnot%5B%5B(LastMode)%5D%3D%5B(GhostMode)%5D%5D%5D%5D%5D%7B%5Bset(OpenDirections)to%5Bjoin%5B(OpenDirections)%5D(3)%5D%5D%5Badd%5B%5Bround%5B%5B(sqrt)of%5B%5B%5B%5B(Target%20X)%5D-%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%5D*%5B%5B(Target%20X)%5D-%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%5D%5D%2B%5B%5B%5B(Target%20Y)%5D-%5B%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%2B(1)%5D%5D*%5B%5B(Target%20Y)%5D-%5B%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%2B(1)%5D%5D%5D%5D%5D*(10)%5D%5D%2F(10)%5Dto(Distances)%5D%7D%5D%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D%2B(1)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5B%5Bnot%5B%5B(Direction)%5D%3D(2)%5D%5Dor%5Bnot%5B%5B(LastMode)%5D%3D%5B(GhostMode)%5D%5D%5D%5D%5D%7B%5Bset(OpenDirections)to%5Bjoin%5B(OpenDirections)%5D(4)%5D%5D%5Badd%5B%5Bround%5B%5B(sqrt)of%5B%5B%5B%5B(Target%20X)%5D-%5B%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%2B(1)%5D%5D*%5B%5B(Target%20X)%5D-%5B%5Bround%5B%5B(Tile%20X)%5D-(0.5)%5D%5D%2B(1)%5D%5D%5D%2B%5B%5B%5B(Target%20Y)%5D-%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%5D*%5B%5B(Target%20Y)%5D-%5Bround%5B%5B(Tile%20Y)%5D-(0.5)%5D%5D%5D%5D%5D%5D*(10)%5D%5D%2F(10)%5Dto(Distances)%5D%7D%5D%5Bif%5B%5B(GhostMode)%5D%3D(3)%5D%7B%5Bset(NewDirection)to%5Bletter%5Bpick%20random(1)to%5Blength%20of%5B(OpenDirections)%5D%5D%5Dof%5B(OpenDirections)%5D%5D%5D%7Delse%7B%5Bif%5B%5Blength%20of%5B(OpenDirections)%5D%5D%3E(0)%5D%7B%5Bset(Temp1)to(1)%5D%7D%5D%5Bif%5B%5B%5Blength%20of%5B(OpenDirections)%5D%5D%3E(1)%5Dand%5B%5Bitem(2)of(Distances)%5D%3C%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5D%5D%7B%5Bset(Temp1)to(2)%5D%7D%5D%5Bset(Temp2)to%5B%5Bitem(2)of(Distances)%5D%3D%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5D%5D%5Bif%5B%5B%5Blength%20of%5B(OpenDirections)%5D%5D%3E(2)%5Dand%5B%5Bitem(3)of(Distances)%5D%3C%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5D%5D%7B%5Bset(Temp1)to(3)%5D%7D%5D%5Bset(Temp2)to%5B%5B%5Bitem(3)of(Distances)%5D%3D%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5Dand%5B%5B(Temp2)%5D%3D(true)%5D%5D%5D%5Bif%5B%5B%5Blength%20of%5B(OpenDirections)%5D%5D%3E(3)%5Dand%5B%5Bitem(4)of(Distances)%5D%3C%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5D%5D%7B%5Bset(Temp1)to(4)%5D%7D%5D%5Bset(Temp2)to%5B%5B%5Bitem(4)of(Distances)%5D%3D%5Bitem%5B(Temp1)%5Dof(Distances)%5D%5Dand%5B%5B(Temp2)%5D%3D(true)%5D%5D%5D%5Bset(NewDirection)to%5Bletter%5B(Temp1)%5Dof%5B(OpenDirections)%5D%5D%5D%5Bif%5B%5B(Temp2)%5D%3D(true)%5D%7B%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D-(28)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5Bnot%5B%5B(Direction)%5D%3D(3)%5D%5D%5D%7B%5Bset(NewDirection)to(1)%5D%7Delse%7B%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D-(1)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5Bnot%5B%5B(Direction)%5D%3D(4)%5D%5D%5D%7B%5Bset(NewDirection)to(2)%5D%7Delse%7B%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D%2B(28)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5Bnot%5B%5B(Direction)%5D%3D(1)%5D%5D%5D%7B%5Bset(NewDirection)to(3)%5D%7Delse%7B%5Bif%5B%5Bnot%5B%5Bitem%5B%5B(Tile)%5D%2B(1)%5Dof(Maze)%5D%3D(w)%5D%5Dand%5Bnot%5B%5B(Direction)%5D%3D(2)%5D%5D%5D%7B%5Bset(NewDirection)to(4)%5D%7D%5D%5D%5D%5D%7D%5D%5D%5Bset(Direction)to%5B(NewDirection)%5D%5D%5Bset(LastMode)to%5B(GhostMode)%5D%5D%5Bif%5B%5B%5Bx%20position%5Dmod(8)%5D%3D(0)%5D%7B%5Bset(Temp1)to(3)%5D%7Delse%7B%5Bset(Temp1)to(7)%5D%5D%5Brepeat%5B(Temp1)%5D%7B%5Bwait%20until%5B%5B(Paused)%5D%3D(false)%5D%5D%5Bif%5B%5B(Direction)%5D%3D(1)%5D%7B%5Bchange%20y%20by(1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(2)%5D%7B%5Bchange%20x%20by(-1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(3)%5D%7B%5Bchange%20y%20by(-1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(4)%5D%7B%5Bchange%20x%20by(1)%5D%7D%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(1)%5D%7B%5Bchange%20y%20by(1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(2)%5D%7B%5Bchange%20x%20by(-1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(3)%5D%7B%5Bchange%20y%20by(-1)%5D%7D%5D%5Bif%5B%5B(Direction)%5D%3D(4)%5D%7B%5Bchange%20x%20by(1)%5D%7D%5D%5D%7D%5D

Oops, I broke it. http://scratch.mit.edu/forums/img/smilies/roll.png

Last edited by MathWizz (2011-11-07 19:48:10)


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

Offline

 

#31 2011-11-07 19:55:22

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

GET requests can't be that long... any suggestions? I don't know how to POST images.  hmm

Last edited by nXIII (2011-11-07 19:55:45)


nXIII

Offline

 

#32 2011-11-07 20:07:00

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

hmm  I have no suggestions.

OT:
Mind voting on this?

Last edited by MathWizz (2011-11-07 20:13:27)


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

Offline

 

#33 2011-11-07 20:14:49

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

MathWizz wrote:

Mind voting on this?

Voted  smile


nXIII

Offline

 

#34 2011-11-07 20:23:36

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Thanks.  big_smile


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

Offline

 

#35 2011-11-08 04:38:52

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

n, this is really cool! Would you mind if the block library began using this for our block renderer in the submission form for the site? The one we currently have is made by TheSuccessor and doesn't support arguments!


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

Offline

 

#36 2011-11-08 04:48:27

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[hi%20[($1)]]

Last edited by ssss (2011-11-11 00:22:31)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#37 2011-11-08 05:28:33

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

sparks wrote:

n, this is really cool! Would you mind if the block library began using this for our block renderer in the submission form for the site? The one we currently have is made by TheSuccessor and doesn't support arguments!

I'm sure he wouldn't mind. Probably just the opposite.  tongue
And you read my mind. XD

Offline

 

#38 2011-11-08 05:34:54

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

MathWizz wrote:

Testing...
[...]

Oops, I broke it. http://scratch.mit.edu/forums/img/smilies/roll.png

Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

GET requests can't be that long... any suggestions? I don't know how to POST images.  hmm

Maybe make separate images per block?


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

Offline

 

#39 2011-11-08 07:33:36

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

sparks wrote:

n, this is really cool! Would you mind if the block library began using this for our block renderer in the submission form for the site? The one we currently have is made by TheSuccessor and doesn't support arguments!

No, go right ahead! I'd love to see it put to good use  smile


Hardmath123 wrote:

Maybe make separate images per block?

You could do this, but it would lose the "overlapping" effect of including all the blocks in one image.


nXIII

Offline

 

#40 2011-11-08 08:21:13

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

sparks wrote:

n, this is really cool! Would you mind if the block library began using this for our block renderer in the submission form for the site? The one we currently have is made by TheSuccessor and doesn't support arguments!

No, go right ahead! I'd love to see it put to good use  smile


Hardmath123 wrote:

Maybe make separate images per block?

You could do this, but it would lose the "overlapping" effect of including all the blocks in one image.

No, for each block, you type not only the block itself but the one above and below it, so it automatically adjusts the image. It can be painful, but useful.


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

Offline

 

#41 2011-11-08 08:43:58

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

http://block.site90.net/[hi!]

In addition, I don't think it supports dropdowns, booleans, or color-pickers yet.  I could be using the wrong syntax, though.  It needs cap blocks, too.

Sorry if I sound over-critical.   tongue

Last edited by Greenatic (2011-11-08 15:11:47)

Offline

 

#42 2011-11-08 09:49:21

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Greenatic wrote:

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

[url]http://block.site90.net/[hi!][/url]

In addition, I don't think it supports dropdowns yet.  I could be using the wrong syntax, though.

Ooh, thanks for pointing that out, Green. Guess we'll have to wait 'til nXIII updates it.

Offline

 

#43 2011-11-08 11:07:30

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

data:image/gif;base64,R0lGODdhhgArAOcAA … ISRRMQADs=

The forums seem to be putting "http://" before the data URI messing it up.  hmm

Last edited by MathWizz (2011-11-08 11:12:49)


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

Offline

 

#44 2011-11-08 11:09:05

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

scimonster wrote:

Greenatic wrote:

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

[url]http://block.site90.net/[hi!][/url]

In addition, I don't think it supports dropdowns yet.  I could be using the wrong syntax, though.

Ooh, thanks for pointing that out, Green. Guess we'll have to wait 'til nXIII updates it.

Yeah, scimonster.  XD  Seriously, call me Greenatic.  Green sounds...well..not right.   smile

Offline

 

#45 2011-11-08 13:12:38

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Sci has a good point, would you consider allowing reporters to stand-alone?


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

Offline

 

#46 2011-11-08 14:20:35

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Greenatic wrote:

scimonster wrote:

Greenatic wrote:

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

[url]http://block.site90.net/[hi!][/url]

In addition, I don't think it supports dropdowns yet.  I could be using the wrong syntax, though.

Ooh, thanks for pointing that out, Green. Guess we'll have to wait 'til nXIII updates it.

Yeah, scimonster.  XD  Seriously, call me Greenatic.  Green sounds...well..not right.   smile

OK, I will! Just wanted to see how you felt about Green.

Offline

 

#47 2011-11-08 14:23:25

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

A possibility to adding the length of scripts is maybe make a page where you can insert the code into a text-area instead of through the URL and it would save it into a database and then have an image URL like: http://block.site90.net/af84g and it would get the image/script from the database.

Though that would be hundreds of MySQL requests. A request for each image on a page. So if there are five scripts images, there would be five requests per person, so if this gets 10 views a day, that would go up to about 50 MySQL requests and that is just one topic on one page. If it's put into a signature and a person makes 10 topics/posts and those topics get 10 views each, that rounds up to about 100 MySQL requests. And again, that is just one person.

Why do I fight with my solutions...?

Offline

 

#48 2011-11-08 15:03:02

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

sparks wrote:

Sci has a good point, would you consider allowing reporters to stand-alone?

I think that was my post.   tongue

And it doesn't take boolean or color-picker arguments either.  It takes strings, though.

http://block.site90.net/[test_&lt;test&gt;] http://block.site90.net/[test_(test)]

It needs cap blocks too:

http://block.site90.net/[stop_script] http://block.site90.net/[stop_all]

Last edited by Greenatic (2011-11-08 15:11:10)

Offline

 

#49 2011-11-08 20:43:15

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Greenatic wrote:

And it doesn't take boolean or color-picker arguments either.  It takes strings, though.

It takes Boolean arguments: the parser infers the type of arguments from their labels, and defaults to string arguments. All arguments of any type are indicated with '(' and ')'. Example:

[say[()and()]]
http://block.site90.net/[say[()and()]]

[nonexistent()]
http://block.site90.net/[nonexistent()]

Color-picker arguments aren't supported--I guess you could pass in values as hex colors....

It needs cap blocks too

Cap blocks are a graphics glitch, I'll fix that eventually.


Greenatic wrote:

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

That's not the correct syntax, but reporters should (and will eventually) be rendered freestanding anyway.

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

No, that's the Scratch "error" color.

In addition, I don't think it supports dropdowns, booleans, or color-pickers yet.  I could be using the wrong syntax, though.

It supports dropdowns:
[set(var)to(value)]
http://block.site90.net/[set(var)to(value)]


nXIII

Offline

 

#50 2011-11-08 20:54:10

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

Greenatic wrote:

And it doesn't take boolean or color-picker arguments either.  It takes strings, though.

It takes Boolean arguments: the parser infers the type of arguments from their labels, and defaults to string arguments. All arguments of any type are indicated with '(' and ')'. Example:

[say[()and()]]
[url]http://block.site90.net/[say[()and()]][/url]

[nonexistent()]
[url]http://block.site90.net/[nonexistent()][/url]

Color-picker arguments aren't supported--I guess you could pass in values as hex colors....

It needs cap blocks too

Cap blocks are a graphics glitch, I'll fix that eventually.


Greenatic wrote:

There might be some problems with using this for Block Library.  One, obviously, is that reporters and booleans can't stand on their own.  Proof:

http://block.site90.net/<test>http://block.site90.net/(test)

That's not the correct syntax, but reporters should (and will eventually) be rendered freestanding anyway.

Also, when a block isn't a standard Scratch block, it's assumed to be a list block.

No, that's the Scratch "error" color.

In addition, I don't think it supports dropdowns, booleans, or color-pickers yet.  I could be using the wrong syntax, though.

It supports dropdowns:
[set(var)to(value)]
[url]http://block.site90.net/[set(var)to(value)][/url]

Yes, but the trouble is that the Block Library is for blocks not already in Scratch, so the problem is that all arguments in these new blocks would appear as strings and all the blocks would turn red.

Offline

 

Board footer