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

#1 2010-10-21 15:33:55

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Scratch projects on google sites

I made a site, https://sites.google.com/site/16skittlesproductions/
and want to add my projects to it (exclusives, hosted right on site) I downloaded the files to the filemap, and was wondering how to change the code. Thank you!  smile

Last edited by 16Skittles (2010-10-21 15:36:33)


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#2 2010-10-21 16:50:48

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

bump


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#3 2010-10-21 17:31:44

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Scratch projects on google sites

in a menu there should be an option that will let you add the html code, you can copy this from and embed option on your projects page. I know this is not much help but i dont use google site also, hope that helps you a little... 

This was only to embed, not exclusive.

Use scratch applet and upload it to your files, go here: http://scratch.mit.edu/forums/viewtopic.php?id=191 
for more

Last edited by dav09 (2010-10-21 17:33:04)

Offline

 

#4 2010-10-21 17:46:30

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

dav09 wrote:

in a menu there should be an option that will let you add the html code, you can copy this from and embed option on your projects page. I know this is not much help but i dont use google site also, hope that helps you a little... 

This was only to embed, not exclusive.

Use scratch applet and upload it to your files, go here: http://scratch.mit.edu/forums/viewtopic.php?id=191 
for more

I saw that, I wanted to know how to change that code.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#5 2010-10-21 18:15:30

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Scratch projects on google sites

if you know html your will be able to but it would be very very hard.

Offline

 

#6 2010-10-22 17:20:40

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

okay, I think I'm on to something.

Code:

<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="http://scratch.mit.edu/static/misc/ScratchApplet.jar" height="387" width="482">
<param name="project" value="http://scratch.mit.edu/projects/16skittles/1235943/download">
</applet>
</body>
</html>

And it pulls up the scratch window we all know and love, but it doesn't load.
Also, in sites, it says it doesn't accept the iframe tag...  sad  please help bypass


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#7 2010-10-22 18:16:24

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

I created a simple Google Gadgets wrapper that lets you embed the Scratch applet. First, go to the project you want to embed and get the embed code under 'Link to this project' (choose "as an applet"). Find the <param name="..." value="..."/> tag and copy the URL in 'value' (without the quotes). It should look like this:

Code:

../../static/projects/fullmoon/1075510.sb

This is your partial project URL.

Now on your Google Site page, select Insert > More Gadgets... and choose "Add Gadget By URL". When it asks for the URL, give it this:

Code:

http://gist.github.com/raw/641466/59118e2fb7d2af40fd6e849bb84b3f32cf29af17/Scratchlet

Click OK. You should see a "project URL" field. Enter the partial project URL from earlier. Set the width and height to 480x360 (try 370 maybe) and click OK!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#8 2010-10-22 18:32:28

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

thank you! you'll see credit under the app on the site!
but making it link to a file on my site instead of scratch's?


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#9 2010-10-22 18:33:13

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

16Skittles wrote:

thank you! you'll see credit under the app on the site!
but making it link to a file on my site instead of scratch's?

I think you can just put in any URL of a .sb file, but I'm not sure...


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#10 2010-10-22 18:37:59

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

including the whole url? the scratch one used ../../ stuff in the url.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#11 2010-10-22 20:15:26

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

16Skittles wrote:

including the whole url? the scratch one used ../../ stuff in the url.

The whole thing, starting with http://. Just try it and tell me if it works.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#12 2010-10-23 10:17:49

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

okay.
Edit: It didn't work.
here's the URL for the download.
https://sites.google.com/site/16skittlesproductions/filespace/Rescue_At_Sea_V_B.1.sb?attredirects=0&d=1

Last edited by 16Skittles (2010-10-23 10:29:47)


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#13 2010-10-23 17:09:54

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

If you can find a current version of ScratchApplet.jar (v38) and soundbank.gm I can help you.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#14 2010-10-23 17:21:29

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

in the filespace section of the site. I just added it a little while ago.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#15 2010-10-23 19:28:04

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

16Skittles wrote:

in the filespace section of the site. I just added it a little while ago.

Okay, I'll get back to you in a while. I just need to change a few things.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#16 2010-10-23 19:44:44

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Scratch projects on google sites

thank you!


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#17 2010-10-23 23:48:30

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch projects on google sites

Try using this for your gadget url:

Code:

http://gist.github.com/raw/641466/59118e2fb7d2af40fd6e849bb84b3f32cf29af17/Scratchlet

There's a new parameter, codebase, that corresponds to the codebase attribute of the <applet> tag in the HTML. This must point to a directory where ScratchApplet.jar is. The URL link should then point to a .sb file relative to the codebase URL. I can't really verify whether this works, but do try it out!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer