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

#1 2010-12-20 14:37:15

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

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

http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png
Developing a website for Scratch, Panther and BYOB block sharing.

Developers

TheSucessor
meomeow55
Sparks

Last edited by sparks (2011-06-04 02:44:05)


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

Offline

 

#2 2010-12-20 14:39:08

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

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

cool. k did you look at the barebones code? It needs a lot of work, but i need some help on some things. Like how do you won't to see latest uploads so you can approve them?

Offline

 

#3 2010-12-20 14:42:19

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

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

ProgrammingFreak wrote:

cool. k did you look at the barebones code? It needs a lot of work, but i need some help on some things. Like how do you won't to see latest uploads so you can approve them?

How do I want to see them? Preferably as they saw it just before they clicked SUBMIT so that I get the form they looked at, with the text they entered into each of the boxes (and radio's ticked) like they had it. Then a mod can make changes to any part of the form if they need to, before clicking [approved] at the bottom to load it to the main library.

(that's the plan, anyhow)


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

Offline

 

#4 2010-12-20 14:55:36

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

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

k, how would i do that? Idk how to make it where text is already in the stuff.
maybe: echo "<input type=/"text/" value=/" '$name'/" " ?

so do we have a database?

Offline

 

#5 2010-12-20 15:02:14

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

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

Told you I have to set up everything first. WE start on wednesday...


Hai.

Offline

 

#6 2010-12-20 15:06:28

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

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

fg123 wrote:

Told you I have to set up everything first. WE start on wednesday...

oh sorry.
um, do you have some advice on my code?

Offline

 

#7 2010-12-20 15:09:33

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

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

Post it here...  tongue


Hai.

Offline

 

#8 2010-12-20 15:25:41

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

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

hmm, so i've got this so far. it doesn't do anything really. do you do like

Code:

echo "<p>'$name'"</p>"

for him to view the uploads. Here is the barebones:

Code:

<form method="post">
<h3>Share a Block!</h3>
<p>Do you have a block that you would like to share to the<br>
Scratch World? You've come to the right place</p>
<tr>
<td>
<p>Name of Block:</p><input type="text" size="50" name="name">
</td>
<td><p>BlockSpec: <input type="text" name="spec"size="400"></p>
</td>
<td><p>Code: <input type="text" name="code" size="400"></p>
</td>
<td>
<p>Block's Mod:</p>
<select>
<option name="Panther" value="Panther">
<option name="BYOB" value="BYOB">
</select> 
</td>
<td>
<p>Notes:</p><input type="text" name="notes" size="400">
</td>
</tr>
</form>
<?php
$name = $_POST['name'];
$mod = $_POST['mod'];
$notes= $_POST['notes'];
$spec = $_POST['spec'];
$code = $_POST['code'];
?>

its definatly not finished yet!

Offline

 

#9 2010-12-20 16:12:15

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

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

Now, i know how to make it send it to an email. i just don't get how you would view it like Daffy22 is talking about.

Offline

 

#10 2010-12-20 16:13:27

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

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

Okay this is my idea for the whole upload system...
1. The use fills in a form that allows them to submit their block
2. The PHP script then writes it all to a temp file in a temp folder
3. Sparks (or other modertors) then have to approve it before it is added to the main list of blocks which is viewable to the public

Hows that sound? any ideas? Programming help would be appreciated!  big_smile


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

Offline

 

#11 2010-12-20 16:17:01

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

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

Daffy22 wrote:

Okay this is my idea for the whole upload system...
1. The use fills in a form that allows them to submit their block
2. The PHP script then writes it all to a temp file in a temp folder
3. Sparks (or other modertors) then have to approve it before it is added to the main list of blocks which is viewable to the public

Hows that sound? any ideas? Programming help would be appreciated!  big_smile

so it writes to a file ehh? I can do that. But what is a .temp? Sorry for the n00bness

Offline

 

#12 2010-12-20 16:17:20

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

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

Good idea.  smile  For your code, displaying php variables would be like:

Code:

echo "<p>".$name."</p>"

Hai.

Offline

 

#13 2010-12-20 16:25:00

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

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

fg123 wrote:

Good idea.  smile  For your code, displaying php variables would be like:

Code:

echo "<p>".$name."</p>"

Thanks. i'll work on it. I gtg soon

Wut more do i need to do on upload? Oh the button!

Last edited by ProgrammingFreak (2010-12-20 16:26:06)

Offline

 

#14 2010-12-20 19:31:32

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

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

You know, if you need any help with PHP, I'm willing to help out. Depending on what it is.

Offline

 

#15 2010-12-20 19:49:21

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

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

Hey Magnie! I would love to work with you again. Sparks? I say we take Magnie in.  tongue


Hai.

Offline

 

#16 2010-12-20 20:03:12

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

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

Did you guys work on scratch recourses together or something?


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#17 2010-12-20 20:04:30

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

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

I agree that we should take him in. The more workers the faster it will be finished! of course I am not very good at HTML or PHP so I can't help.

Last edited by Pecola1 (2010-12-21 23:37:18)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#18 2010-12-20 20:26:14

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

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

I'm a he.  smile  I could help with the "Approving" part probably, make it display the notes and other stuff in a text area and then you can change it, click approve, and it'll show up as that. Will we have a MySQL database, trust me, you/we/me will probably need it.  wink

Last edited by Magnie (2010-12-20 20:28:21)

Offline

 

#19 2010-12-20 20:27:18

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

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

I'm pretty sure Magnie is a boy.  tongue

And no, but he was one my great friends back then.  wink

I worked on SR with JSO and Adriangl.


Hai.

Offline

 

#20 2010-12-20 23:36:07

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

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

O_o A whole website for this?  yikes  Cool  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#21 2010-12-21 01:49:55

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

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

Yup! (buddy.  big_smile )

Magnie beat me to it, but yeah we are using mysql.


Hai.

Offline

 

#22 2010-12-21 03:47:22

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

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

Magnie wrote:

I'm a he.  smile  I could help with the "Approving" part probably, make it display the notes and other stuff in a text area and then you can change it, click approve, and it'll show up as that. Will we have a MySQL database, trust me, you/we/me will probably need it.  wink

ok, we first write the block to temp files in a temp directory were Magnie will make a script to read the temp files into a form were Sparks can approve the block and make changes. When Sparks clicks submit it will add it to the main SQL database. The data base should have the following collums (or whatever  tongue ) (3 database tables)
[SCRATCH BLOCKS]
- image path
- spec
- code
- user who submited it
- catagory (radio e.g. Motion)

[BYOB BLOCKS]
- final graphic image (path)
- graphic image of how to make it (path)
- sprite file (path)
- catagory
- name of submitter

[PANTHER BLOCKS]
- graphic image of block (path)
- block name
- selector
- colour
- catagory
- name of submitter

Hows that then Magnie?  smile

Last edited by Daffy22 (2010-12-21 03:54:08)


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

Offline

 

#23 2010-12-21 03:52:10

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

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

Oh, ProgrammingFreak do you think it would be a good idea to have 3 button (or blocks  big_smile ) that when clicked will show 3 different forms... Scratch, BYOB, Panther. Make sure you have a form element for each database colum above this post  big_smile


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

Offline

 

#24 2010-12-21 03:59:19

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

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

Okay, Magnie here are the SQL details...
Name: blocklib_blocks
Host: 10.10.10.3

Username: blocklib_block
Password: library

Hows that  smile


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

Offline

 

#25 2010-12-21 05:41:43

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

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

Hi guys, I thought I'd put a a few disgustingly bare html forms up - the peak of my HTML knowledge, so you can have a sort of idea as to how I picture the forms to work... if not look  tongue

Searching for a block
submitting a Panther block
submitting a scratch block
submitting a BYOB block

By no means are these set ideas, they're just an early representation and I think the contain all the necessary fields that the final ones will have! Feel free to make changes or disregard  smile

Last edited by sparks (2010-12-21 05:56:13)


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

Offline

 

Board footer