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

#301 2012-01-31 16:12:40

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

Magnie wrote:

TRocket wrote:

Magnie wrote:

Not sure. I think we should start to decide what we will use. Like a MySQL database, the programming language, etc.

i think MySQL with PHP JS AJAX(yes i know it's not a language) and HtML

Okay then, those work.

So these could be the files we'll need:

index.php
post.php - Displays a post based on the ID entered (like: post.php?id=123)
login.php - Either displays a login, or opens the login page
logout.php
category.php or board.php
topic.php
profile.php
admin/admin.php
install/install.php
include/config.php
skins/default.css
skins/[username].css

Though that is obviously an incomplete list, so any suggestions?

User skins should be a php page where the contents of the css is echoed from the database


http://i.imgur.com/1QqnHxQ.png

Offline

 

#302 2012-01-31 16:42:41

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch Forum Development Thread

We can do nicer-looking URLs with URL rewriting, i.e.

/ -> index.php
/home -> index.php
/index -> index.php
/post/id -> post.php?id=id
/login -> login.php
/logout -> logout.php
/board/id -> board.php?id=id
/user/id -> profile.php?id=id
/admin -> admin.php
/install -> install.php
/skin/userID -> skin/userID.css
/css/file.css -> css/file.css
* -> error.php?e=404

There's no need for /topic/id because it's just a view on the first post


nXIII

Offline

 

#303 2012-02-01 04:33:28

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

Re: Scratch Forum Development Thread

Magnie wrote:

TRocket wrote:

Magnie wrote:

Not sure. I think we should start to decide what we will use. Like a MySQL database, the programming language, etc.

i think MySQL with PHP JS AJAX(yes i know it's not a language) and HtML

Okay then, those work.

So these could be the files we'll need:

index.php
post.php - Displays a post based on the ID entered (like: post.php?id=123)
login.php - Either displays a login, or opens the login page
logout.php
category.php or board.php
topic.php
profile.php
admin/admin.php
install/install.php
include/config.php
skins/default.css
skins/[username].css

Though that is obviously an incomplete list, so any suggestions?

We don't need post, category, or topic if we're using AJAX updating. Just change the #hash-url.
I'm going to make a mockup of the MySQL database we'll need, and link back to it.
And TRocket is correct; we just have PHP echo the user's skin from a database.

Offline

 

#304 2012-02-01 04:45:48

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch Forum Development Thread

i thought of something.... "tags" ! you can type in key words in a box seperated by commas. then you can easily find topics about your favourite stuff by going to a tag search thing or sonething.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#305 2012-02-01 06:21:11

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

Re: Scratch Forum Development Thread

nathanprocks wrote:

i thought of something.... "tags" ! you can type in key words in a box seperated by commas. then you can easily find topics about your favourite stuff by going to a tag search thing or sonething.

Yeah, we were going to have post tagging.  big_smile

Offline

 

#306 2012-02-01 09:44:58

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Scratch Forum Development Thread

scimonster wrote:

We don't need post, category, or topic if we're using AJAX updating. Just change the #hash-url.
I'm going to make a mockup of the MySQL database we'll need, and link back to it.
And TRocket is correct; we just have PHP echo the user's skin from a database.

I know we are using AJAX, post.php will echo the the info based on the ID given, like: post.php?id=123 will give the post info for post 123. topic.php will give a list of post IDs which the AJAX script will then ask for through post.php, etc.

How do you plan on getting post data other than through a php script?

Last edited by Magnie (2012-02-01 09:45:32)

Offline

 

#307 2012-02-01 13:16:12

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

Re: Scratch Forum Development Thread

Magnie wrote:

scimonster wrote:

We don't need post, category, or topic if we're using AJAX updating. Just change the #hash-url.
I'm going to make a mockup of the MySQL database we'll need, and link back to it.
And TRocket is correct; we just have PHP echo the user's skin from a database.

I know we are using AJAX, post.php will echo the the info based on the ID given, like: post.php?id=123 will give the post info for post 123. topic.php will give a list of post IDs which the AJAX script will then ask for through post.php, etc.

How do you plan on getting post data other than through a php script?

Oh yeah; didn't think of that. XD

Offline

 

#308 2012-02-04 07:42:17

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

this looks like a good idea... what do you guys think?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#309 2012-02-04 12:05:59

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Scratch Forum Development Thread

TRocket wrote:

this looks like a good idea... what do you guys think?

A database table idea:
TopicName|TopicID|TopicPoster|ImgOn|LinkOn|DblPostOn


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#310 2012-02-05 17:55:37

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

Just a suggestion...
Why don't you use Ruby on Rails or another MVC framework (CakePHP,Zend etc.)
This might increase scalbility or make the development a bit easier.
This might help the ST support the idea.

Or even just use a premaid forums app (MyBB etc.) and work on tweaking it so it works with Scratch.

Anyway I'm happy to help whatever happens so if you need a PHP/RoR developer I can help.

Offline

 

#311 2012-02-06 05:57:33

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Forum Development Thread

logiblocs wrote:

Why don't you use Ruby on Rails or another MVC framework (CakePHP,Zend etc.)
This might increase scalbility or make the development a bit easier.
This might help the ST support the idea.

Absolutely agree! They write so much code for you.  big_smile

I was suggesting Django — Python MVC web framework — but apparently more people know PHP...  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#312 2012-02-06 15:43:07

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

ScratchR uses CakePHP, so... Yeah.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#313 2012-02-06 18:04:04

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

blob8108 wrote:

logiblocs wrote:

Why don't you use Ruby on Rails or another MVC framework (CakePHP,Zend etc.)
This might increase scalbility or make the development a bit easier.
This might help the ST support the idea.

Absolutely agree! They write so much code for you.  big_smile

I was suggesting Django — Python MVC web framework — but apparently more people know PHP...  smile

I would reccomend Rails as it has some nice tutorials abd handles some things like URL rewriting, and SQL quite nicely.

A good tutorial to understand the code would be railsforzombies.

I don't gave much experience with CakePHP but scratchr runs on it.

Offline

 

#314 2012-02-07 05:58:00

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

Re: Scratch Forum Development Thread

I only know basic PHP, not any other things.  hmm

Offline

 

#315 2012-02-07 11:36:41

destroydaworld111
New Scratcher
Registered: 2011-10-04
Posts: 29

Re: Scratch Forum Development Thread

I can't wait for the first demo!

Offline

 

#316 2012-02-07 12:13:09

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

Can I please help with the project. I know PHP, CSS, HTML, ruby and JavaScript.

My name on sourceforge is logiblocs, and I have a few ideas about what we can do with the project.

Last edited by logiblocs (2012-02-07 12:20:59)

Offline

 

#317 2012-02-07 13:36:12

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

logiblocs wrote:

Can I please help with the project. I know PHP, CSS, HTML, ruby and JavaScript.

My name on sourceforge is logiblocs, and I have a few ideas about what we can do with the project.

Ok  smile

I will add you to the sourceforge page once sparks says you can help.

Do you have a SVN client? If so, please checkout our source.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#318 2012-02-07 15:09:45

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

Zeusking19 wrote:

logiblocs wrote:

Can I please help with the project. I know PHP, CSS, HTML, ruby and JavaScript.

My name on sourceforge is logiblocs, and I have a few ideas about what we can do with the project.

Ok  smile

I will add you to the sourceforge page once sparks says you can help.

Do you have a SVN client? If so, please checkout our source.

Thanks!

Yes I do have subversion, I'm using Linux  smile

Offline

 

#319 2012-02-08 12:53:03

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

bump

Offline

 

#320 2012-02-15 03:10:04

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

bump...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#321 2012-02-15 04:33:28

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

bump


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#322 2012-02-15 08:37:34

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

Re: Scratch Forum Development Thread

We're going to make the original installation as small as possible, right? That means saving space in the code we'll write.
Also, I recommend creating a forum using an existing forum system or two, and check out all the features, from a user's, mod's, and admin's point of view.

Offline

 

#323 2012-02-15 08:42:17

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

scimonster wrote:

We're going to make the original installation as small as possible, right? That means saving space in the code we'll write.
Also, I recommend creating a forum using an existing forum system or two, and check out all the features, from a user's, mod's, and admin's point of view.

not sure if we are trying to make it as small as possible  hmm


http://i.imgur.com/1QqnHxQ.png

Offline

 

#324 2012-02-15 08:55:52

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

Re: Scratch Forum Development Thread

TRocket wrote:

scimonster wrote:

We're going to make the original installation as small as possible, right? That means saving space in the code we'll write.
Also, I recommend creating a forum using an existing forum system or two, and check out all the features, from a user's, mod's, and admin's point of view.

not sure if we are trying to make it as small as possible  hmm

Well, why not? If we can save space, we might as well.  smile

Offline

 

#325 2012-02-15 09:47:46

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

Ok then,

I will make a forum named ScratchBB playground, and all of the ScratchBB developers can be an admin so we can play around with the features, and get ideas.

I will edit when I have it up.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

Board footer