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

#476 2011-05-30 15:23:52

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

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

Bump!

I just bothered to do something useful with the site's FTP details!  tongue
So, any ideas of what I should do? I'm not good at thinking of things, but I can try to do anything that someone wants me to do.  smile


Yawn.

Offline

 

#477 2011-05-31 19:22:47

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

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

sent you an email with my mod MegaMod's g-mail account.


the the the the the

Offline

 

#478 2011-06-01 07:49:45

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

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

The site says to tell you when I've emailed you, so, I've emailed you.  smile


/* No comment */

Offline

 

#479 2011-06-01 07:50:50

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

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

Remove the 2 from the image URL.

Offline

 

#480 2011-06-01 09:24:18

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

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

I can help, a bit.


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

Offline

 

#481 2011-06-02 13:44:22

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

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

Progress:
• Created common header and footer files
• Made email even more illegible to scanner bots
• Started search API
• Made 404 errors go to the homepage rather than error404.000webhost.com
• Added list of contributors to each individual file in PHP comments

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


/* No comment */

Offline

 

#482 2011-06-02 13:49:47

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

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

How did you do the 404 errors.


You can now reach me on Twitter @johnnydean1_

Offline

 

#483 2011-06-02 14:40:48

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

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

johnnydean1 wrote:

How did you do the 404 errors.

.htaccess


/* No comment */

Offline

 

#484 2011-06-02 21:42:26

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

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

Shouldn't there be a special page for the errors instead of just redirecting to the home page? I'll make a page for the errors if someone makes a graphical header and footer.


Yawn.

Offline

 

#485 2011-06-03 05:59:38

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

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

I can't see any change to the site...


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

Offline

 

#486 2011-06-03 13:40:32

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

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

Progress:
• Block Library image now hosted on site
• Site looks nicer
• Header and footer files now out of the way in includes directory
• Created database and a blocks table - not yet implemented though
• Message on home page now links here
• Error pages now have their own file

Other:
• Do we still want the darkwood.gif file? I've moved it to /include/img for the moment
• Navigation links can be edited in include/config.php
• Shall we make it so users can create accounts on the site? We can verify users with the Scratch API to avoid impersonations.
• Would a RSS feed for the blocks be a good idea?
• Is anybody else actively helping at the moment?
• Could whoever made the index file please add their name to the contributers list at the top of /index.php and /include/header.php?


/* No comment */

Offline

 

#487 2011-06-03 16:16:45

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

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

Hey TheSucessor! This is looking truly amazing! I love the work you've done on it!

•The darkwood file was simply a filler background that can be replaced!
•I would like to avoid needing an account to use the library. I would say that downloading and browsing blocks as well as everything else should be free for all to do except for submitting a block which, as you say, we can use the API to verify a username and password for the block creator!
•I will help all I can, I may have a go at the block sharing form at some point! (yay, unlike when the site started, I now know a large amount of php and MySQL!)

I created the original index file which is why the email given is mine! Did our webhost account come with email accounts? I forget.

Tell me more about an RSS feed. I don't know what they do!

P.S.

TheSucessor wrote:

• Created database and a blocks table - not yet implemented though

Looking through phpMyAdmin I found a blocks table that I think I created - I hope you saw it. Here is a list of the columns - have I missed anything?

