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

#126 2012-06-26 11:46:45

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

fg123 wrote:

I think the logo needs to be bigger. I can't really read it...

Well, people should presumably know what's in it...  tongue

Offline

 

#127 2012-06-26 13:22:01

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Updated. I think it looks better.  tongue

What do you think?

Should we add an HTACCESS password, and Sparks, can you put the link in the first post?

Last edited by fg123 (2012-06-26 13:24:04)


Hai.

Offline

 

#128 2012-06-26 13:23:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

fg123 wrote:

Updated. I think it looks better.  tongue

What do you think?

It's very nice, but waaay too big  tongue

I liked the original height and, besides, you messed up my whole style...

Offline

 

#129 2012-06-26 13:25:49

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

LS97 wrote:

fg123 wrote:

Updated. I think it looks better.  tongue

What do you think?

It's very nice, but waaay too big  tongue

I liked the original height and, besides, you messed up my whole style...

Oh... I'm sorry then. See, this is the thing about SVN, we could just revert.

But now you have to upload yours to overwrite mine. xD

I just modified your style.

Last edited by fg123 (2012-06-26 13:26:16)


Hai.

Offline

 

#130 2012-06-26 13:28:38

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scratch API 2.0

I like the logo bigger, tbh.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#131 2012-06-26 13:50:21

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

Re: Scratch API 2.0

I originally made the top bar and logo the same size as the Scratch 2.0 design and I did prefer it like that  tongue


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

Offline

 

#132 2012-06-26 14:27:41

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

I originally made the top bar and logo the same size as the Scratch 2.0 design and I did prefer it like that  tongue

Yeah, exactly  tongue

Do you guys want me to revert? I do like the new logo style though, so if you could make it smaller...

Offline

 

#133 2012-06-26 14:42:05

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

Re: Scratch API 2.0

Yeah, I reckon that we should keep it small. Remember, this site is mainly designed to provide the API GUI and service, I want to keep anything on the site not to do with that minimalist, out of the way and far from superfluous.


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

Offline

 

#134 2012-06-26 14:51:02

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scratch API 2.0

While y'all are here...

technoboy10 wrote:

Will you address/add the things brought up in pages 26-28 of the old API thread in API 2.0?

EDIT: On a side note, it would be awesome if you added the block generator to the API. I use that with the current API all the time!

BTW, love the 404 page.

Last edited by technoboy10 (2012-06-26 14:52:43)


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#135 2012-06-26 15:01:07

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Yes, but honestly, the main navigation should be more defined and obvious. We still have plenty of room to work with.

When the 2.0 screenshot/proto came out, the fact that the logo and the bar at the top was so small was my only dislike.  lol


Hai.

Offline

 

#136 2012-06-26 15:27:20

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

Re: Scratch API 2.0

Technoboy: I've tried to compile a list of questions put in the API as you suggest.

Squawkers13 wrote:

I cannot display &num=2!
I have 2 projects up!

The problem with this lies in that persons username. I don't know the cause, but the problem isn't in my API, its in the actual Scratch code and I can do nothing to fix it. We'll have to hope the problem is fixed on the Scratch 2.0 website. (I am currently taking part in discussions about a new verification method we can use so something is being done).

technoboy10 wrote:

Is there any way to have certain dates have certain images? Such as 3/14 with an image of Pi, 3/17 with a shamrock, etc.

As I said in the thread: "Using PHP this is certainly possible, but considering the once-a-year occurance of a date, I'm pretty sure it's easier to update your sig yourself on that day." So no, I don't think I will be adding this.

Splodgey wrote:

Wait, Is it possible to do this for the latest projects in galleries?

I don't see why not! This should be added!

LiquidMetal wrote:

Hey sparks! I was wondering if it would be possible to get a different picture (eg; with a "NEW!" badge) if a project is less then X weeks old? (for my signature.)

Yeah, this sounds really cool as an idea, but I have no idea how we would implement it. It would take some work, I think and I'm putting it as a low-priority possible.

joefarebrother wrote:

hey just wondering: would it be possible to print multiple lines of text with the text renderer?

I definitely want our new API and GUI to support multi-line text one way or another!

LiquidMetal wrote:

Hi sparks,
I just updated my signature, and while I was playing around with it, I noticed it can be slow to load, and does not load all at once.  I was wondering if you could make a single call script to get an image that links directly to the project.  You would put all the images in one call to the api, and there would be less overhead.  I'll explain more in depth if you need it.

Thanks!

Yup, this is exactly what I hope to do with this project.

joefarebrother wrote:

On the text render-er, it blocks any image that is not a png. Could that be edited so it allows gif, jpeg and bmp[...]

Definitely! This is a bug that needs fixing!

*pant, pant* I think that's everything covered.


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

Offline

 

#137 2012-06-26 15:28:47

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

Re: Scratch API 2.0

Fg123, can we compromise? Mine was a 35px height and yours is 60px. How about 40px? It simply looks way too fat to me.


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

Offline

 

#138 2012-06-26 15:57:30

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scratch API 2.0

Thanks, sparks. I'll be following this project's progress eagerly!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#139 2012-06-26 16:00:13

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

Reverted style changes and set height to 40px
There's something funny happening to the 404 page image.

Last edited by LS97 (2012-06-26 16:01:29)

Offline

 

#140 2012-06-26 16:03:06

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

I'm going to bed now...
@fg, I suggest you start working on the PHP user system, since that's pretty much what you're supposed to be doing  tongue
@sparks, could you finish off the styling please?

Offline

 

#141 2012-06-26 16:10:30

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

Re: Scratch API 2.0

Styling, got it! You're going on holiday tomorrow, right? Will we see much of you and when will you be back?


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

Offline

 

#142 2012-06-26 16:16:33

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Will our user registration system be related to the Scratch one? What fields would be included in the registration? The same as scratch?

Arrg, Ls reverted all of my changes. XD I did more stuff you know. I added padding, and lots of styling changes...

404 image problem was because you reverted my changes.

How bout this, I change my version to 40 px like sparks said, then I'll upload mine. Then we'll be all updated...


EDIT: Changed to 40px and kept my changes that allowed fluid heights...

Last edited by fg123 (2012-06-26 16:23:54)


Hai.

Offline

 

#143 2012-06-26 16:41:20

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

Re: Scratch API 2.0

Yeah, that's looking better!

I believe what was decided earlier in the thread was that users would have to use the Scratch auth if they created an account with a username that exists on Scratch to reduce impersonations. Otherwise a user is free to either make a new account or log in with their existing Scratch account. This is simply so that people don't feel forced to give away their password on another site.

You may find this PHP code snippet a wrote handy for the auth:

Code:

if(trim(file_get_contents("http://scratch.mit.edu/api/authenticateuser?username=" . $_POST['username'] . "&password=" . $_POST['password'])) == 'false'){
     echo "User doesn't exist or password is incorrect.";
}
else{
     echo "User exists and password is correct.";
}

Last edited by sparks (2012-06-26 16:41:35)


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

Offline

 

#144 2012-06-26 17:46:11

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scratch API 2.0

Do you guys mind if I give feedback?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#145 2012-06-26 18:02:42

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Go ahead! And Sparks, where do I find references to the scratch api?


Hai.

Offline

 

#146 2012-06-27 05:03:53

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

Re: Scratch API 2.0

Er, do you mean the Original Thread and Source Code?

Technoboy, feel free to give feedback  smile


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

Offline

 

#147 2012-06-27 09:04:52

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

Re: Scratch API 2.0

Also, what's with that copyright bar? The Scratch site code is released under the creative commons licence and isn't copyrighted. We want people to be able to copy it!

Last edited by sparks (2012-06-27 09:05:13)


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

Offline

 

#148 2012-06-27 10:16:28

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scratch API 2.0

Unless you've already done this... I'm fairly sure that when you hover over a link in the header, the text color should change to orange instead of the background changing to darker blue (according to the wiki's scratch2 skin).


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#149 2012-06-27 12:11:44

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

Re: Scratch API 2.0

Yes, that it the case, and how I was going to do it. Might change it now.


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

Offline

 

#150 2012-06-27 12:34:15

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Yup, and the copyright was filler text. You could write in a license later...


Hai.

Offline

 

Board footer