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

#526 2011-06-06 13:35:11

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

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

Your database has an column for "image". We're deleting that, right?
Also, we have "name" and spec". Do users have to enter both or can we filter the name out of the spec? Panther and BYOB the name and spec is the same anyway.

P.S, I'm hardly in charge, you probably know more or the same level of php and MySQL as me, I'd prefer it if we worked together on this on equal footing!

(be back in about half an hour)

Last edited by sparks (2011-06-06 13:36:39)


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

Offline

 

#527 2011-06-06 15:21:42

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

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

sparks wrote:

Your database has an column for "image". We're deleting that, right?
Also, we have "name" and spec". Do users have to enter both or can we filter the name out of the spec? Panther and BYOB the name and spec is the same anyway.

P.S, I'm hardly in charge, you probably know more or the same level of php and MySQL as me, I'd prefer it if we worked together on this on equal footing!

(be back in about half an hour)

With the database, I've removed the image column, and I think we could filter the name out of the spec.

How will we sort out the problem that we could easily overwrite each others work accidently by both working on the same file at the same time? Maybe we should make a Hamachi network.

Last edited by TheSuccessor (2011-06-06 15:22:44)


/* No comment */

Offline

 

#528 2011-06-06 15:29:01

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

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

Am I still apart of this?

Offline

 

#529 2011-06-06 16:44:53

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

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

ProgrammingFreak wrote:

Am I still apart of this?

Go for it!

A Hamachi network might be cool. Never used it before...


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

Offline

 

#530 2011-06-06 21:48:40

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

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

sparks wrote:

A Hamachi network might be cool. Never used it before...

I can create it if you want.
...
Stupid 000webhost. I tried to log in with your email, and it locked the account because I was in the US instead of the UK like you are. I emailed the update link, and you should probably disable that security measure (the page says to check the "Customer Details" tab and click your email).


Yawn.

Offline

 

#531 2011-06-07 04:43:04

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

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

Disabled country specific blocking. Thanks for telling me!


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

Offline

 

#532 2011-06-07 05:57:03

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

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

sparks wrote:

ProgrammingFreak wrote:

Am I still apart of this?

Go for it!

A Hamachi network might be cool. Never used it before...

Ok.
Yeah.

Offline

 

#533 2011-06-07 06:09:25

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

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=@TS:&type=boolean&color=variables http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=YOU%20PWNNNNN.&type=reporter&color=control http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Really.&type=color&color=
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=If%20you%20could%20make%20inserts%20show%20for%20real%20instead%20of%20just%20this:&type=stack&color=looks http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=%20%20%20%20,&type=stack&color=operators http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=you%20would%20PWN%20even%20more!!&type=stack&color=sensing
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=%28BTW,%20why%20are%20cap%20blocks%20called%20%27stop%27%20in%20the%20type%3D%20variable%3F%29&type=stop&color=pen
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=EDIT:&type=reporter&color=sounds http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=The%20font%20is%20a%20little%20weird%20IMHO.%20%5E%5E&type=stack&color=files http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Also,%20this%20has%20%26color%3Dsound,%20which%20is%20the%20proper%20code,%20but%20you%20made%20it%20be%20%27sounds%27%20%28%27S%27%20at%20the%20end%29.&type=color&color=sound

Last edited by scimonster (2011-06-07 06:19:37)

Offline

 

#534 2011-06-07 12:22:08

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

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

Sorted the sounds problem, both sound and sounds are now supported. Also, cap is now supported as an alternative to stop for the type. Got to try and fix the green colour in variable blocks now. Some problem with the HSV to RGB code, I think.


/* No comment */

Offline

 

#535 2011-06-07 13:46:56

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

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

Heya, I think I'll work on the block submission form now! I'll start with Pather as it's easier than Scratch, but does not need image uploading like BYOB. Anything I'm missing?

