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

#126 2010-12-22 09:27:03

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

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

Cool. Are we going to make an icon for our site? You know, a 16 bit one to go in the corner of the webpage tab and under favourites. You just need to save it as a .ico file in the root of our site  smile

SPEAKING OF WHICH - what's going on now? I thought we were moving sites today but you wanted to stay on the freehostingcloud one?


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

Offline

 

#127 2010-12-22 09:33:24

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

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

sparks wrote:

Cool. Are we going to make an icon for our site? You know, a 16 bit one to go in the corner of the webpage tab and under favourites. You just need to save it as a .ico file in the root of our site  smile

SPEAKING OF WHICH - what's going on now? I thought we were moving sites today but you wanted to stay on the freehostingcloud one?

yeah so did I, but it's too late now. I've set up an SQL database and added the tables to it. freehostingcloud is fine  smile


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

Offline

 

#128 2010-12-22 09:37:39

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

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

and the icon? I had a go but it wasn't amazing. Maybe one of the books on the bookshelf shrunk down to 16px?


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

Offline

 

#129 2010-12-22 09:54:07

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

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

sparks wrote:

and the icon? I had a go but it wasn't amazing. Maybe one of the books on the bookshelf shrunk down to 16px?

I was thinking taking the letter 'L' and putting it on a redish background like on the first book. What do you think?  hmm


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

Offline

 

#130 2010-12-22 09:58:06

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

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

sounds good  smile


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

Offline

 

#131 2010-12-22 11:50:57

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

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

Pecola1 wrote:

sparks wrote:

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

For the scratch blocks you need to make a place to say where under scratch objects it will be, like: http://kule.weebly.com/

(I am starting to understand HTML better.)

!!!!!!


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

 

#132 2010-12-22 12:16:35

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

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

Pecola1 wrote:

Pecola1 wrote:

sparks wrote:

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

For the scratch blocks you need to make a place to say where under scratch objects it will be, like: http://kule.weebly.com/

(I am starting to understand HTML better.)

!!!!!!

I can't answer for Sparks but I don't think it's particually neccesery.  neutral


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

Offline

 

#133 2010-12-22 12:21:32

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

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

I've already brought this up in my big post - A dropdown with popular Paths would be good, with a text space for less common ones next to it. We can do that on our site easily enough  smile

You don't really have to answer to me on this anyway  smile  You're in charge, I'll just supply suggestions  smile


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

Offline

 

#134 2010-12-22 12:34:02

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

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

Daffy22 wrote:

Pecola1 wrote:

Pecola1 wrote:


For the scratch blocks you need to make a place to say where under scratch objects it will be, like: http://kule.weebly.com/

(I am starting to understand HTML better.)

!!!!!!

I can't answer for Sparks but I don't think it's particually neccesery.  neutral

What if it has no code. That would mean that it has to go under a certain place. Also some of the variables like answer cannot go under certain places or it will not understand and the person creating the block won't know what to do.


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

 

#135 2010-12-22 13:20:40

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

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

Pecola1 wrote:

What if it has no code. That would mean that it has to go under a certain place. Also some of the variables like answer cannot go under certain places or it will not understand and the person creating the block won't know what to do.

sparks wrote:

I think we should have one of two options. >...< a dropdown list containing common paths to blockspecs with an "other" text space next to it where a different path can be entered. One thing the current library does not really have is a path for each piece of code and I would like to add that to the new site in order to make block adding easier for newcomers.

I think we've already solved this  smile


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

Offline

 

#136 2010-12-22 13:22:35

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

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

how can i help?

Offline

 

#137 2010-12-22 13:41:38

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

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

IDK. Can you write a script that checks if a scratch username is valid?


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

Offline

 

#138 2010-12-22 13:43:47

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

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

sparks wrote:

IDK. Can you write a script that checks if a scratch username is valid?

I'm not sure... would you have to do a search with scratch or something?

BTW, wheres Daffy22?

Offline

 

#139 2010-12-22 13:50:43

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

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

you could try reading a line of the user's homepage to see if it exists? Just an idea.


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

Offline

 

#140 2010-12-22 13:53:48

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

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

