[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...
[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.
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)
Offline
Found one I think, the % messes up the block.
(When you get on you be like "I DIDN'T MEAN COMPLETELY SHOW HOW LITTLE THIS WORKS!"
)
Yeah the % makes an extra text insert.
EDIT
Another thing:
Actual block was [Say [!(glitch?)!]]
Last edited by Pecola1 (2011-11-22 15:35:23)
Offline
Pecola1 wrote:
http://block.site90.net/%5Bset%20size%20to(100)%25%5D
Found one I think, the % messes up the block.
![]()
(When you get on you be like "I DIDN'T MEAN COMPLETELY SHOW HOW LITTLE THIS WORKS!")
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.
Offline
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.
Offline
Last edited by ProgrammingPro01 (2011-11-22 17:01:42)


Offline
waveOSBeta wrote:
Just tried this in RAGE
It failed in my mod.![]()
Please don't quote the topic post...
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)
Offline
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
Offline
ROSMan wrote:
cool
Offline
Could it somehow work with the self updating links?
Last edited by hello12345678910 (2011-11-25 20:45:35)
Offline
nXIII wrote:
MathWizz wrote:
Testing...
http://block.site90.net/%5Bgo%20to%20x% … D%5D%7D%5D
Oops, I broke it. http://scratch.mit.edu/forums/img/smilies/roll.pngRequest-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.![]()
Whatses inz the worldses? how doses you breakses an internetz? XD
Offline
Ah, so this is what you've been doing instead of save/load!
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.
)
Offline
Yeah, they should use this instead of the current forum blocks. We could do something like:
[scratch blocks]
[say[Now%20counting.]]
[set(counter)to(0)]
[forever{
[change(counter)by(0)]
[say%20[((counter)]]
}]
[/scratch blocks]
Or something like that.
Last edited by Magnie (2011-12-07 10:15:08)
Offline
Testing 123:
Edit: Wow! That changeset is awesome!!!
Last edited by scratchisthebest (2011-12-07 10:29:46)





Offline
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?
Offline
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.
Offline
hello12345678910 wrote:
BYOB stands for Build Your Own Blocks.
So you’re going to build my own blocks on the forums?
-Sincerely,
The Grammar Police
Offline
http://block.site90.net/%5BHello_there! … s_work?%5D
EDIT: It isn't working for me.
Last edited by rdococ (2012-01-02 12:00:02)
Offline
I have Antidote, so it should work...
Offline
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)
Offline
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)
Offline
nXIII wrote:
ZeroLuck wrote:
nXIII wrote:
It's an antidote glitch, then. It works fine with the Scratch Forums [url]tagThis "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.
Offline