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

#1 2013-04-28 13:13:39

lightning3105
New Scratcher
Registered: 2012-11-25
Posts: 2

Hosting on Dropbox?

I would like to embed my scratch game on my own website. Unfortunately, the websites host (wix) has no file hosting capabilities. Would it be possible to host the game on dropbox and then have it embedded in the website? If so, how?
Thanks for reading  smile

Offline

 

#2 2013-04-28 13:35:35

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Hosting on Dropbox?

Yeah, it should be possible.  Just make sure to host the file in the public folder, and use the "Copy Public Link" thing, not their new sharing link system.  Once the file is hosted, all you have to do is, using the blank html widget, use the embed code for any scratch project (below), and paste in the direct link to your project on Dropbox.

Code:

<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/bash90/3298553.sb'></applet> <a href='[Paste link Here]'>Learn more about this project</a>

http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&amp;link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&amp;link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#3 2013-04-28 16:48:45

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Hosting on Dropbox?

This would seem to work better, because it refrences the actual project in the applet part rather in just the link part. Still, try both.

Code:

<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='[dropbox link here]'></applet>

Who would win, SOPA or PIPA?

Offline

 

#4 2013-04-29 11:35:49

lightning3105
New Scratcher
Registered: 2012-11-25
Posts: 2

Re: Hosting on Dropbox?

thanks for your help, but the loading bar stays unloaded for ever. I tried the normal dropbox link (https://www.dropbox.com/s/xl5wie4qsyj9vie/test.sb) and the direct download link (https://dl.dropboxusercontent.com/s/xl5wie4qsyj9vie/test.sb?token_hash=AAHKimoACB9pGVG2fm75coWlVvw9MClEE3u6IOduwpe-pA&dl=1) but neither worked  sad

Offline

 

#5 2013-04-29 13:33:47

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: Hosting on Dropbox?

like this <iframe src=https://dl.dropbox.com/whateveryourlinkis width="youchoose" height="youchoose"> PS (If it doesn't have custom html use weebly or webs instead


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#6 2013-04-29 17:41:03

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Hosting on Dropbox?

MrFlash67 wrote:

This would seem to work better, because it refrences the actual project in the applet part rather in just the link part. Still, try both.

Code:

<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='[dropbox link here]'></applet>

Oh, yeah, that's what I meant to do...  tongue   Use this one.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&amp;link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&amp;link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#7 2013-04-29 17:45:53

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Hosting on Dropbox?

lightning3105 wrote:

thanks for your help, but the loading bar stays unloaded for ever. I tried the normal dropbox link (https://www.dropbox.com/s/xl5wie4qsyj9vie/test.sb) and the direct download link (https://dl.dropboxusercontent.com/s/xl5wie4qsyj9vie/test.sb?token_hash=AAHKimoACB9pGVG2fm75coWlVvw9MClEE3u6IOduwpe-pA&dl=1) but neither worked  sad

OK, I think I figured out what you're doing wrong...
First, check and make sure that the file is in the Public folder on your Dropbox.
Then all you have to do is select the file on dropbox.com, and click the "Copy Public Link" Button at the top, and paste that link into the code.
The link should be in a format similar to this:
https://dl.dropboxusercontent.com/u/12506914/test.sb
Hopefully that works for you!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&amp;link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&amp;link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

Board footer