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)
Why is the boolean showing as a ?
Offline
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....
Offline
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.
Offline
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!
Offline
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
Progress:
Last edited by TheSuccessor (2011-06-05 15:04:55)
Offline
How do you get php to make pictures?
Offline
johnnydean1 wrote:
How do you get php to make pictures?
Last edited by TheSuccessor (2011-06-05 15:12:54)
Offline
Shouldn't show as <say[ ?[/blocks]
Offline
Oh, I thought he had already done it.
@TS: Why is "files" green?
Last edited by scimonster (2011-06-06 06:49:03)
Offline
The site's content should be like this, IMO:
<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:
<!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
scimonster wrote:
Oh, I thought he had already done it.
![]()
@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.
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)
Offline
TheSuccessor wrote:
scimonster wrote:
Oh, I thought he had already done it.
![]()
@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.
I guess I did something wrong.
Offline
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)
Offline
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.
Offline
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
including your Scratch username.
Offline
When will the website be ready for testing?
Offline
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)
Offline
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)
Offline
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)
Offline
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!
BTW, you're in charge, so no need to ask me.
Offline