azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

25th Aug 07, 3:25pm | Quote | Blogs | Profile | RSS Feed
Start date : 25th August
Usable build : January 1st

Aims
- Class based
- Cached objects
- Completely OOP based
- Custom theme engine
- Zend framework
- Ajax features (mootools) - deffo a wysiwyg editor!)
- camelCased variable names
- Consistant variable names
- Completely css based (Something like this)


First build
- Index (categories, with forums)
- Forum view (active topics, new posts)
- Thread view
- Thread add
- Post view
- Post add
- User signup
- User signin
- User signout

Table structure
- Category (id, title, description,icon)
- Forum (id, title, description,icon,url)
- Thread (id, title, description,icon)
- Post (id, description)
- User (id, username, email, shai(password),postcount) {postcount, username might be moved to user_preference eventually)
-- Forum_category (id,forum_id,category_id)
-- Thread_Forum (id,thread_id,forum_id)
-- Post_Thread (id,post_id,thread_id) - under consideration, might just put the thread id in the post)

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

25th Aug 07, 6:59pm | Quote | Blogs | Profile | RSS Feed
What do you mean by "Class based?"

As in a regular has a lot more priveleges than a newbie, or what?
XboxLIVE Gamertag: StickyModDB

chis

"Stix"

Posts: 2,082

Reputation:

25th Aug 07, 7:25pm | Quote | Blogs | Profile | RSS Feed
'tis a way of scripting/programming he would've been better saying "OOP" or something :P .. I think
caek

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

25th Aug 07, 7:35pm | Quote | Blogs | Profile | RSS Feed
Yeah it will be fully OOP.

The first steps are done but because the server wasn't updated 34 minutes ago like they promised - I cant test.

Anywho, heres the css version of the current layout; http://wuggawoo.co.uk/betaForum/ and for when the php is upgraded; http://wuggawoo.co.uk/betaForum/index.php

Jack

"I'm flying like a rocket-ship."

Posts: 13,242

Reputation:

26th Aug 07, 8:45am | Quote | Blogs | Profile | RSS Feed

Access denied for user 'wuggawoo'@'localhost' (using password: YES) in /home/wuggawoo/public_html/betaForum/class/Database.class.php on line 25



Gotta love verbose error messages.  :drunk:

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

26th Aug 07, 9:56am | Quote | Blogs | Profile | RSS Feed
eh how is that possible? I get;

Fatal error: Cannot instantiate non-existent class: database in /home/wuggawoo/public_html/betaForum/index.php on line 15

Makavelee

""Finally.....""

Posts: 10,728

Reputation:

26th Aug 07, 5:16pm | Quote | Blogs | Profile | RSS Feed
its cause you suck!
"Cannon bends over for his Father" : They call me Gaz

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

26th Aug 07, 5:57pm | Quote | Blogs | Profile | RSS Feed
Fatal error: Cannot instantiate non-existent class: database in /home/wuggawoo/public_html/betaForum/index.php on line 15  

That's what I get to.

Maybe only staff gets it?  
XboxLIVE Gamertag: StickyModDB

Super Russy

Posts: 7,542

Reputation:

26th Aug 07, 6:32pm | Quote | Blogs | Profile | RSS Feed
Fatal error: Cannot instantiate non-existent class: database in /home/wuggawoo/public_html/betaForum/index.php on line 15

That's what big dawg gets.

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

26th Aug 07, 6:46pm | Quote | Blogs | Profile | RSS Feed
~Its because the server admin updated it briefly, realized his mail program doesnt work anymore and rolled back.

Waiting to see when the update comes.

Jack

"I'm flying like a rocket-ship."

Posts: 13,242

Reputation:

27th Aug 07, 10:12am | Quote | Blogs | Profile | RSS Feed

by Sticky at 25th Aug 7:59pm

What do you mean by "Class based?"

As in a regular has a lot more priveleges than a newbie, or what?



