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

#1 2011-05-17 07:11:57

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Editable import database

You know the database that comes with Scratch, from which we can import images, sounds, and basic scripts? Well, I was wondering if, since Scratch 2.0 is going to be online, we can add and access to this database. Basically, the database will be stored in an online server. You can upload resources just like in Scratch Resources by JSO. Here's a pseudocode:

Code:

<form> 
Choose your resource type: 
<br> 
<input type="radio" id="type" value="sound">sound 
<br> 
<input type="radio" id="type" value="costume">costume 
<br> 
<input type="radio" id="type" value="background">background 
<br> 
<br> 
Choose your file: 
<br> 
<input type="file" id="file"> 
<br> 
<br> 
Choose your audience: 
<br> 
<input type="radio" id="viewer" value="all">everyone 
<br> 
<input type="radio" id="viewer" value="me">just me 
<br> 
<input type="radio" id="viewer" value="group">group (choose one: <select><option>new...</option></select>) 
<br> 
<br> 
Description:<br> 
<textarea> 
<br> 
<br> 
<input type="submit"> 
</form>

It will just add the resource to the server. When somebody else opens the import menu, your resource will come up. You can also choose who can use them: you, everyone, or a group of specific people (good for collaborations).

EDIT Vote for this!

Last edited by Hardmath123 (2011-05-17 07:16:21)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2 2011-05-17 09:03:30

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Editable import database

Cool idea, I likez!  big_smile

However, you need to close your tags  wink  :

Code:

<form> 
Choose your resource type: 
<br /> 
<input type="radio" id="type" value="sound">sound </input>
<br /> 
<input type="radio" id="type" value="costume">costume</input>
<br /> 
<input type="radio" id="type" value="background">background</input>
<br /> 
<br /> 
Choose your file: 
<br /> 
<input type="file" id="file"></input>
<br /> 
<br /> 
Choose your audience: 
<br /> 
<input type="radio" id="viewer" value="all">everyone</input>
<br /> 
<input type="radio" id="viewer" value="me">just me</input>
<br /> 
<input type="radio" id="viewer" value="group">group (choose one: <select><option>new...</option></select>)</input>
<br /> 
<br /> 
Description:<br /> 
<textarea></textarea>
<br /> 
<br /> 
<input type="submit" name="Submit" value="submit"></input>
</form>

big_smile

Offline

 

#3 2011-05-17 09:35:26

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Editable import database

scimonster wrote:

Cool idea, I likez!  big_smile

However, you need to close your tags  wink

Or make them close themselves, eg: <tag />. And they need name attributes, to be accessed server side. And the form needs an action. And a method. And all IDs must be different.  wink

Code:

<form action="someScratchSite" method="post"> 
Choose your resource type: 
<br /> 
<label><input type="radio" id="type_sound" value="sound" name="type" />sound</label>
<br /> 
<label><input type="radio" id="type_costume" value="costume" name="type" />costume</label>
<br /> 
<label><input type="radio" id="type_background" value="background" name="type" />background</label>
<br /> 
<br /> 
Choose your file: 
<br /> 
<input type="file" id="file" name="file" />
<br /> 
<br /> 
Choose your audience: 
<br /> 
<label><input type="radio" id="viewer_all" value="all" name="viewer" />everyone</label>
<br /> 
<label><input type="radio" id="viewer_me" value="me" name="viewer" />just me</label>
<br /> 
<label><input type="radio" id="viewer_some" value="some" />group (choose one: <select name="group" onclick="document.getElementById('viewer_some').checked = true;"><?php
if(empty($groups)){echo '<option value="new">Create new...</option>';}
else{
foreach($groups as $key => $name){
echo '<option value="g_'.$key.'">'.$name.'</option>';
}
?></select>)</label>
<br /> 
<br /> 
Description:<br /> 
<textarea name="desc"></textarea>
<br /> 
<br /> 
<input type="submit" name="submit" value="Submit" />
</form>

I like the idea, anyway.  big_smile  Although maybe things would have to be checked by a mod before becoming public?


/* No comment */

Offline

 

#4 2011-05-18 09:31:34

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Editable import database

Bump


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer