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

#76 2011-11-22 15:22:47

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

[img]http://block.site90.net/%5Brepeat(11)%7B%5Bset(11)to(11)%5D%5Bswitch%20to%20costume(costume11)%5D%5Bset%20size%20to(11.11)%25%5D%5Bset%20stretch%20to(11)%25%5D%5Bpoint%20in%20direction(11.11)%5D%5Bgo%20to%20x%3A(11.11)y%3A(11.11)%5D%5Bsay(This%20sprite%20is%20at%20
11.11%20x%2011.11%20y%2011.11%20direction!)%5D%5Bset%20instrument%20to(11)%5D%5Bplay%20note(11)for(11.11)beats%5D%5Bset(color)effect%20to(11)%5D%5Bset(fisheye)effect%20to(11)%5D%5Bset(whirl)effect%20to(11)%5D%5Bset(pixelate)effect%20to(11)%5D%5Bset(mosaic)effect%20to(11)%5D%5Bset(brightness)effect%20to(11)%5D%5Bset(ghost)effect%20to(11)%5D%5Bset(blur)effect%20to(11)%5D%5Bset(saturation)effect%20to(11)%5D%5Bset(pointilize)effect%20to(11)%5D%5Bwait(11.11)secs%5D%7D%5D%5Bset(water%20ripple)effect%20to(11)%5D[/img]
Theres a glitch there...
Not sure what...

Code:

[img]http://block.site90.net/%5Brepeat(11)%7B%5Bset(11)to(11)%5D%5Bswitch%20to%20costume(costume11)%5D%5Bset%20size%20to(11.11)%25%5D%5Bset%20stretch%20to(11)%25%5D%5Bpoint%20in%20direction(11.11)%5D%5Bgo%20to%20x%3A(11.11)y%3A(11.11)%5D%5Bsay(This%20sprite%20is%20at%20
11.11%20x%2011.11%20y%2011.11%20direction!)%5D%5Bset%20instrument%20to(11)%5D%5Bplay%20note(11)for(11.11)beats%5D%5Bset(color)effect%20to(11)%5D%5Bset(fisheye)effect%20to(11)%5D%5Bset(whirl)effect%20to(11)%5D%5Bset(pixelate)effect%20to(11)%5D%5Bset(mosaic)effect%20to(11)%5D%5Bset(brightness)effect%20to(11)%5D%5Bset(ghost)effect%20to(11)%5D%5Bset(blur)effect%20to(11)%5D%5Bset(saturation)effect%20to(11)%5D%5Bset(pointilize)effect%20to(11)%5D%5Bwait(11.11)secs%5D%7D%5D%5Bset(water%20ripple)effect%20to(11)%5D[/img]

Looks like there's a newline there but idk why and when I took it off it showed the error picture.

hmm
EDIT

Its cuz its too long duh. XD
Silly me.
Maybe make it so if its too long it will automatically split it up?

Last edited by Pecola1 (2011-11-22 16:04:35)


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

 

#77 2011-11-22 15:27:55

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/%5Bset%20size%20to(100)%25%5D
Found one I think, the % messes up the block.
smile
(When you get on you be like "I DIDN'T MEAN COMPLETELY SHOW HOW LITTLE THIS WORKS!"  lol )

http://block.site90.net/%5Bset%20stretch%20to(100)%25%5D
Yeah the % makes an extra text insert.

EDIT
Another thing:
http://block.site90.net/%5Bsay(!(glitch%3F)!)%5D
Actual block was [Say [!(glitch?)!]]

Last edited by Pecola1 (2011-11-22 15:35:23)


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

 

#78 2011-11-22 16:04:59

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Pecola1 wrote:

http://block.site90.net/%5Bset%20size%20to(100)%25%5D
Found one I think, the % messes up the block.
smile
(When you get on you be like "I DIDN'T MEAN COMPLETELY SHOW HOW LITTLE THIS WORKS!"  lol )

http://block.site90.net/%5Bset%20stretc … 100)%25%5D
Yeah the % makes an extra text insert.

EDIT
Another thing:
http://block.site90.net/%5Bsay(!(glitch%3F)!)%5D
Actual block was [Say [!(glitch?)!]]

Yeah, the % does mess it up.... That's a PHP-side error, though. The !(glitch?)! thing is because the PHP parses the parens as text inputs.


nXIII

Offline

 

#79 2011-11-22 16:50:45

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

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:

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

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]
       ▼
    [url]http://block.site90.net/[clear][/url]

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

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

(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]}]
           ▼
    [url]http://block.site90.net/[forever{[clear]}][/url]

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

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

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)]]
    }]
}]
      ▼
[url]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)]>[(Highest)]]{[set(Highest)to[item[(Iterator)]of(List_of_Numbers)]]}]}][/url]

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

Just tried this in RAGE
It failed in my mod.  sad


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#80 2011-11-22 16:53:09

FallenIce
Scratcher
Registered: 2011-10-14
Posts: 100+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

awesome cool


http://i.imgur.com/Yc7aC.gif

Offline

 

#81 2011-11-22 17:00:52

ProgrammingPro01
Scratcher
Registered: 2011-07-30
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/&lt;[forever{[say(PP01_is_da_bom)]}]&gt;

Last edited by ProgrammingPro01 (2011-11-22 17:01:42)


Bye 1.4!
http://www.reactiongifs.com/wp-content/uploads/2013/04/sobbing.gifhttp://25.media.tumblr.com/tumblr_mbfh6bIamQ1qky11ho1_500.png