I wonder about you sometimes.


azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

27th Aug 07, 10:57am | Quote | Blogs | Profile | RSS Feed
You really have to


Jack

"I'm flying like a rocket-ship."

Posts: 13,242

Reputation:

27th Aug 07, 11:17am | Quote | Blogs | Profile | RSS Feed
Don Vito for the ultimate win!

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

27th Aug 07, 12:20pm | Quote | Blogs | Profile | RSS Feed
Well thats pretty hot


Sticky

"Break it down, now."

Posts: 3,389

Reputation:

27th Aug 07, 8:42pm | Quote | Blogs | Profile | RSS Feed

by Jack at 27th Aug 11:12am

I wonder about you sometimes.



It should be noted that I was running on about 4 hours of sleep.
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

28th Aug 07, 3:45pm | Quote | Blogs | Profile | RSS Feed
HI,

After speaking to the sys admin it was upgraded then downgraded due to a
problem with our mailscanner software,

Please advise why this is so important to you as we will not rush into this
and cause problems with other software on the servers, the servers will be
upgraded but this may take time so at the moment I can not give you a set
time or day.

Regards

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

28th Aug 07, 8:31pm | Quote | Blogs | Profile | RSS Feed
Liberal use of ctrl+c and ctrl+v?
XboxLIVE Gamertag: StickyModDB

Jack

"I'm flying like a rocket-ship."

Posts: 13,242

Reputation:

28th Aug 07, 8:48pm | Quote | Blogs | Profile | RSS Feed

by Sticky at 27th Aug 9:42pm

It should be noted that I was running on about 4 hours of sleep.



Welcome to uni.

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

28th Aug 07, 9:02pm | Quote | Blogs | Profile | RSS Feed
Bah I know they have a server to run but I really need to get cracking on development while my work load is abit lighter and I have the will to code on the night time.

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

28th Aug 07, 9:10pm | Quote | Blogs | Profile | RSS Feed

by Jack at 28th Aug 9:48pm

Welcome to uni.



Yeah. I know that I have so much to look foward to this time next year.
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

1st Sep 07, 10:36pm | Quote | Blogs | Profile | RSS Feed
Its taken like 6 hours to get it up and running due to various issues, but http://wuggawoo.co.uk/betaForum/ind...page=forum&id=1

BAM

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

2nd Sep 07, 1:27am | Quote | Blogs | Profile | RSS Feed
So why is my name there?
XboxLIVE Gamertag: StickyModDB

Jack

"I'm flying like a rocket-ship."

Posts: 13,242

Reputation:

2nd Sep 07, 9:01am | Quote | Blogs | Profile | RSS Feed
Because you post on wuggawoo.

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

2nd Sep 07, 9:07am | Quote | Blogs | Profile | RSS Feed
As a place holder.

I just want to show you the difference in working the proper oop way, now I know alot of the stuff isn't on that forum template yet (paging, category crumbbar, users viewing) but you can pretty much see how its 200% better seperating controller code and html code.

[gallery=100]

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

2nd Sep 07, 3:49pm | Quote | Blogs | Profile | RSS Feed
I'm not going to lie, I know nothing about webpage design.
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

2nd Sep 07, 3:53pm | Quote | Blogs | Profile | RSS Feed
Well the forum and thread are completed for now, however I need to add one more field into the post table (threadId, vital) yet PHPMyAdmin has official stopped loading...therefore my development for this weekend is probably done until monday night...balls

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

2nd Sep 07, 7:04pm | Quote | Blogs | Profile | RSS Feed
Deadline : December 1st
Aim : Standard ability to register & signing, view forum & thread, post, create thread.

Replies has been replaced with Posts
Replies is generally a rule of all posts counted minus one (thread starters post). Using `posts` makes more sense because it cuts out the math scattered in various files (templates/class). All references to "reply" are now post.

