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

#501 2011-06-05 12:39:48

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

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

TheSuccessor wrote:

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/inclu … or=control

To use:

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=say&type=stack&color=lookshttp://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=this+is&type=reporter&color=variableshttp://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=AWESOME&type=boolean&color=sensing
Why is the boolean showing as a http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Stack+block&type=stack&color=Pizza?

Offline

 

#502 2011-06-05 12:41:03

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

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

That is... amazing! How did you do that? (reporters look a little odd and boolean is marked as a stack). How are you going to deal with arguments? They're stored as % in scratch which the url may take as an alt code and as $ in panther which may be mistaken as a variable....


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

Offline

 

#503 2011-06-05 13:02:18

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

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

sparks wrote:

That is... amazing! How did you do that? (reporters look a little odd and boolean is marked as a stack). How are you going to deal with arguments? They're stored as % in scratch which the url may take as an alt code and as $ in panther which may be mistaken as a variable....

I'm converting the Scratch ones to Panther style, then just using a lot of regular expressions.


/* No comment */

Offline

 

#504 2011-06-05 13:26:31

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

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

TheSuccessor wrote:

sparks wrote:

That is... amazing! How did you do that? (reporters look a little odd and boolean is marked as a stack). How are you going to deal with arguments? They're stored as % in scratch which the url may take as an alt code and as $ in panther which may be mistaken as a variable....

I'm converting the Scratch ones to Panther style, then just using a lot of regular expressions.

Cool! $ won't interfere with the url?

I love this because it means that users will not have to upload images anymore, we won't have to upload the existing ones to the new site, and there won't be people who cannot view the blocks through image filtering unless our site itself is filtered!

What a great idea!


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

Offline

 

#505 2011-06-05 13:30:42

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

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

And then, once it's perfected, could we use all these in the Library itself?
Also, what if the thread/site gets blocks the other doesn't?

Offline

 

#506 2011-06-05 15:01:29

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

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

Progress:
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Booleans+now+work+properly&type=boolean&color=sensing
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Color+blocks+are+now+supported&type=color&color=colors
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Reporter+blocks+are+the+right+shape&type=reporter&color=control
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Files+and+Colors+colours+now+supported&type=stop&color=files

Last edited by TheSuccessor (2011-06-05 15:04:55)


/* No comment */

Offline

 

#507 2011-06-05 15:05:59

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

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

How do you get php to make pictures?


You can now reach me on Twitter @johnnydean1_

Offline

 

#508 2011-06-05 15:12:27

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

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

johnnydean1 wrote:

How do you get php to make pictures?

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Tutorial+here&color=control&type=stack
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=PHP+documentation+here&color=pen&type=stack

Last edited by TheSuccessor (2011-06-05 15:12:54)


/* No comment */

Offline

 

#509 2011-06-06 06:03:29

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

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

Shouldn't http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=say+$String$&amp;type=stack&amp;color=looks show as <say[ ?[/blocks]

Offline

 

#510 2011-06-06 06:07:28

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

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

I don't think arguments are supported by his system yet!


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

Offline

 

#511 2011-06-06 06:08:35

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

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

Oh, I thought he had already done it.  tongue
@TS: Why is "files" green?

Last edited by scimonster (2011-06-06 06:49:03)

Offline

 

#512 2011-06-06 08:55:46

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

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

TheSucessor, I wanted to add some MySQL to the site but none of the pages actually appear in the file manager... Where are they?


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

Offline

 

#513 2011-06-06 09:00:47

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

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

The site's content should be like this, IMO:

Code:

<div id="content">
<h2>The block library site. If you are interested in developing this, please:</h2>
<p>Send your email to sparks at <a href="mailto:purplesparkz@ymail.com">mailto:purplesparkz@ymail.com</a> including your Scratch username.</p>
<p>Comment on the <a href="http://scratch.mit.edu/forums/viewtopic.php?id=52709">development thread</a> saying that you have emailed Sparks.</p>
<p>The FTP login details will then be sent to you by email.</p>
</div>

(Full code of site:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">     
<head>
    <title>Welcome to your Local Block Library!</title>
    <link rel="stylesheet" type="text/css" href="/include/css/common.css" />
    <meta http-equiv="Content-Type" content="text/html;  charset=ISO-8859-1" />
    <meta name="description" content="Your Local Block Library. download and share blocks and code for Scratch, Panther and BYOB for free." />
    <meta name="keywords" content="Scratch, sharing, blocks, Panther, BYOB, mod, smalltalk, squeak" />
</head>
<body>
<div id="title">

    <img src="/include/img/BlockLibraryTitle.png" alt="Block Library" />
</div>
<div id="nav">
    <ul>
        <li class="active"><a href="index.php">Home</a></li>
        <li><a href="search.php">Search blocks</a></li>
        <li><a href="statistics.php">Library stats</a></li>
        <li><a href="upload.php">Share a block</a></li>

    </ul>
</div>
<div id="content">
<h2>The block library site. If you are interested in developing this, please:</h2>
<p>Send your email to sparks at <a href="mailto:purplesparkz@ymail.com">mailto:purplesparkz@ymail.com</a> including your Scratch username.</p>
<p>Comment on the <a href="http://scratch.mit.edu/forums/viewtopic.php?id=52709">development thread</a> saying that you have emailed Sparks.</p>
<p>The FTP login details will then be sent to you by email.</p>
</div>
</body>
</html>

)

Offline

 

#514 2011-06-06 09:35:31

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

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

scimonster wrote:

Oh, I thought he had already done it.  tongue
@TS: Why is "files" green?

I haven't quite done it yet. It leaves the right amount of space for an argument, but doesn't draw it on yet. Play around with it and you'll see.

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Files+is+this+colour&amp;type=stack&amp;color=files
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=But+pen+is+like+this&amp;type=stack&amp;color=pen

BTW, with you code for the site, having a mailto: link like that can be a problem as there are bots which scan website after website just to pick up addresses to spam. That's why the email is written as it is. It's annoying, but it happens.

Last edited by TheSuccessor (2011-06-06 09:38:52)


/* No comment */

Offline

 

#515 2011-06-06 09:37:52

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

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

TheSuccessor wrote:

scimonster wrote:

Oh, I thought he had already done it.  tongue
@TS: Why is "files" green?

I haven't quite done it yet. It leaves the right amount of space for an argument, but doesn't draw it on yet. Play around with it and you'll see.

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Files+is+this+color&amp;type=stack&amp;color=files
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=But+pen+is+like+this&amp;type=stack&amp;color=pen

I guess I did something wrong.  hmm

Offline

 

#516 2011-06-06 09:57:22

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

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

Why can't I see any of the php files for the site in the file manager?

maybe replacing the email with an image of the text for the email would deter them?

Last edited by sparks (2011-06-06 09:59:05)


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

Offline

 

#517 2011-06-06 10:01:28

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

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

sparks wrote:

Maybe replacing the email with an image of the text for the email would deter them?

It's a direct link to email.  wink

Offline

 

#518 2011-06-06 10:12:26

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

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

No it's not. A spambot wouldn't find it unless it had OCR which is unlikely for one looking for emails.

example:

the site wrote:

Send your Email to sparks at http://dl.dropbox.com/u/22935223/example.gif including your Scratch username.


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

Offline

 

#519 2011-06-06 10:15:47

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

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

When will the website be ready for testing?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#520 2011-06-06 11:47:30

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

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

I want to work on the pages of the site but none of the php pages are appearing in the file manager so I can't edit them...


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

Offline

 

#521 2011-06-06 12:32:39

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

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

sparks wrote:

I want to work on the pages of the site but none of the php pages are appearing in the file manager so I can't edit them...

Are you looking in the root directory or in /public_html?

If you can't find them at all, try using an FTP client like FileZilla, or a neat little Firefox addon known as FireFTP. They seem to work for me.

Last edited by TheSuccessor (2011-06-06 12:33:26)


/* No comment */

Offline

 

#522 2011-06-06 12:36:51

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

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

unless it's called default.php I can't see it in the public.


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

Offline

 

#523 2011-06-06 13:11:23

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

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

sparks wrote:

unless it's called default.php I can't see it in the public.

Ctrl-F5?

Edit: I can't see your database and you can't see the PHP files. Are you sure you're using the same account as us? It's the purplesparkz one, not m********cher. (Trying not to give away that email address.)

Last edited by TheSuccessor (2011-06-06 13:19:06)


/* No comment */

Offline

 

#524 2011-06-06 13:27:51

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

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

Oh. Right. That explains it!

Much, much better! Silly me! Right! So. Would you like me to add a "block count" to the main page?

Last edited by sparks (2011-06-06 13:32:12)


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

Offline

 

#525 2011-06-06 13:34:53

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

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

sparks wrote:

Oh. Right. That explains it!

Much, much better! Silly me! Right! So. Would you like me to add a "block count" to the main page?

That would be great!  big_smile

BTW, you're in charge, so no need to ask me.  tongue


/* No comment */

Offline

 

Board footer