application: (panther, scratch, BYOB)
Category: (e.g. sensing)
blockspec
colour: (e.g. #0494DC)
type: (e.g. -)
sharer (e.g. sparks)
status: (not sure what that was for... I set the example to "active" This may have been "approved for showing in the library by a moderator.)
block number (auto-increment and unique)
comment
block location: (for Scratch blocks. This gives the browser path for the code - hopefully the form will have a dropdown of common locations or a text box for other locations)
image location:(unless we sort out image uploading to the site, users will have to paste in the location of their image.)



P.P.S. I've just noticed that in the webhost control-panel there is the expected "file manager" followed by the rather surprising "another file manager" which I thought was quite funny!

Last edited by sparks (2011-06-03 16:27:54)


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

Offline

 

#488 2011-06-03 20:16:23

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

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

TheSuccessor wrote:

• Is anybody else actively helping at the moment?

Well, I was trying to help, but...  hmm  (No offense.)
What should I do? I'll be happy to take a stab at whatever someone wants implemented.

sparks wrote:

Tell me more about an RSS feed. I don't know what they do!

RSS feeds are things that, when a user subscribes to them, give live updates of new content in a "folder" in the user's bookmark menu or the like. If we created one, people could check our feed and be up-to-date on new blocks and/or block library news. I don't use them much, and I have no clue how to make one, but I could probably learn quickly.

Last edited by meowmeow55 (2011-06-03 20:20:05)


Yawn.

Offline

 

#489 2011-06-04 02:42:56

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

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

So, with the RSS feed, people could view a list of the newest blocks in one of their browser menus? Sounds pretty cool!

I've just finished working on the registration form for my new site, accidental games so I'm pretty on-par with creating froms, error-catching them and submitting them to a database - I may use the javascript/html that Mathwizz did for the other website as a starting point. I believe that the code for it is somewhere in here... hang on...


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

Offline

 

#490 2011-06-04 04:15:43

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

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

meowmeow55 wrote:

I'll be happy to take a stab at whatever someone wants implemented.

I don't like violence.


You can now reach me on Twitter @johnnydean1_

Offline

 

#491 2011-06-04 14:19:09

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

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

johnnydean1 wrote:

meowmeow55 wrote:

I'll be happy to take a stab at whatever someone wants implemented.

I don't like violence.

Bwahahahahahahahahahahahano.

constructive!

I'm a pacifist  tongue


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

Offline

 

#492 2011-06-04 16:30:44

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

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

Progress:
• Started blockspec to block image converter

meowmeow55 wrote:

I'll be happy to take a stab at whatever someone wants implemented.

The RSS feed would be helpful (I can't be bothered to learn how  tongue ), but if you think of something else useful, add it as well!  big_smile

Last edited by TheSuccessor (2011-06-04 16:32:19)


/* No comment */

Offline

 

#493 2011-06-04 16:44:33

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

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

RSS feeds aren't too tricky, I have done it before. I can't be asked to do it again however.


You can now reach me on Twitter @johnnydean1_

Offline

 

#494 2011-06-04 17:55:51

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

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

TheSuccessor wrote:

Progress:
• Started blockspec to block image converter

That is actually a good idea! All we need to do is have an image for every character in every colour of block plus an image from every argument! This won't allow users to show default values in their block arguments but it would allow for consistency. Is that the plan you had?


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

Offline

 

#495 2011-06-04 20:08:33

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

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

TheSuccessor wrote:

meowmeow55 wrote:

I'll be happy to take a stab at whatever someone wants implemented.

The RSS feed would be helpful (I can't be bothered to learn how  tongue ), but if you think of something else useful, add it as well!  big_smile

I'll try making the RSS feed. The syntax is easy, and I bet I could use PHP or something to modify it.

Edit: I'll need to know how the blocks will be stored. You can register on my site and talk to me on the chatbox and/or ask sparks for my email. (Yes, sparks, you can give it to him.)

Last edited by meowmeow55 (2011-06-04 20:33:44)


Yawn.

Offline

 

#496 2011-06-05 03:50:06

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

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

meowmeow55 wrote:

TheSuccessor wrote:

meowmeow55 wrote:

I'll be happy to take a stab at whatever someone wants implemented.

The RSS feed would be helpful (I can't be bothered to learn how  tongue ), but if you think of something else useful, add it as well!  big_smile

I'll try making the RSS feed. The syntax is easy, and I bet I could use PHP or something to modify it.

Edit: I'll need to know how the blocks will be stored. You can register on my site and talk to me on the chatbox and/or ask sparks for my email. (Yes, sparks, you can give it to him.)

Blocks will be stored in a MySQL table. The names of all the tables are listed in a post I did a few posts up or you can find the table itself in our phpMyAdmin  smile


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

Offline

 

#497 2011-06-05 05:23:20

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

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

sparks wrote:

Blocks will be stored in a MySQL table. The names of all the tables are listed in a post I did a few posts up or you can find the table itself in our phpMyAdmin  smile

The database you made seemed to have vanished, so I had to create a new one. You'll have to look at phpMyAdmin.

sparks wrote:

That is actually a good idea! All we need to do is have an image for every character in every colour of block plus an image from every argument! This won't allow users to show default values in their block arguments but it would allow for consistency. Is that the plan you had?

Kind of. I was going to actually draw the image the same way that Scratch does, rather than piecing it together from bits of blocks. What would be useful is if someone could find me the Verdana Bold Narrow Space font in gd format. It's what Scratch uses for the blocks.  smile

EDIT: A gd would be preferable, but if you can find a ttf, that'll be fine.

Last edited by TheSuccessor (2011-06-05 07:25:58)


/* No comment */

Offline

 

#498 2011-06-05 11:00:30

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

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

TheSuccessor wrote:

sparks wrote:

Blocks will be stored in a MySQL table. The names of all the tables are listed in a post I did a few posts up or you can find the table itself in our phpMyAdmin  smile

The database you made seemed to have vanished, so I had to create a new one. You'll have to look at phpMyAdmin.

sparks wrote:

That is actually a good idea! All we need to do is have an image for every character in every colour of block plus an image from every argument! This won't allow users to show default values in their block arguments but it would allow for consistency. Is that the plan you had?

Kind of. I was going to actually draw the image the same way that Scratch does, rather than piecing it together from bits of blocks. What would be useful is if someone could find me the Verdana Bold Narrow Space font in gd format. It's what Scratch uses for the blocks.  smile

EDIT: A gd would be preferable, but if you can find a ttf, that'll be fine.

Oh I see, So more along those lines! That makes sense!

Won't using a font that isn't a standard internet font mean that someone looking at it without that font installed on their computer would end up with a different font on their screen?


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

Offline

 

#499 2011-06-05 11:39:03

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...

And @sparks: You could set up a hierarchy of fonts in CSS. (If the first font in the list isn't there, it'll use the second, etc...)

Last edited by waveOSBeta (2011-06-05 11:40:01)


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

Offline

 

#500 2011-06-05 12:30:54

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

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

sparks wrote:

Oh I see, So more along those lines! That makes sense!

Won't using a font that isn't a standard internet font mean that someone looking at it without that font installed on their computer would end up with a different font on their screen?

No, actually. The font will be output as part of an image. Here is what I have so far:
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Not+perfect+yet,+but+at+least+it%27s+getting+there&type=stack&color=control

To use:

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=spec&type=(reporter|stack|stop|boolean)&color=(category name|hex colour)


/* No comment */

Offline

 

Board footer