I'm here ProgrammingFreak!  big_smile
I'm going to scrap the mySQL idea because I'm stuggling with it and Magnie seems to of disappeared  sad
Anyway, file based is fine  smile  (thats what Mod Share is)
as for the suggested path thing could someone possibly do that and save me the work  smile


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

Offline

 

#141 2010-12-22 13:54:22

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

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

sparks wrote:

you could try reading a line of the user's homepage to see if it exists? Just an idea.

how bout this. Whatever the person enters, it looks up scratch.mit.edu/users/$user .
if it exists then the script goes on.

$user is the variable.

Offline

 

#142 2010-12-22 14:12:14

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

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

ProgrammingFreak wrote:

sparks wrote:

you could try reading a line of the user's homepage to see if it exists? Just an idea.

how bout this. Whatever the person enters, it looks up scratch.mit.edu/users/$user .
if it exists then the script goes on.

$user is the variable.

yeah, ok. I'm using the variable $username though  tongue


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

Offline

 

#143 2010-12-22 14:17:43

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

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

Daffy22 wrote:

ProgrammingFreak wrote:

sparks wrote:

you could try reading a line of the user's homepage to see if it exists? Just an idea.

how bout this. Whatever the person enters, it looks up scratch.mit.edu/users/$user .
if it exists then the script goes on.

$user is the variable.

yeah, ok. I'm using the variable $username though  tongue

should i code it or u?

Offline

 

#144 2010-12-22 14:25:40

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

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

right, I used Panther to compare the HTML source for the userpages of "sparks" and "doesnotexistthereisnocow" (dummystring) and the first difference there was was line 3.

for sparks it was "<html dir="ltr"><head>" and for doesnotexistthereisnocow line 3 is blank (it may be a newline - not sure).

I looked for the first difference because otherwise someone having a message or someone entering their own name or someone else's might affect the HTML code. Hope that helps. If you get it to verify the username by checking if line 3 of the HTML is <html dir="ltr"><head> that should work  smile

EDIT: HTML for line 3 remained the same for a valid account name I wasn't logged into. You can use it!

Last edited by sparks (2010-12-22 14:29:28)


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

Offline

 

#145 2010-12-22 14:30:40

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

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

sparks wrote:

right, I used Panther to compare the HTML source for the userpages of "sparks" and "doesnotexistthereisnocow" (dummystring) and the first difference there was was line 3.

for sparks it was "<html dir="ltr"><head>" and for doesnotexistthereisnocow line 3 is blank (it may be a newline - not sure).

I looked for the first difference because otherwise someone having a message or someone entering their own name or someone else's might affect the HTML code. Hope that helps. If you get it to verify the username by checking if line 3 of the HTML is <html dir="ltr"><head> that should work  smile

EDIT: HTML for line 3 remained the same for a valid account name I wasn't logged into. You can use it!

wut is this?

Offline

 

#146 2010-12-22 14:41:04

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

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

For verifying a user as a valid one! I don't know how to code it, but if you check that line 3 of the HTML file for a scratch user's page is equal to <html dir="ltr"><head> Then that means it's a valid user. If it's anything else, it's invalid.


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

Offline

 

#147 2010-12-22 15:02:41

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

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

okay, ProgramingFreak. You program it in PHP and I'll add it to my submit script  smile


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

Offline

 

#148 2010-12-22 15:05:02

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

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

Daffy22 wrote:

okay, ProgramingFreak. You program it in PHP and I'll add it to my submit script  smile

So i do the check thing sparks was talking about? I didn't relly get what he was talking about

Offline

 

#149 2010-12-22 15:12:30

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

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

sparks wrote:

For verifying a user as a valid one! I don't know how to code it, but if you check that line 3 of the HTML file for a scratch user's page is equal to <html dir="ltr"><head> Then that means it's a valid user. If it's anything else, it's invalid.

oh now i understand! Could you show me the Panther Project in text format?

Last edited by ProgrammingFreak (2010-12-22 15:12:42)

Offline

 

#150 2010-12-22 15:16:45

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

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

Yes... I did

set t1 to line t3 of file at URL: http://scratch.mit.edu/users/sparks
set t2 to line t3 of file at URL: http://scratch.mit.edu/users/nonexistantuserthereisnocow
wait until key space pressed.

Then manually changed t3 until t1 and t2 were different. I started at 1 and the first time that they were different was line 3.


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

Offline

 

Board footer