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

#1 2011-11-06 18:43:31

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

Forum Blocks: Scratch Blocks in Your Forum Posts

Forum Blocks: Include Scratch blocks in your forum posts!

Forum Blocks allows you to post Scratch blocks in the forums with near-pixel-perfect rendering, with a simple and easy-to-learn syntax. No screenshots necessary!

Using Forum Blocks
Just include this snippet in your forum post:

Code:

[img]http://block.site90.net/<blocks>[/img]

Replace <blocks> with the blocks you'd like to include

Exporting from Scratch
Here is a changeset which adds an "export to forums" menu item to blocks, which copies the code for your stack into the clipboard. See here for detailed instructions on installing changesets

Syntax
A block consists of arguments and labels between brackets ( '[' and ']' ). Labels are the parts of blocks that show up in white text directly on the block (like 'forever' in the forever block). For example, the 'clear' block looks like this:

    [clear]
       ▼
    http://block.site90.net/[clear]

Put a block's arguments between parentheses, for example:

    [wait(3)secs]
           ▼
    http://block.site90.net/[wait(3)secs]

(note: spacing is optional between labels and arguments, but required between words in a label, like "forever if")
To make c- or e-shaped blocks, put stacks in braces ( '{' and '}' ). For example:

    [forever{[clear]}]
           ▼
    http://block.site90.net/[forever{[clear]}]

To insert a variable block, just use [(<variable name>)], for example:

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

Note: Technical Limitations
Due to technical limitations, spaces, plus signs, hash signs (pound/number signs) and colons cannot be inserted directly into urls. Use an underscore or %20 if you need to insert a space. Use a ~ in place of all + , a %23 in place of all # , and a %3A in place of all :

Complex Example
Range 1, from the Scratch Wiki, with Forum Blocks:

[set(Iterator)to(0)]
[set(Highest)to(0)]
[repeat[length_of(List_of_Numbers)]{
    [change(Iterator)by(1)]
    [if[[item[(Iterator)]of(List_of_Numbers)]>[(Highest)]]{
        [set(Highest)to[item[(Iterator)]of(List_of_Numbers)]]
    }]
}]
      ▼
http://block.site90.net/[set(Iterator)to(0)][set(Highest)to(0)][repeat[length_of(List_of_Numbers)]{[change(Iterator)by(1)][if[[item[(Iterator)]of(List_of_Numbers)]&gt;[(Highest)]]{[set(Highest)to[item[(Iterator)]of(List_of_Numbers)]]}]}]

Source
You can view Forum Block's PHP source by visiting http://block.site90.net/block/source.php.

Coming Soon
- Hat blocks
- Mod support
- Highlighting blocks or arguments

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


nXIII

Offline

 

#2 2011-11-06 18:47:25

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Looks cool.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#3 2011-11-06 19:03:01

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

000webhost admin review D:


Posts: 20000 - Show all posts

Offline

 

#4 2011-11-06 19:03:46

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Sweet! This is awesome!! I’m glad you made this, because the other messy forum blocks ruined everything and where impossible to understand! One thing though, booleans show up round.

Test:

http://block.site90.net/&lt;[say[hello]for(2)secs]&gt;

Last edited by henley (2011-11-06 19:04:06)


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2011-11-06 19:32:52

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

henley wrote:

Sweet! This is awesome!! I’m glad you made this, because the other messy forum blocks ruined everything and where impossible to understand! One thing though, booleans show up round.

Test:

[url]http://block.site90.net/<[say[hello]for(2)secs]>[/url]

The parser interprets arguments and block types from the block specs; only actual boolean blocks have hexagonal shapes, for example:
[say[[(foo)=(bar)]and[(bar)=(baz)]]]
http://block.site90.net/[say[[(foo)=(bar)]and[(bar)=(baz)]]]

I did just notice, though, that =, <, and > had the wrong output type in my specs. Whoops!  wink

Last edited by nXIII (2011-11-06 20:06:14)


nXIII

Offline

 

#6 2011-11-06 19:39:40

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[clear]
http://block.site90.net/[move(10)steps]


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#7 2011-11-06 20:19:50

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Awesome idea!


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

 