Offline

 

#82 2011-11-22 17:16:14

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

waveOSBeta wrote:

Just tried this in RAGE
It failed in my mod.  sad

Please don't quote the topic post...  hmm
It's not supposed to work in mods because it infers block types and argument types from built-in blockSpecs (currently only the Scratch ones)


nXIII

Offline

 

#83 2011-11-22 17:39:39

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

ProgrammingPro01 wrote:

[url]http://block.site90.net/<[forever{[say(PP01_is_da_bom)]}]>[/url]

O.O
I KNEW YOU WERE AN UNDERCOVER CREEPER FROM THE START.

Also, yeah, Ik that the say glitch is the PHP, thats how i thought up how to glitch it. XD


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

 

#84 2011-11-24 12:31:39

ROSMan
Scratcher
Registered: 2011-04-29
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

cool

Last edited by ROSMan (2011-11-24 12:32:37)


GENERATION 33: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

#85 2011-11-24 13:14:58

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

ROSMan wrote:

cool

http://block.site90.net/[say(This%20is%20cool!)]
wink


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

 

#86 2011-11-25 20:43:43

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

http://block.site90.net/[wow_so_it_looks_like_i_can_BYOB_on_the_forums_XD][im_totally_gonna_do_this_so_much_now!

Could it somehow work with the self updating links?

Last edited by hello12345678910 (2011-11-25 20:45:35)


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#87 2011-11-25 20:50:01

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

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

Whatses inz the worldses? how doses you breakses an internetz? XD


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#88 2011-12-07 00:42:45

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Ah, so this is what you've been doing instead of save/load!  tongue

Seriously, this is very cool.  They should just build it into the forum code.

Of course you're going to have to rewrite your export-to-forum feature in Actionscript and in Javascript...  And invent a notation to make input types explicit,

(Make a better mousetrap and the world will beat a path to your door to ask for more features in it.  smile )


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#89 2011-12-07 10:09:46

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Yeah, they should use this instead of the current forum blocks. We could do something like:

Code:

[scratch blocks]
[say[Now%20counting.]]
[set(counter)to(0)]
[forever{
[change(counter)by(0)]
[say%20[((counter)]]
}]
[/scratch blocks]

http://block.site90.net/[say[Now%20counting.]][set(counter)to(0)][forever{[change(counter)by(0)][say%20[((counter)]]}]
Or something like that.

Last edited by Magnie (2011-12-07 10:15:08)

Offline

 

#90 2011-12-07 10:29:20

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

Testing 123:
http://block.site90.net/%5Brepeat(10)%7B%5Bmove(10)steps%5D%7D%5D

Edit: Wow! That changeset is awesome!!!

Last edited by scratchisthebest (2011-12-07 10:29:46)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#91 2011-12-15 15:14:43

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

This is cool. Make a suggestion that they use it for the forums!

nXIII wrote:

It's not supposed to work in mods because it infers block types and argument types from built-in blockSpecs (currently only the Scratch ones)

So for BYOB to work properly, you'd need some way of encoding the blockSpecs; perhaps as a paramater to the URL, or as part of the syntax, before the blocks?


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#92 2011-12-15 15:23:39

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

blob8108 wrote:

So for BYOB to work properly, you'd need some way of encoding the blockSpecs; perhaps as a paramater to the URL, or as part of the syntax, before the blocks?

Yeah, maybe. One would also need to store the color.


nXIII

Offline

 

#93 2011-12-15 15:39:15

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

hello12345678910 wrote:

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

BYOB stands for Build Your Own Blocks.

So you’re going to build my own blocks on the forums?  lol

-Sincerely,
    The Grammar Police


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

Offline

 

#95 2012-01-02 11:59:48

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

rdococ wrote:

[url]http://block.site90.net/[Hello_there!_How_does_this_work?][/url]

EDIT: It isn't working for me.

It uses the img tag, so it doesn't work right now.


nXIII

Offline

 

#97 2012-01-02 12:01:32

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

rdococ wrote:

I have Antidote, so it should work...

It's an antidote glitch, then. It works fine with the Scratch Forums [img] tag


nXIII

Offline

 

#98 2012-01-02 12:04:10

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

rdococ wrote:

I have Antidote, so it should work...

It's an antidote glitch, then. It works fine with the Scratch Forums [url]tag

This "antidote" don't allow some letters in the [img] tag.
(because of cross site scripting)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#99 2012-01-02 12:05:20

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

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

ZeroLuck wrote:

nXIII wrote:

rdococ wrote:

I have Antidote, so it should work...

It's an antidote glitch, then. It works fine with the Scratch Forums [url]tag

This "antidote" don't allow some letters in the [url]tag.
(because of cross site scripting)

What's wrong with using entities? You can just .replace all the ", <, >, and & with their entities.

Last edited by nXIII (2012-01-02 12:05:45)


nXIII

Offline

 

#100 2012-01-02 12:09:30

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Forum Blocks: Scratch Blocks in Your Forum Posts

nXIII wrote:

ZeroLuck wrote:

nXIII wrote:


It's an antidote glitch, then. It works fine with the Scratch Forums [url]tag

This "antidote" don't allow some letters in the [url]tag.
(because of cross site scripting)

What's wrong with using entities? You can just .replace all the ", <, >, and & with their entities.

It's the problem of rookwood101's filter... I think.


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

Board footer