Block name
Block type (dropdown - [stack], (reporter), <boolean> C-mouth, [color])
Block category: (dropdown of categories)
Block code: (textarea)
Block description (optional if a user thinks the function isn't obvious)
Scratch username
password (tell me more about this link explaining that why we need it and promising that we don't actually view or store it)
submit button.

I plan to divide the page into three columns, the first with a application choice for Scratch, Panther and BYOB, the second with the form for that application and the third showing a graphic representation of their block and either an "Your block is ready to go, click share to add it to the library" message or a "oops! You forgot to...." if they miss out a box!


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

Offline

 

#536 2011-06-07 13:56:58

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

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

From my experiences building my own website, I strongly recommend that we try to avoid float commands in CSS and PNG images as Internet Explorer fails spectacularly when it comes across either sometimes.


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

Offline

 

#537 2011-06-07 15:00:56

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

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

Well I'm not too happy with the graphics but if you look at the share a block page you can see the sort of idea I'm going with and the beginnings of the php for the forms!

You'll notice that I'm using the GET command to carry the information from one part of the page to the next. I will be using POST to carry the passwords and other information submitted in the form for a higher security incuding md5 encrypting of the password as it is sent.

Does anyone know how to read the result of the Scratch API that tells you if the username and password given is a valid one?

Last edited by sparks (2011-06-07 15:13:36)


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

Offline

 

#538 2011-06-07 15:06:17

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

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

Are you still accepting people? I'm pretty good with HTML and CSS, but I don't know PHP or anything of the sorts...
http://i55.tinypic.com/219dxc5.png

Please reply...  smile


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#539 2011-06-07 15:09:59

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

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

I think there's room for you! If you know HTML and CSS then perhapse you could deal with the graphics and presentation? Email me at my scratch email purplesparkz@ymail.com for the FTTP and login details  smile


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

Offline

 

#540 2011-06-07 15:29:51

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

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

sparks wrote:

Well I'm not too happy with the graphics but if you look at the share a block page you can see the sort of idea I'm going with and the beginnings of the php for the forms!

You'll notice that I'm using the GET command to carry the information from one part of the page to the next. I will be using POST to carry the passwords and other information submitted in the form for a higher security incuding md5 encrypting of the password as it is sent.

Does anyone know how to read the result of the Scratch API that tells you if the username and password given is a valid one?

Looking good! For the Scratch API, if a username/password combination is invalid, it contains the data 'false', if valid, the data 'user_id:username:banned_status'. You'll want to use the PHP function 'trim' to remove whitespace from the start and end of the result.


/* No comment */

Offline

 

#541 2011-06-07 16:05:08

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

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

TheSuccessor wrote:

sparks wrote:

Well I'm not too happy with the graphics but if you look at the share a block page you can see the sort of idea I'm going with and the beginnings of the php for the forms!

You'll notice that I'm using the GET command to carry the information from one part of the page to the next. I will be using POST to carry the passwords and other information submitted in the form for a higher security incuding md5 encrypting of the password as it is sent.

Does anyone know how to read the result of the Scratch API that tells you if the username and password given is a valid one?

Looking good! For the Scratch API, if a username/password combination is invalid, it contains the data 'false', if valid, the data 'user_id:username:banned_status'. You'll want to use the PHP function 'trim' to remove whitespace from the start and end of the result.

How do you read the value from the API into the page as a variable though?

Curses, the third part of the share page keeps dropping down to below the first! I really dislike <div> tags when they automatically start an new line!

Last edited by sparks (2011-06-07 17:18:31)


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

Offline

 

#542 2011-06-07 17:37:25

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

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

Does our site allow us to use javascript? I've been trying to make a popup marked "why?" next to the password field but it's not working!

Otherwise, can someone see where I have gone wrong?:

Code:

<p>Password <a href='JavaScript:void(0);' onclick='JavaScript:window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');'>Why?</a></p>

Apart from the javascript problem above the form for Panther is done! I just need to add the error checking and block uploading! I will do this tomorrow, I hope what I've done is what you guys had in mind!

P.S - TheSucessor, I love your block search system! May I suggest that in the future you add an advanced search option where using checkboxes you can include or exclude each application/category? So if I wanted all Scratch and Panther, motion and control blocks I would have to search four times with the current method! Not a priority but would be a nice feature in the future!

Last edited by sparks (2011-06-07 18:14:15)


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

Offline

 

#543 2011-06-07 21:36:06

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

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

sparks wrote:

Does our site allow us to use javascript? I've been trying to make a popup marked "why?" next to the password field but it's not working!

Otherwise, can someone see where I have gone wrong?:

Code:

<p>Password <a href='JavaScript:void(0);' onclick='JavaScript:window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');'>Why?</a></p>

