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

#51 2011-12-30 14:15:05

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

How Do I Add Scratch Projects And Youtube And Images Now?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#52 2011-12-30 14:16:39

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

[scratch=flash]Servine/2246187[/scratch]
hello.com
[youtube]1G4isv_Fylg[/youtube]
http://www.theirishshop.co.uk/images/Rasberry%20Jam.jpg

Last edited by Servine (2011-12-30 14:24:35)


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#53 2011-12-30 14:25:25

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

I'm gonna make a website called rook101antidote


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#54 2011-12-30 14:26:19

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Adding the images back in to your scratch forum experience

I added a youtube video in my sig.  big_smile


◕‿◕

Offline

 

#55 2011-12-30 14:52:16

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Adding the images back in to your scratch forum experience

java test [scratch=java]jonzo/2096633[/scratch=java]

Modified version has java player  big_smile


◕‿◕

Offline

 

#56 2011-12-30 14:55:00

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Adding the images back in to your scratch forum experience

can somebody debug this script?

Code:

// ==UserScript==
// @name           enable images on scratch forum and more!
// @namespace      rookwood101,Cocolover,LS97,flashgocrazy
// @description    enable images on scratch forum, added youtube and projects
// @include        http://scratch.mit.edu/forums/viewtopic.php*
// ==/UserScript==
if (document.URL.indexOf('http://scratch.mit.edu/forums/viewtopic.php') != -1) {
    var bodyElement = document.getElementsByTagName("body")[0];
    var bodyInner = bodyElement.innerHTML;
    var addImages = bodyInner.replace(/\[img\]/ig, '<img src="').replace(/\[\/img\]/ig, '">');
    var addYoutube = addImages.replace(/\[youtube\]/ig, '<iframe width="420" height="315" src="http://www.youtube.com/embed/').replace(/\[\/youtube\]/ig, '"frameborder="0" allowfullscreen></iframe>');
    var addProjects = addYoutube.replace(/\[scratch=flash\]/ig, '<object width="483" height="387" type="application/x-shockwave-flash" data="http://scratch.mit.edu/static/misc/PlayerOnly.swf"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="flashvars" value="project=http://scratch.mit.edu/static/projects/').replace(/\[\/scratch\]/ig, '.sb?version=1"></object>');
    var addJava = addYoutube.replace(/\[scratch=java\]/ig, '<applet id='ProjectApplet' style='display:block' code='ScratchApplet' codebase='http://scratch.mit.edu/static/misc' archive='ScratchApplet.jar' height='387' width='482'><param name='project' value='../../static/projects/').replace(/\[\/scratch=java\]/ig, '.sb"></applet>');    
document.getElementsByTagName("body")[0].innerHTML = addJava;
}

Last edited by flashgocrazy (2011-12-30 19:21:51)


◕‿◕

Offline

 

#57 2011-12-30 14:56:58

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

It doesn't work. When I click the download link, all it does is bring me to the script  hmm


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#58 2011-12-30 15:03:05

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Adding the images back in to your scratch forum experience

[youtube]wbxuSwjk13U[/youtube]


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#59 2011-12-30 15:33:56

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

Nexstudent wrote:

It doesn't work. When I click the download link, all it does is bring me to the script  hmm

What browser are you using?


http://i.imgur.com/zeIZW.png

Offline

 

#60 2011-12-30 15:58:24

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

Could I call this "antidote"?

http://dl.dropbox.com/u/41073707/get_antidote.png
^its for that


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#61 2011-12-30 16:20:11

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

http://dl.dropbox.com/u/41073707/get_antidote.png

^
|_ Could we use that to promote it. Try clicking it!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#62 2011-12-30 16:48:34

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

Servine wrote:

http://dl.dropbox.com/u/41073707/get_antidote.png

^
|_ Could we use that to promote it. Try clicking it!

On the website for the safari tutorial, link them to the other website first, then the download link.

Also, for internet explorer, you didn't link to the page.

Finally, I dislike the fact that you have used a flash website, but I appreciate the fact that you did it quickly, and might not have the time to make a non-flash site.

I like the idea though  smile


http://i.imgur.com/zeIZW.png

Offline

 

#63 2011-12-30 17:23:16

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

http://yourimg.in/m/044tf21.png
How about that? I prefer it  smile

Last edited by rookwood101 (2011-12-30 17:39:03)


http://i.imgur.com/zeIZW.png

Offline

 

#64 2011-12-30 19:22:33

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Adding the images back in to your scratch forum experience

rookwood101 wrote:

http://yourimg.in/m/044tf21.png
How about that? I prefer it  smile

have you checked out this  post?


◕‿◕

Offline

 

#65 2011-12-30 21:50:57

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

rookwood101 wrote:

Nexstudent wrote:

It doesn't work. When I click the download link, all it does is bring me to the script  hmm

What browser are you using?

Firefox


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#66 2011-12-31 05:31:13

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

Nexstudent wrote:

rookwood101 wrote:

Nexstudent wrote:

It doesn't work. When I click the download link, all it does is bring me to the script  hmm

What browser are you using?

Firefox

as long as you have installed the greasemonkey addon, it will work.


http://i.imgur.com/zeIZW.png

Offline

 

#67 2011-12-31 06:35:32

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

K, rookwood101.

I'll fix the website later.

I changed my sig too.

Maybe, we could...

@View SWF's
@Use HTML Code
@Use JavaScript


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#68 2011-12-31 07:08:46

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

Servine wrote:

K, rookwood101.

I'll fix the website later.

I changed my sig too.

Maybe, we could...

@View SWF's
@Use HTML Code
@Use JavaScript

1. possibly
2. definately not (unless we use different bb code tags)
3. not sure.


http://i.imgur.com/zeIZW.png

Offline

 

#69 2011-12-31 07:58:13

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Adding the images back in to your scratch forum experience

things I think we should work on in the near future: Making it not show in code boxes. Making it so that people can't add extra things into the tags, compromising security.
making it intelligent: being able to check whether it is a complete tag.


http://i.imgur.com/zeIZW.png

Offline

 

#70 2011-12-31 10:40:51

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

Re: Adding the images back in to your scratch forum experience

Not sure if anyone has said this before, but the _meow_ doesn't work.

And that also means that cuss words aren't filtered.  yikes


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

Offline

 

#71 2011-12-31 10:43:29

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

Re: Adding the images back in to your scratch forum experience

henley wrote:

Not sure if anyone has said this before, but the _meow_ doesn't work.

And that also means that cuss words aren't filtered.  yikes

No, because _meow_ is an image. Cuss words aren't.

Offline

 

#72 2011-12-31 12:38:53

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

Re: Adding the images back in to your scratch forum experience

ok, got the resizing:

Code:

// ==UserScript==
// @name           enable images on scratch forum and more!
// @namespace      rookwood101,Cocolover,LS97,flashgocrazy,roijac
// @description    enable images on scratch forum, added youtube and projects
// @include        http://scratch.mit.edu/forums/viewtopic.php*
// ==/UserScript==
if (document.URL.indexOf('http://scratch.mit.edu/forums/viewtopic.php') != -1) {
    var bodyElement = document.getElementsByTagName("body")[0];
    var bodyInner = bodyElement.innerHTML;
    var addImages = bodyInner.replace(/\[img\]/ig, '<img src="').replace(/\[\/img\]/ig, '" style="max-width: 510px;">');
    var addYoutube = addImages.replace(/\[youtube\]/ig, '<iframe width="420" height="315" src="http://www.youtube.com/embed/').replace(/\[\/youtube\]/ig, '"frameborder="0" allowfullscreen></iframe>');
    var addProjects = addYoutube.replace(/\[scratch=flash\]/ig, '<object width="483" height="387" type="application/x-shockwave-flash" data="http://scratch.mit.edu/static/misc/PlayerOnly.swf"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="flashvars" value="project=http://scratch.mit.edu/static/projects/').replace(/\[\/scratch\]/ig, '.sb?version=1"></object>');
    document.getElementsByTagName("body")[0].innerHTML = addProjects;
}

works on firefox nightly  smile

test:
http://www.green-solar-power.info/images/sky%20banner.jpg

Offline

 

#73 2011-12-31 19:37:31

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

Re: Adding the images back in to your scratch forum experience

ProgrammingFreak wrote:

henley wrote:

Not sure if anyone has said this before, but the _meow_ doesn't work.

And that also means that cuss words aren't filtered.  yikes

No, because _meow_ is an image. Cuss words aren't.

But the Scratch team is uses the same filtering system. It treats _meow_ like a cuss word, but instead of replacing it with an asterisk, they replace it with the image.


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

Offline

 

#74 2011-12-31 20:08:34

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

henley wrote:

ProgrammingFreak wrote:

henley wrote:

Not sure if anyone has said this before, but the _meow_ doesn't work.

And that also means that cuss words aren't filtered.  yikes

No, because _meow_ is an image. Cuss words aren't.

But the Scratch team is uses the same filtering system. It treats _meow_ like a cuss word, but instead of replacing it with an asterisk, they replace it with the image.

No, it's just a custom smiley.


Yawn.

Offline

 

#75 2011-12-31 21:22:17

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Adding the images back in to your scratch forum experience

henley wrote:

ProgrammingFreak wrote:

henley wrote:

Not sure if anyone has said this before, but the _meow_ doesn't work.

And that also means that cuss words aren't filtered.  yikes

No, because _meow_ is an image. Cuss words aren't.

But the Scratch team is uses the same filtering system. It treats _meow_ like a cuss word, but instead of replacing it with an asterisk, they replace it with the image.

Actually, it uses the cuss-word system to replace _meow_ with [img](stuff)[/img]


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

Board footer