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

#426 2010-10-13 14:15:01

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

Taneb wrote:

I tried uploading a file to the viewer and got this:

Code:

<?php
if ($_FILES["file"]["size"] < 200000000) // size limit
  {
  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    }
  else
    {
    echo "Upload: " . $_FILES["file"]["name"] . "<br />";
    echo "Type: " . $_FILES["file"]["type"] . "<br />";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
    }
  }
else
  {
  echo "Invalid file";
  }
?>

What's going on?

LOL!!! SRR EPIC FAILED!!! Jk... That is php code and I don't know what he/she was trying to do with it but it doesn't work right now...

I think it needs <html><body> on one side and </body></html> on the other, but I'm no expert, I'm afraid.

Offline

 

#427 2010-10-13 14:17:14

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

Taneb wrote:

MathWizz wrote:

Taneb wrote:

I tried uploading a file to the viewer and got this:

Code:

<?php
if ($_FILES["file"]["size"] < 200000000) // size limit
  {
  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    }
  else
    {
    echo "Upload: " . $_FILES["file"]["name"] . "<br />";
    echo "Type: " . $_FILES["file"]["type"] . "<br />";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
    }
  }
else
  {
  echo "Invalid file";
  }
?>

What's going on?

LOL!!! SRR EPIC FAILED!!! Jk... That is php code and I don't know what he/she was trying to do with it but it doesn't work right now...

I think it needs <html><body> on one side and </body></html> on the other, but I'm no expert, I'm afraid.

Nah... You don't need those for php. the problem is that weebly doesn't support php.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#428 2010-10-13 14:23:15

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

ok MathWizz hows it going?


You can now reach me on Twitter @johnnydean1_

Offline

 

#429 2010-10-13 15:39:20

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

ok MathWizz hows it going?

http://scratchhtmlviewer.net23.net/


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#430 2010-10-13 15:40:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Its under review...


You can now reach me on Twitter @johnnydean1_

Offline

 

#431 2010-10-13 15:42:06

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Its under review...

Wadoya mean?


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#432 2010-10-13 15:43:01

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Try this


You can now reach me on Twitter @johnnydean1_

Offline

 

#433 2010-10-13 15:44:17

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

johnnydean1 wrote:

Its under review...

Wadoya mean?

The sites under review!


You can now reach me on Twitter @johnnydean1_

Offline

 

#434 2010-10-13 15:48:53

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

MathWizz wrote:

johnnydean1 wrote:

Its under review...

Wadoya mean?

The sites under review!

Oh, kk... I tried it on a different computer and it said that.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#435 2010-10-13 15:57:09

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Try this

hint...


You can now reach me on Twitter @johnnydean1_

Offline

 

#436 2010-10-13 16:51:54

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Lets make a new Scratch viewer!

pwiter wrote:

I made a dev site for this. www.htmltop.orangeserve.com
I'll try to make it up to date for us!
It's to keep us up to date on what your doing!

johnnydean1 email me and I'll tell you the admin username and password for it. p.s
It's not like the weebly site!


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

Offline

 

#437 2010-10-13 20:55:55

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

johnnydean1 wrote:

ok MathWizz hows it going?

http://scratchhtmlviewer.net23.net/

w00t! Reviewed!

EDIT: BTW: nXIII! I found the bits for the thumbnail.

Last edited by MathWizz (2010-10-13 20:59:04)


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#438 2010-10-14 02:49:10

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

Taneb wrote:

I tried uploading a file to the viewer and got this:

Code:

<?php
if ($_FILES["file"]["size"] < 200000000) // size limit
  {
  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    }
  else
    {
    echo "Upload: " . $_FILES["file"]["name"] . "<br />";
    echo "Type: " . $_FILES["file"]["type"] . "<br />";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
    }
  }
else
  {
  echo "Invalid file";
  }
?>

What's going on?

Yep, the PHP is in a .html document not a .php document that it should be in!  big_smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#439 2010-10-14 02:53:11

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

Right, it seems we are getting close to finishing decoding the .sb file!
Should some of us think about playing it with HTML5?
Could the php site be put on the weebly site in a iframe? Does weebly let you have iframes?


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#440 2010-10-14 06:58:00

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

Re: Lets make a new Scratch viewer!

Weebly lets you use custom HTML. If you know it well enough then you could make it. Although I don't know too much HTML, so I may be wrong about the ability to code an iFrame on it.


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

Offline

 

#441 2010-10-14 11:18:43

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

henley wrote:

Weebly lets you use custom HTML. If you know it well enough then you could make it. Although I don't know too much HTML, so I may be wrong about the ability to code an iFrame on it.

if it lets you use custom HTML then we could simply add an iframe to the viewer it's self using the simple <iframe></iframe> tags!  big_smile

EDIT: typo error  tongue

Last edited by Daffy22 (2010-10-14 11:19:52)


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#442 2010-10-14 12:34:06

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Dont use HTML5 as much as possible


You can now reach me on Twitter @johnnydean1_

Offline

 

#443 2010-10-14 12:36:57

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Oh and Pwiter scrap your site as I cant get it working...


You can now reach me on Twitter @johnnydean1_

Offline

 

#444 2010-10-14 16:03:24

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Oh and Pwiter scrap your site as I cant get it working...

If you guys need, I can help you guys make a website!  big_smile


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#445 2010-10-14 16:12:58

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

We dont so much need a wesite ATM but I will remeber that  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#446 2010-10-14 16:22:28

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

Re: Lets make a new Scratch viewer!

MathWizz wrote:

MathWizz wrote:

johnnydean1 wrote:

ok MathWizz hows it going?

http://scratchhtmlviewer.net23.net/

w00t! Reviewed!

EDIT: BTW: nXIII! I found the bits for the thumbnail.

Will you tell me?  tongue


nXIII

Offline

 

#447 2010-10-14 17:29:26

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

nXIII wrote:

MathWizz wrote:

w00t! Reviewed!

EDIT: BTW: nXIII! I found the bits for the thumbnail.

Will you tell me?  tongue

Remember that byte array? That was it. I know it doesn't have 160 x 120 items but that's that same amount that Scratch reads.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#448 2010-10-14 18:28:22

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

Re: Lets make a new Scratch viewer!

MathWizz wrote:

nXIII wrote:

MathWizz wrote:


w00t! Reviewed!

EDIT: BTW: nXIII! I found the bits for the thumbnail.

Will you tell me?  tongue

Remember that byte array? That was it. I know it doesn't have 160 x 120 items but that's that same amount that Scratch reads.

That's really weird.... hm.


nXIII

Offline

 

#449 2010-10-15 02:49:01

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

BTW: I can make a proper website for free and without any 'spoon fed' templates made by webs and weebly. I can make it on the host mathwiz is using and make my own CSS and .PHP docs!  big_smile  (just let me know)


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#450 2010-10-15 05:09:35

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

If we let MathWizz finish with the decoding then we can make a website then!


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer