TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-14-2007, 10:58 AM   #1 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default forum

Can someone write a forum tutorial??
I'd love to learn
Tanax is offline  
Reply With Quote
Old 12-14-2007, 11:59 AM   #2 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Start building it and we'll help you in between.
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-14-2007, 12:46 PM   #3 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Haha, but I have no idea, or well, I might have some.. but I'm still not very good, so the code will be really bad =//
Tanax is offline  
Reply With Quote
Old 12-14-2007, 12:54 PM   #4 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Make a planning:

What does a forum need?
- Users
- Subforum
- Topic
- Posts
- BB Code

If you know this you can think of how to write it.
- Start with users (login + register)
- Create subforum list
- Create topic list under the subforum page
- Create posts under topic

These are the basics thoughts behind a forum. It's more easy than you would think. :)
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 12-14-2007, 01:24 PM   #5 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by Jim View Post
Make a planning:

What does a forum need?
- Users
- Subforum
- Topic
- Posts
- BB Code

If you know this you can think of how to write it.
- Start with users (login + register)
- Create subforum list
- Create topic list under the subforum page
- Create posts under topic

These are the basics thoughts behind a forum. It's more easy than you would think. :)
Yea, but then it doesn't end there.
For example; users..
You need to decide what features users should have, for example users online, user groups, user profiles, etc..

Also, the hardest thing I can think of, is the template system.
I would want a different template for each view.
For example, a template for the postbit, a template for the navbar, a template for the forum index, a template for the thread view, a template for the topic view.

And so on..
And that's difficult! xD
Tanax is offline  
Reply With Quote
Old 12-14-2007, 01:28 PM   #6 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

A template parser isn't that hard. Create the base of the forum first, then think about such stuff. You will spend quite some hours in the base already :)
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 12-14-2007, 01:44 PM   #7 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

One thing at a time, Tanax. Think and make the basic stuff first, and think about the addons after that. Don't think in advance unless you're absolutely obliged to. Example: start with the user system, as sugested. The most basic authentication scenario is this: user enters his username and password and he is allowed to post a topic. Otherwise, only show that topic, without allowing posting. Then, when you have the most basic system set-up, you will have plenty of time to add more features and options, whilst have a working system.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 12-14-2007, 02:04 PM   #8 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Hm, alright, I'll have a go at it later then ;) But it's a quite complicated task, so it'll take alot of time :|
Tanax is offline  
Reply With Quote
Old 12-14-2007, 02:22 PM   #9 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

I have written quite some fora/forums (in dutch its fora, don't know about english o_O), you can always email/msn me for questions.
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 12-14-2007, 02:38 PM   #10 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by Jim View Post
I have written quite some fora/forums (in dutch its fora, don't know about english o_O), you can always email/msn me for questions.
Why don't you write a tutorial?

It's called forum btw
Tanax is offline  
Reply With Quote
Old 12-14-2007, 02:44 PM   #11 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

I mean forum in plural. :P

Writing a tutorial about it would take quite some time, writing a forum is not a small thing. :)
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 12-14-2007, 02:45 PM   #12 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Since, it's your personal project, ignore the 'quote a client' part.

Go and make the project plan.

Planning your project

It'll help a lot initially.
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-14-2007, 03:04 PM   #13 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Forums are awfully big things to make. I know this may sound like circular logic, but if you don't know how to start making one, you probably shouldn't be doing this.

Either way, here is a tutorial I found on google
http://www.phpeasystep.com/workshopview.php?id=12
__________________

Village Idiot is offline  
Reply With Quote
Old 12-14-2007, 03:10 PM   #14 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Starting off with don't even knowing how to start... (Nice sentence! I am like Houdini, but with words) That's NOT a good start. One simple question, have you ever made something complex like an advanced login system, something with GD library or or maybe a news system?

Simply an advice, start off with something simple like creating a database, a planing (like Village Idiot, the darkside man said) and then just work your way up from there.

Your scripts don't have to be 100% correct at the first attempt. I know I have rewritten my mySQL Class handle about 5 times. Most of my knowledge gained here is mainly the reason and maybe the problem for that.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-14-2007, 03:12 PM   #15 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Here is what forums look like when people who arent ready to make one do it (yes, I am talking about me back in the day)
Your old code?
__________________

Village Idiot is offline  
Reply With Quote
Old 12-14-2007, 06:51 PM   #16 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

if its your first forum or 'big' application, just build somthing small (a very very simple forum, doesnt have to have templates and stuff) just start off basic then build on it.
I think writing a full tutorial on how to create a forum would be a mammoth task, alot of people dont have the time :(.
Just remember : KISS (Keep It Simple Stupid), you cant expect to jump right in and code somthing with as much features as PHPBB etc, it just isnt possible.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-14-2007, 07:03 PM   #17 (permalink)
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default

This tutorial might be a bit advanced for you, but it's very detailed, you could at least check it out.
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote
Old 12-14-2007, 08:08 PM   #18 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by CMellor View Post
This tutorial might be a bit advanced for you, but it's very detailed, you could at least check it out.
Already checked it out, and it's too simple xD I mean, the forum :P
But I might just start off with that and build on top of that..

Anyways, I belive that doing a plan might be a really good thing.

Thanks for all the advices!
Tanax is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:47 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design