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

#51 2010-12-21 12:29:15

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

liking the form update. Scratch block>>step 5 has an error though, the first radio is on the same line as the h4 text.

also, Panther block> catagory and download URL are on the same line for some reason! Both need <br /> tags.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#52 2010-12-21 12:30:06

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

NOOOOO! GOD.

I SAID WEDNESDAY, IF YOU USE THE DB AND STUFF NOW IT'S GONNA BE TOO HARD TO CONVERT OVER. DO YOU GUYS EVEN LISTEN TO ME?

sad  I'm very dissapointed with you.


lol

But really. Wednesday.


Hai.

Offline

 

#53 2010-12-21 12:33:30

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

Re: Welcome to your local block library! - Website development thread.

fg123 wrote:

NOOOOO! GOD.

I SAID WEDNESDAY, IF YOU USE THE DB AND STUFF NOW IT'S GONNA BE TOO HARD TO CONVERT OVER. DO YOU GUYS EVEN LISTEN TO ME?

sad  I'm very dissapointed with you.


lol

But really. Wednesday.

I didn't do anything.  roll


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

Offline

 

#54 2010-12-21 12:35:04

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

Re: Welcome to your local block library! - Website development thread.

okay Sparks. I'll change those images now  smile


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

Offline

 

#55 2010-12-21 12:42:45

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Right. Sorry...

I anticipate many regular library contributors requesting to be moderators for the site - so before I go, here's a FINAL list of people who will be allowed moderator privilages if they wish to take them up.

fg123
MathWizz
Sparks
Magnie
Daffy22
ProgrammingFreak
meowmeow55

