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

#201 2012-07-06 16:08:43

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

Re: Scratch API 2.0

LS97 wrote:

fg123 wrote:

Sounds good, I'll setup the DB. So no email/gender/location or any of that. I was thinking it's actually possible to retrieve the location from the user page.

You raise a good point about maybe an optional email field.
But I don't think gender location is too necessary for our purpose, right?

That's true. Alrighty. I'll probably have most of the user system done by tomorrow, if not Monday.


Hai.

Offline

 

#202 2012-07-08 05:09:39

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

Re: Scratch API 2.0

Since you haven't finished yet, I'll do a little work on the tables. Careful with the database!
EDIT
Finished editing database tables.

Last edited by LS97 (2012-07-08 05:37:57)

Offline

 

#203 2012-07-09 01:58:30

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

Re: Scratch API 2.0

I've added a few more fields in the DB, and I've finished the login and the register pages.

Register processing code is yet to be done and the login code needs a little polish, but other than that, it's almost done.  tongue

If you look at the register, you'll see the whole scratch integration method...


Hai.

Offline

 

#204 2012-07-09 05:53:08

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

Re: Scratch API 2.0

Sorry to break it but, there's no need for that checkbox. Looks like you put lots of work in it though, so I don't want to remove it...  tongue

Last edited by LS97 (2012-07-09 05:54:15)

Offline

 

#205 2012-07-09 11:30:18

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

Re: Scratch API 2.0

At the moment, it's not clear what you are supposed to press when you've finished signing up. Will this be added?


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

Offline

 

#206 2012-07-09 14:59:23

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

Re: Scratch API 2.0

LS97 wrote:

Sorry to break it but, there's no need for that checkbox. Looks like you put lots of work in it though, so I don't want to remove it...  tongue

Yes there is. Because the username of the API2 User and his Scratch account may be different. This allows more versatility.

technoboy10 wrote:

At the moment, it's not clear what you are supposed to press when you've finished signing up. Will this be added?

Yea, it's not done yet.


Hai.

Offline

 

#207 2012-07-09 16:50:27

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

Re: Scratch API 2.0

fg123 wrote:

LS97 wrote:

Sorry to break it but, there's no need for that checkbox. Looks like you put lots of work in it though, so I don't want to remove it...  tongue

Yes there is. Because the username of the API2 User and his Scratch account may be different. This allows more versatility.

OK... after all, there aren't any forums or comments, so we might as well allow impersonation as long as we know who they are.

Offline

 

#208 2012-07-10 16:07:21

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

Re: Scratch API 2.0

LS97 wrote:

fg123 wrote:

LS97 wrote:

Sorry to break it but, there's no need for that checkbox. Looks like you put lots of work in it though, so I don't want to remove it...  tongue

Yes there is. Because the username of the API2 User and his Scratch account may be different. This allows more versatility.

OK... after all, there aren't any forums or comments, so we might as well allow impersonation as long as we know who they are.

It will display in brackets who they are on scratch.


Hai.

Offline

 

#209 2012-07-12 04:50:35

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

Re: Scratch API 2.0

fg123 wrote:

LS97 wrote:

fg123 wrote:


Yes there is. Because the username of the API2 User and his Scratch account may be different. This allows more versatility.

OK... after all, there aren't any forums or comments, so we might as well allow impersonation as long as we know who they are.

It will display in brackets who they are on scratch.

OK, sounds good.
Are you done? I'd like to start with the GUI now...

Offline

 

#210 2012-07-12 13:07:38

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

Re: Scratch API 2.0

Almost, give me today. I'll make a userlist too. Would you like the user list to be public?


Hai.

Offline

 

#211 2012-07-12 13:15:53

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

Re: Scratch API 2.0

fg123 wrote:

Almost, give me today. I'll make a userlist too. Would you like the user list to be public?

I don't think it's necessary. All users are for -- for public purpose -- is the sharing of skins and images which doesn't require a browse-by-user. If that made sense.

Offline

 

#212 2012-07-12 15:45:44

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

Re: Scratch API 2.0

LS97 wrote:

fg123 wrote:

Almost, give me today. I'll make a userlist too. Would you like the user list to be public?

I don't think it's necessary. All users are for -- for public purpose -- is the sharing of skins and images which doesn't require a browse-by-user. If that made sense.

Okey. I'm done. Registering and logging in now works.  smile

Have fun!


Hai.

Offline

 

#213 2012-07-12 15:50:09

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

Re: Scratch API 2.0

fg123 wrote:

LS97 wrote:

fg123 wrote:

Almost, give me today. I'll make a userlist too. Would you like the user list to be public?