#8 2011-11-06 20:25:34

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Pecola1 wrote:

Awesome idea!

Thanks!  smile  Any suggestions/requests?


nXIII

Offline

 

#9 2011-11-06 21:16:38

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[clear]


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#10 2011-11-06 21:21:23

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

Pecola1 wrote:

Awesome idea!

Thanks!  smile  Any suggestions/requests?

You should make BYOB blocks.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#11 2011-11-06 21:49:12

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Nice!


♫ 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

 

#12 2011-11-07 02:05:43

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/clear

Last edited by ssss (2011-11-08 04:40:45)


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

Offline

 

#13 2011-11-07 02:09:20

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

None are showing up...

Must be a 000webhost problem.


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

Offline

 

#14 2011-11-07 08:54:52

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

STILL not showing up...


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

Offline

 

#15 2011-11-07 09:52:51

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

MathWizz wrote:

STILL not showing up...

Offline

 

#16 2011-11-07 10:22:46

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII: To fix the Admin Review you need to send a Support Request about it to get it fixed.

Offline

 

#17 2011-11-07 10:24:10

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Mind posting the source in the topic post for right now?


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

Offline

 

#18 2011-11-07 10:54:19

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Magnie wrote:

nXIII: To fix the Admin Review you need to send a Support Request about it to get it fixed.

It's happening to everyone. I'm wondering if this is an automatic thing so that you have to ask them personally to get it unlocked!

Offline

 

#19 2011-11-07 13:16:39

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

LS97 wrote:

Magnie wrote:

nXIII: To fix the Admin Review you need to send a Support Request about it to get it fixed.

It's happening to everyone. I'm wondering if this is an automatic thing so that you have to ask them personally to get it unlocked!

It is automatic, but it goes away eventually. It takes longer if you have more files on the server. It's taken up to 3 days for me.


Posts: 20000 - Show all posts

Offline

 

#20 2011-11-07 14:42:50

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Sorry about the admin review, I think everything's OK again. I moved the block generator to the block/ directory, which is why the source link was broken.

Last edited by nXIII (2011-11-07 14:44:41)


nXIII

Offline

 

#21 2011-11-07 15:34:49

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

Sorry about the admin review, I think everything's OK again. I moved the block generator to the block/ directory, which is why the source link was broken.

No chance, nXIII, still reviewing.

Offline

 

#22 2011-11-07 15:38:25

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

LS97 wrote:

nXIII wrote:

Sorry about the admin review, I think everything's OK again. I moved the block generator to the block/ directory, which is why the source link was broken.

No chance, nXIII, still reviewing.

Odd... they must have a whitelist or something that lets me view the content even though they're still reviewing it. I guess we just have to wait until they finish reviewing it.

Last edited by nXIII (2011-11-07 15:40:31)


nXIII

Offline

 

#23 2011-11-07 16:30:16

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[set(Iterator)to(0)][set(Highest)to(0)][repeat[length_of(List_of_Numbers)]%7B[change(Iterator)by(1)][if[[item[(Iterator)]of(List_of_Numbers)]%3E[(Highest)]]%7B[set(Highest)to[item[(Iterator)]of(List_of_Numbers)]]%7D]%7D]

Awesomeness, nxiii!  big_smile

Last edited by ProgrammingFreak (2011-11-07 16:31:46)

Offline

 

#24 2011-11-07 16:49:18

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

LS97 wrote:

nXIII wrote:

Sorry about the admin review, I think everything's OK again. I moved the block generator to the block/ directory, which is why the source link was broken.

No chance, nXIII, still reviewing.

Odd... they must have a whitelist or something that lets me view the content even though they're still reviewing it. I guess we just have to wait until they finish reviewing it.

I think it's over now. Might have just been my computer's cache...

Great job as usual, nXIII! By the way, how come you're still on here? I thought you left a year ago.

Last edited by LS97 (2011-11-07 16:50:30)

Offline

 

#25 2011-11-07 16:56:17

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

All we need now is for someone to make an editor for this. Honestly, inserting that code into a one-line URL is quite tedious. Maybe a special text editor could suffice. The best would be of course a drag and drop interface which could possibly take ages.

Offline

 

Board footer