Thread Object
The thread object is responsible for loading first and last post (not in a thread view), this means the user_id field is no longer needed on Thread. Autoloads are used to make sure the first and last posts aren't loaded on a thread object being created.

Time ago
Due to a work habit, I won't be using unix timestamps anymore, Ill be using datetime. Unfortunately wuggawoos time methods using timestamp, in an effort to backport functions, Ive added a time class with a conversion function, however eventually time functions will need rewriting.

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

2nd Sep 07, 11:16pm | Quote | Blogs | Profile | RSS Feed
http://wuggawoo.co.uk/betaForum/index.php

Today I have
- Written alot of the main classes
- Finalized a basic css structure
- Login
- Register
- Logout
- View Index - Forum - Thread

Makavelee

""Finally.....""

Posts: 10,728

Reputation:

3rd Sep 07, 12:31am | Quote | Blogs | Profile | RSS Feed
FATAL ERRORRRRRR
"Cannon bends over for his Father" : They call me Gaz

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

3rd Sep 07, 12:41am | Quote | Blogs | Profile | RSS Feed
How much random stuff can be at the top of the page? Now we know!
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

3rd Sep 07, 12:42am | Quote | Blogs | Profile | RSS Feed
Debugging the forum and category sorting at the momento (looking for guidance here ; http://www.sitepoint.com/forums/sho...58#post3532358)

Anywho, you should expect that sort of stuff there. Neither of you registered either :/

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

3rd Sep 07, 1:10am | Quote | Blogs | Profile | RSS Feed
Well, no. It's a beta. Who the fuck wants to register for the beta? It spoils the suprise of the final release.
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

3rd Sep 07, 1:13am | Quote | Blogs | Profile | RSS Feed
As the two databases won't be merged, your userId there will follow through for final.

Therefore the sooner you register there the lower the userId you have.

Not that a userId matters like.

*azz0r notes, he's number 1

Makavelee

""Finally.....""

Posts: 10,728

Reputation:

3rd Sep 07, 1:21am | Quote | Blogs | Profile | RSS Feed
3, I rock!

Does that mean we are going to loose our thousands (of quality) posts?
"Cannon bends over for his Father" : They call me Gaz

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

3rd Sep 07, 1:23am | Quote | Blogs | Profile | RSS Feed
I'm undecided, the db has roughly 93 thousand posts...to write a script that can loop through that without taking out the server and ....

The idea of it just cut me off, no way, we'll have to start afresh and perhaps in time I'll write a script that will convert things over and do it a few thousand each week.

Makavelee

""Finally.....""

Posts: 10,728

Reputation:

3rd Sep 07, 1:24am | Quote | Blogs | Profile | RSS Feed
Dont delete the DB though, keep it live somewhere for historical purposes, wuggawoo classic!
"Cannon bends over for his Father" : They call me Gaz

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

3rd Sep 07, 1:42am | Quote | Blogs | Profile | RSS Feed

by Makavelee at 3rd Sep 2:24am

Dont delete the DB though, keep it live somewhere for historical purposes, wuggawoo classic!



And in Wugg Classic we can have an entire section devoted to Gaz.
XboxLIVE Gamertag: StickyModDB

Sticky

"Break it down, now."

Posts: 3,389

Reputation:

3rd Sep 07, 1:44am | Quote | Blogs | Profile | RSS Feed
And also, four.
XboxLIVE Gamertag: StickyModDB

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

3rd Sep 07, 1:51am | Quote | Blogs | Profile | RSS Feed
I wouldn't delete 93k posts, that'd be insane, theres alot of good shit here for the archive!

azz0r

"Put it where? You naughty boy"

Posts: 30,671

Reputation:

5th Sep 07, 12:35am | Quote | Blogs | Profile | RSS Feed
Note you can now post, albeit in one thread

- Added proper validation (classes with isValid functions) when signing up
- Post template is now an element and therefore usable in many places

Next up bbcode, icon and create thread.

For now, goodnight.