I don't think it's necessary. All users are for -- for public purpose -- is the sharing of skins and images which doesn't require a browse-by-user. If that made sense.

Okey. I'm done. Registering and logging in now works.  smile

Have fun!

Yayyy! Going to work on the GUI ASAP

Offline

 

#214 2012-07-12 15:52:00

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

Re: Scratch API 2.0

I'm thinking there are 2 kinds of ranks.

Users, Moderators and Administrators.

Mods can control skins, like if something is inappropriate, and Admins are able to manage accounts. What do you think?

I suppose the admin field would be set to 1 for mod, and 2 for admin.


Hai.

Offline

 

#215 2012-07-12 15:55:06

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

Re: Scratch API 2.0

fg123 wrote:

I'm thinking there are 2 kinds of ranks.

Users, Moderators and Administrators.

Mods can control skins, like if something is inappropriate, and Admins are able to manage accounts. What do you think?

I suppose the admin field would be set to 1 for mod, and 2 for admin.

...and 0 for user. Yeah, that makes 3 ranks. Agreed  smile

Offline

 

#216 2012-07-12 16:05:35

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

Re: Scratch API 2.0

LS97 wrote:

fg123 wrote:

I'm thinking there are 2 kinds of ranks.

Users, Moderators and Administrators.

Mods can control skins, like if something is inappropriate, and Admins are able to manage accounts. What do you think?

I suppose the admin field would be set to 1 for mod, and 2 for admin.

...and 0 for user. Yeah, that makes 3 ranks. Agreed  smile

What colors shall we use for the ranks?
I know this is sort of an extra thing, but I guess it's important for aesthetics.

Normal text color for users.
Green for Mods.
Red for Admins.

Hows that?  tongue

EDIT: I've done the manage users page. http://api2.comeze.com/manageUsers.php

Make sure you're rank 2 to access it. It will provide options to promote and demote people.

Last edited by fg123 (2012-07-12 16:16:16)


Hai.

Offline

 

#217 2012-07-12 21:10:43

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

Re: Scratch API 2.0

So I can register now? Also, it might be nice to have an option to just to use your Scratch account as your API2 account, just because some people already have a lot of accounts on the Internet.

Last edited by technoboy10 (2012-07-12 21:28:34)


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

Offline

 

#218 2012-07-13 01:29:26

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

Re: Scratch API 2.0

technoboy10 wrote:

So I can register now? Also, it might be nice to have an option to just to use your Scratch account as your API2 account, just because some people already have a lot of accounts on the Internet.

Yes, but accounts might change abit as we develop.

We've had discussions over this, and what might happen is an API2 user might sign up for a name that a scratch user has and then we have a conflict. You can sign up with your scratch details and connect it with your scratch account, no problem, though.

smile

Last edited by fg123 (2012-07-13 01:29:46)


Hai.

Offline

 

#219 2012-07-13 01:47:33

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

Re: Scratch API 2.0

Added a temporary privacy policy. Please update to fit.


Hai.

Offline

 

#220 2012-07-13 04:02:37

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

Re: Scratch API 2.0

Amazing job!
Working on site structure now.

Offline

 

#221 2012-07-13 05:05:08

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

Re: Scratch API 2.0

Still working.

fg, remember to use absolute paths when linking or inserting images!
Absolute paths, as opposed to relative paths, are valid on any link throughout the site. It's really important to do so on this site because, as we use so many includes (e.g. the footer), those same pages can be seen at different directory levels.

Offline

 

#222 2012-07-13 05:36:33

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

Re: Scratch API 2.0

I hope I'm not being obnoxious, but I'm doing this in a constructive spirit:
str_replace(" ", "", $string) can be a problem when you're just trying to trim something.

If a user has a password "I love Scratch", then the form would parse it as "IloveScratch" and any subsequent login trials would fail. Better to use trim()  wink

Oh and, best not to trim passwords.

Last edited by LS97 (2012-07-13 05:36:53)

Offline

 

#223 2012-07-13 06:47:31

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

Re: Scratch API 2.0

Changed admin colour to blue because red sounds more like ban  tongue
...and indicated banned users as red.

Last edited by LS97 (2012-07-13 07:54:02)

Offline

 

#224 2012-07-13 10:23:04

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

Re: Scratch API 2.0

Done editing the site.
I did a cool administration page with awesome user management, modified terms, overhauled site structure, added deletedusers database, started on user profiles (I think we can leave it at that though).

I think that's it for now, would like sparks to have a say on what to do next...  smile

Offline

 

#225 2012-07-13 10:29:50

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: Scratch API 2.0

sparks wrote:

Cool, so do you have any ideas as to things you want to bring into this? I sort of laid out some of my ideas in the first post.

could you do a voice for me?


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

Board footer