You don't need the "javascript:" protocol when putting JS in the onclick attribute.


Yawn.

Offline

 

#544 2011-06-08 04:27:01

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

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

Still not working:

Code:

<p>Password <a href='onclick='JavaScript:window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');'>Why?</a></p>

Last edited by sparks (2011-06-08 04:28:07)


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

Offline

 

#545 2011-06-08 04:53:14

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

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

@meowmeow55

Is there a way I can drop the BYOB sprite upload box you built on your website into the BYOB upload form so that people can upload their sprites if they have them? In the same way, is it possible to get image uploading for BYOB block code images? It's possible to get each submitter to host their own images but if we do that we run into the problems of people deleting their images after a while, difference in quality of the image and some people not being able to see images from certain hosts!


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

Offline

 

#546 2011-06-08 11:58:01

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

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

Only works in IE I believe...


You can now reach me on Twitter @johnnydean1_

Offline

 

#547 2011-06-08 12:18:23

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

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

er sparks you've made the href point to the onclick it should be:

Code:

<p>Password <a href='JavaScript:void(0);' onclick='window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');'>Why?</a></p>

I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#548 2011-06-08 12:32:59

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

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

sparks wrote:

Still not working:

Code:

<p>Password <a href='onclick='JavaScript:window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');'>Why?</a></p>

Code:

<p>Password <sup><a href="javascript:void(0);" onclick="window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');">(Why?)</a></sup></p>

That code should work. (I also put the "Why?" text in parentheses and made it in superscript so it wouldn't seem out of place right after the "Password" form label.)

sparks wrote:

@meowmeow55

Is there a way I can drop the BYOB sprite upload box you built on your website into the BYOB upload form so that people can upload their sprites if they have them? In the same way, is it possible to get image uploading for BYOB block code images? It's possible to get each submitter to host their own images but if we do that we run into the problems of people deleting their images after a while, difference in quality of the image and some people not being able to see images from certain hosts!

I'm not sure if DreamHost (my host) allows form data from other sites to be sent to my site (probably not), so I'll have to check up on that. The other option would be to move all the sprites over to the block library site, but that would mean changing the links to all of the many BYOB blocks that are downloadable...  hmm
Actually, any uploads by regular people could just be dropped in a private folder for reviewing by librarians, who could then upload them to my site! We could also have the upload form directly on the block library site for direct moving from the block library site to mine.
Image uploading is definitely doable.

Edit: Your thread about common Scratch system browser paths reminded me of this post I made in this thread a long time ago:

meowmeow55 wrote:

Another suggestion for the site: perhaps there could be a button that spawns more code boxes so that the user doesn't have to make dividers in 1 code box if the code goes in more than one place, and a separate title box for each one?
Quick mockup:

Code:

Where does this code go? (enter the path of where it is in Scratch's Squeak browser)
-------------------------------<box>------------------------------------------------
Code:
[
[
[---------------------------<large box>--------------------------------------------
[
[

[(button) Add another code location]
<!-- ^this would spawn another form just like the one above -->

Last edited by meowmeow55 (2011-06-08 12:40:53)


Yawn.

Offline

 

#549 2011-06-08 12:44:00

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

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

meowmeow55 wrote:

Code:

<p>Password <sup><a href="javascript:void(0);" onclick="window.open('http://www.theblocklibrary.site11.com/userpasswhy.html','popUpWindow','height=600,width=950,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');">(Why?)</a></sup></p>

That code should work. (I also put the "Why?" text in parentheses and made it in superscript so it wouldn't seem out of place right after the "Password" form label.)

Updated the site with this.  smile


/* No comment */

Offline

 

#550 2011-06-08 12:48:23

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

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

aww you didn't use my code  sad


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

Board footer