(if I accidentally missed someone, this is basically a list of the people working on the site. I think with 7 people working on it, we've got enough, so lets make that the final list  smile  )

Last edited by sparks (2010-12-21 12:43:03)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#56 2010-12-21 12:45:46

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

Re: Welcome to your local block library! - Website development thread.

sparks wrote:

liking the form update. Scratch block>>step 5 has an error though, the first radio is on the same line as the h4 text.

Same thing with the BYOB and Panther forms, but I see the Scratch form has been fixed  big_smile


Yawn.

Offline

 

#57 2010-12-21 12:45:56

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

Re: Welcome to your local block library! - Website development thread.

sparks wrote:

Right. Sorry...

I anticipate many regular library contributors requesting to be moderators for the site - so before I go, here's a FINAL list of people who will be allowed moderator privilages if they wish to take them up.

fg123
MathWizz
Sparks
Magnie
Daffy22
ProgrammingFreak
meowmeow55

(if I accidentally missed someone, this is basically a list of the people working on the site. I think with 7 people working on it, we've got enough, so lets make that the final list  smile  )

right ok  big_smile
I'm currently adjusting the forms so it fits in with the websites house style and going to add some images  smile


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

Offline

 

#58 2010-12-21 12:50:40

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

Re: Welcome to your local block library! - Website development thread.

Daffy22 wrote:

sparks wrote:

Right. Sorry...

I anticipate many regular library contributors requesting to be moderators for the site - so before I go, here's a FINAL list of people who will be allowed moderator privilages if they wish to take them up.

fg123
MathWizz
Sparks
Magnie
Daffy22
ProgrammingFreak
meowmeow55

(if I accidentally missed someone, this is basically a list of the people working on the site. I think with 7 people working on it, we've got enough, so lets make that the final list  smile  )

right ok  big_smile
I'm currently adjusting the forms so it fits in with the websites house style and going to add some images  smile

i'm on now! What can i do? It looks like you redid my form.

Offline

 

#59 2010-12-21 12:58:42

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

Re: Welcome to your local block library! - Website development thread.

For those of you that don't check the main site, here


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

Offline

 

#60 2010-12-21 13:00:51

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

Re: Welcome to your local block library! - Website development thread.

MathWizz wrote:

For those of you that don't check the main site, here

??

Offline

 

#61 2010-12-21 13:03:55

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

Re: Welcome to your local block library! - Website development thread.

ProgrammingFreak wrote:

Daffy22 wrote:

sparks wrote:

Right. Sorry...

I anticipate many regular library contributors requesting to be moderators for the site - so before I go, here's a FINAL list of people who will be allowed moderator privilages if they wish to take them up.

fg123
MathWizz
Sparks
Magnie
Daffy22
ProgrammingFreak
meowmeow55

(if I accidentally missed someone, this is basically a list of the people working on the site. I think with 7 people working on it, we've got enough, so lets make that the final list  smile  )

right ok  big_smile
I'm currently adjusting the forms so it fits in with the websites house style and going to add some images  smile

i'm on now! What can i do? It looks like you redid my form.

nope, same form. I just made look better!  big_smile


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

Offline

 

#62 2010-12-21 13:07:07

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

Re: Welcome to your local block library! - Website development thread.

Daffy22 wrote:

ProgrammingFreak wrote:

Daffy22 wrote:


right ok  big_smile
I'm currently adjusting the forms so it fits in with the websites house style and going to add some images  smile

i'm on now! What can i do? It looks like you redid my form.

nope, same form. I just made look better!  big_smile

Thank you! I have thought of some morte things. A page that says "thank you for entering a block" type of thing.

Offline

 

#63 2010-12-21 13:09:45

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

Re: Welcome to your local block library! - Website development thread.

ProgrammingFreak wrote:

Daffy22 wrote:

ProgrammingFreak wrote:


i'm on now! What can i do? It looks like you redid my form.

nope, same form. I just made look better!  big_smile

Thank you! I have thought of some morte things. A page that says "thank you for entering a block" type of thing.

yup thats a good idea.  big_smile
I've finished the form now (check it out! http://www.block-library.freehostingcloud.com/submit/smile


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

Offline

 

#64 2010-12-21 13:13:14

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

Re: Welcome to your local block library! - Website development thread.

How can I get the code for it? I would like to work on it more! Unless you have something else for me

Offline

 

#65 2010-12-21 13:17:53

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

Re: Welcome to your local block library! - Website development thread.

ProgrammingFreak wrote:

How can I get the code for it? I would like to work on it more! Unless you have something else for me

well. can you add images to the categories ect? host the images else were.
and here is the code: (don't touch the <? php ?> stuff  smile )

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">



<head>
   
 <title>Block Library</title>
   


    
<link id="theme" rel="stylesheet" type="text/css" href="http://www.block-library.freehostingcloud.com/style.css" title="theme" />

  </head>
  
<body> 
   
 <!-- top wrapper -->  
            <table width="100%" height="200" border="0">
<tr>
<td height="150" class="header">
</td>
</tr>
<tr>
<td height="50" align="center" class="nav">

<a href="http://www.block-library.freehostingcloud.com/">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/home.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/homeOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/home.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/submit">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/submit.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/submitOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/submit.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/browse">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/browse.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/browseOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/browse.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://scratch.mit.edu/forums/viewtopic.php?id=40508&p=1">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/discustion.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/discustionOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/discustion.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/contact">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/contact.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/contactOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/contact.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>


    <!-- end top wrapper -->  
    <div id="wrapper"> 
      <div id="bg">
 
        <div id="page"> 
          <!-- begin container -->  
          <div id="container"> 
            <!--  content -->  
            <div id="content"> 
              <div id="center"> 
                <div 
id="welcome"> <br /><br />

<!-- line: <div class="hr"><hr></div> -->
        <!-- main body -->
<h2>Submit A Block...</h2>    

<?

if ($_GET['type'] == "")
{
?>
<img src="images/step1.gif" alt="step 1 image" /><br />
<form action="#" method="get">
<select name="type">
<option value="Scratch">Scratch Block</option>
<option value="BYOB">BYOB Block</option>
<option value="Panther">Panther Block</option>
</select>
<input type="submit" name="submit" value="Next Step..." />
</form>
<?
}

if ($_GET['type'] == "Scratch")
{
?>

<!-- SCRATCH FORM -->
<div id="f1">
<form id="Scratch" method="POST" action="scratch.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec.</b><br />
<input type="text" name="blockspec" value="e.g. say %s" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />

<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br /><br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works If the code needs to
go in more than one place, mark the locations of the code clearly.</b><br />
<textarea rows="10" cols="50">
e.g. 
block: t1
| t2 | 
^ t1 , 'gap' , t2
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "BYOB")
{

?>

<!-- BYOB FORM -->
<div id="f2">
<form id="BYOB" method="POST" action="byob.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b><a href="upload">Upload a picture of your final block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br />
<br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of how to make your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br /><br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "Panther")
{

?>
<div id="f3">

<!-- PANTHER FORM -->
<form id="Panther" method="POST" action="panther.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec</b><br />
<input type="text" name="blockspec" value="e.g. say $String$" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here:<br /> <input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works.</b>
<textarea rows="10" cols="50">
e.g. ^ t1
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>

<?
}

?>




        <!-- main body end -->


                </div> 
              </div>  
             
              </div>  
            </div>  
            <!-- end content --> 
          </div>  
          <!-- end container --> 
        </div>  
        <div id="footerWrapper"> 

        </div> 
      </div> 
    </div> 
  </body>
</html>

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

Offline

 

#66 2010-12-21 13:18:21

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

Re: Welcome to your local block library! - Website development thread.

Daffy22 wrote:

ProgrammingFreak wrote:

Daffy22 wrote:


nope, same form. I just made look better!  big_smile

Thank you! I have thought of some morte things. A page that says "thank you for entering a block" type of thing.

yup thats a good idea.  big_smile
I've finished the form now (check it out! http://www.block-library.freehostingcloud.com/submit/smile

What happened to mine?


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

Offline

 

#67 2010-12-21 13:20:29

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

Re: Welcome to your local block library! - Website development thread.

MathWizz wrote:

Daffy22 wrote:

ProgrammingFreak wrote:


Thank you! I have thought of some morte things. A page that says "thank you for entering a block" type of thing.

yup thats a good idea.  big_smile
I've finished the form now (check it out! http://www.block-library.freehostingcloud.com/submit/smile

What happened to mine?

it didn't work. sorry.  sad


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

Offline

 

#68 2010-12-21 13:21:32

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

Re: Welcome to your local block library! - Website development thread.

Daffy22 wrote:

ProgrammingFreak wrote:

How can I get the code for it? I would like to work on it more! Unless you have something else for me

well. can you add images to the categories ect? host the images else were.
and here is the code: (don't touch the <? php ?> stuff  smile )

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">



<head>
   
 <title>Block Library</title>
   


    
<link id="theme" rel="stylesheet" type="text/css" href="http://www.block-library.freehostingcloud.com/style.css" title="theme" />

  </head>
  
<body> 
   
 <!-- top wrapper -->  
            <table width="100%" height="200" border="0">
<tr>
<td height="150" class="header">
</td>
</tr>
<tr>
<td height="50" align="center" class="nav">

<a href="http://www.block-library.freehostingcloud.com/">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/home.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/homeOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/home.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/submit">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/submit.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/submitOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/submit.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/browse">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/browse.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/browseOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/browse.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://scratch.mit.edu/forums/viewtopic.php?id=40508&p=1">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/discustion.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/discustionOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/discustion.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/contact">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/contact.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/contactOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/contact.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>


    <!-- end top wrapper -->  
    <div id="wrapper"> 
      <div id="bg">
 
        <div id="page"> 
          <!-- begin container -->  
          <div id="container"> 
            <!--  content -->  
            <div id="content"> 
              <div id="center"> 
                <div 
id="welcome"> <br /><br />

<!-- line: <div class="hr"><hr></div> -->
        <!-- main body -->
<h2>Submit A Block...</h2>    

<?

if ($_GET['type'] == "")
{
?>
<img src="images/step1.gif" alt="step 1 image" /><br />
<form action="#" method="get">
<select name="type">
<option value="Scratch">Scratch Block</option>
<option value="BYOB">BYOB Block</option>
<option value="Panther">Panther Block</option>
</select>
<input type="submit" name="submit" value="Next Step..." />
</form>
<?
}

if ($_GET['type'] == "Scratch")
{
?>

<!-- SCRATCH FORM -->
<div id="f1">
<form id="Scratch" method="POST" action="scratch.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec.</b><br />
<input type="text" name="blockspec" value="e.g. say %s" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />

<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br /><br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works If the code needs to
go in more than one place, mark the locations of the code clearly.</b><br />
<textarea rows="10" cols="50">
e.g. 
block: t1
| t2 | 
^ t1 , 'gap' , t2
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "BYOB")
{

?>

<!-- BYOB FORM -->
<div id="f2">
<form id="BYOB" method="POST" action="byob.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b><a href="upload">Upload a picture of your final block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br />
<br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of how to make your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br /><br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "Panther")
{

?>
<div id="f3">

<!-- PANTHER FORM -->
<form id="Panther" method="POST" action="panther.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec</b><br />
<input type="text" name="blockspec" value="e.g. say $String$" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here:<br /> <input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works.</b>
<textarea rows="10" cols="50">
e.g. ^ t1
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>

<?
}

?>




        <!-- main body end -->


                </div> 
              </div>  
             
              </div>  
            </div>  
            <!-- end content --> 
          </div>  
          <!-- end container --> 
        </div>  
        <div id="footerWrapper"> 

        </div> 
      </div> 
    </div> 
  </body>
</html>

Thanks. um, so pics of the categories? like in Scratch (the program)? Um i had a idea. Can you make the pic a 'radio button'? Then when the category button is clicked, it will change pictures just like in the program!

Offline

 

#69 2010-12-21 13:22:21

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

Re: Welcome to your local block library! - Website development thread.

The Scratch and Panther forms' "Submit block" buttons go halfway off the bottom of the page thingy.
In the BYOB form, there should be something like this to submit a sprite file:

In the form:

Upload a BYOB sprite file containing your block (optional)
And put the URL here: [box]

After uploading:

<!-- if the upload was successful: -->
Upload successful. Here's the URL:
[<insert URL here>]
<!-- if the file uploaded wasn't a YSP file: -->
The file you entered wasn't a YSP (BYOB sprite) file. Are you trying to upload a BYOB project? If so, then email it directly to <insert my email here>. [which I don't care about if it's there BTW]

Last edited by meowmeow55 (2010-12-21 13:23:00)


Yawn.

Offline

 

#70 2010-12-21 13:23:40

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

Re: Welcome to your local block library! - Website development thread.

ProgrammingFreak wrote:

Daffy22 wrote:

ProgrammingFreak wrote:

How can I get the code for it? I would like to work on it more! Unless you have something else for me

well. can you add images to the categories ect? host the images else were.
and here is the code: (don't touch the <? php ?> stuff  smile )

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">



<head>
   
 <title>Block Library</title>
   


    
<link id="theme" rel="stylesheet" type="text/css" href="http://www.block-library.freehostingcloud.com/style.css" title="theme" />

  </head>
  
<body> 
   
 <!-- top wrapper -->  
            <table width="100%" height="200" border="0">
<tr>
<td height="150" class="header">
</td>
</tr>
<tr>
<td height="50" align="center" class="nav">

<a href="http://www.block-library.freehostingcloud.com/">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/home.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/homeOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/home.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/submit">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/submit.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/submitOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/submit.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/browse">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/browse.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/browseOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/browse.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://scratch.mit.edu/forums/viewtopic.php?id=40508&p=1">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/discustion.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/discustionOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/discustion.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.block-library.freehostingcloud.com/contact">
<img border="0" src="http://www.block-library.freehostingcloud.com/images/contact.png" onmouseover="this.src='http://www.block-library.freehostingcloud.com/images/contactOver.png';" onmouseout="this.src='http://www.block-library.freehostingcloud.com/images/contact.png';" />
</a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>


    <!-- end top wrapper -->  
    <div id="wrapper"> 
      <div id="bg">
 
        <div id="page"> 
          <!-- begin container -->  
          <div id="container"> 
            <!--  content -->  
            <div id="content"> 
              <div id="center"> 
                <div 
id="welcome"> <br /><br />

<!-- line: <div class="hr"><hr></div> -->
        <!-- main body -->
<h2>Submit A Block...</h2>    

<?

if ($_GET['type'] == "")
{
?>
<img src="images/step1.gif" alt="step 1 image" /><br />
<form action="#" method="get">
<select name="type">
<option value="Scratch">Scratch Block</option>
<option value="BYOB">BYOB Block</option>
<option value="Panther">Panther Block</option>
</select>
<input type="submit" name="submit" value="Next Step..." />
</form>
<?
}

if ($_GET['type'] == "Scratch")
{
?>

<!-- SCRATCH FORM -->
<div id="f1">
<form id="Scratch" method="POST" action="scratch.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec.</b><br />
<input type="text" name="blockspec" value="e.g. say %s" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />

<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br /><br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works If the code needs to
go in more than one place, mark the locations of the code clearly.</b><br />
<textarea rows="10" cols="50">
e.g. 
block: t1
| t2 | 
^ t1 , 'gap' , t2
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "BYOB")
{

?>

<!-- BYOB FORM -->
<div id="f2">
<form id="BYOB" method="POST" action="byob.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b><a href="upload">Upload a picture of your final block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br />
<br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of how to make your block...</a><br />
...And enter the URL here: <br /><input type="text" name="image" /></b>
<br /><br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>
<?
}

if ($_GET['type'] == "Panther")
{

?>
<div id="f3">

<!-- PANTHER FORM -->
<form id="Panther" method="POST" action="panther.php">
<br /><img src="images/step2.gif" alt="step 2 image" /><br />
<b>enter your blockspec</b><br />
<input type="text" name="blockspec" value="e.g. say $String$" />
<br /><br /><img src="images/step3.gif" alt="step 3 image" /><br />
<b><a href="upload">Upload a picture of your block...</a><br />
...And enter the URL here:<br /> <input type="text" name="image" /></b><br />
<br /><img src="images/step4.gif" alt="step 4 image" /><br />
<b> Which catagory does your block belong to?</b><br />
<input type="radio" name="catagory" value="Motion">Motion
<input type="radio" name="catagory" value="Control">Control<br />
<input type="radio" name="catagory" value="Looks">Looks
<input type="radio" name="catagory" value="Sensing">Sensing<br />
<input type="radio" name="catagory" value="Sound">Sound
<input type="radio" name="catagory" value="Operators">Operators<br />
<input type="radio" name="catagory" value="Pen">Pen
<input type="radio" name="catagory" value="Variables">Variables<br />
<input type="radio" name="catagory" value="Variables">Other
<br />
<br /><br /><img src="images/step5.gif" alt="step 5 image" /><br />
<b>What type of block is it?</b><br />
<input type="radio" name="type" value="-" /> Stack image here<br />
<input type="radio" name="type" value="r" /> Reporter image here<br />
<input type="radio" name="type" value="b" /> Boolean image here<br />
<input type="radio" name="type" value="c" /> C loop image here<br />
<br /><img src="images/step6.gif" alt="step 6 image" /><br />
<b>Who created this block?</b><br />
<input type="text" value="Scratch username" />
<br />
<br /><img src="images/step7.gif" alt="step 7 image" /><br />
<b>Enter the code for your block. Test it before you submit it to make sure it works.</b>
<textarea rows="10" cols="50">
e.g. ^ t1
</textarea>
<br />
<br />
<input type="submit" value="Submit block" />
</form>
</div>

<?
}

?>




        <!-- main body end -->


                </div> 
              </div>  
             
              </div>  
            </div>  
            <!-- end content --> 
          </div>  
          <!-- end container --> 
        </div>  
        <div id="footerWrapper"> 

        </div> 
      </div> 
    </div> 
  </body>
</html>

Thanks. um, so pics of the categories? like in Scratch (the program)? Um i had a idea. Can you make the pic a 'radio button'? Then when the category button is clicked, it will change pictures just like in the program!

you could do but that would mean a lot of programming (JS). just stick with the radio buttons with images. I think you should put them in a table too so it looks neater.  smile


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

Offline

 

#71 2010-12-21 13:58:12

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

Re: Welcome to your local block library! - Website development thread.

almost done making the pics

Offline

 

#72 2010-12-21 14:00:55

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

And no one is listening to me.  sad

Wow.


Hai.

Offline

 

#73 2010-12-21 14:01:29

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

Re: Welcome to your local block library! - Website development thread.

fg123 wrote:

And no one is listening to me.  sad

Wow.

SORRY! Can't we prepare?

Offline

 

#74 2010-12-21 14:02:14

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

Re: Welcome to your local block library! - Website development thread.

What have you got to say fg123?  smile


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

Offline

 

#75 2010-12-21 14:04:00

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Read my previous post, the more you guys work, the even more work we need when we move over to our new domain


Hai.

Offline

 

Board footer