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:
<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)
Offline
Cool idea, I likez!
However, you need to close your tags :
<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>
Offline
scimonster wrote:
Cool idea, I likez!
![]()
However, you need to close your tags![]()
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.
<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. Although maybe things would have to be checked by a mod before becoming public?
Offline
Bump
Offline