PDA

View Full Version : Simple PHP Forum?


winterdude
02-21-2009, 07:47 PM
Hello,

I am rather new to PHP, I know some of the basics, but anyways I was wondering if anyone would be able to point me in the right direction. I would like to create a simple PHP forum system that I could use for my site. I do not need anything fancy at all, the php forums that I am finding (MyBB, punBB, etc.) are to bulky for my liking. Just something that will allow users to post something and allow respond to those posts (while still being categorized into topics). So I guess what i'm really asking for here is how to create a sort of comment system on steroids. :lol:

amatocianmonk
02-22-2009, 01:23 PM
if you dont have a somewhat advanced knowledge of php, this may be a very daunting task. I would suggest you install phpBB on your site and learn about how it works. You have access to the phpBB source code, look through it and try to figure out how it works. Thats the best advise i could give

nuclearvapid
03-04-2009, 09:30 AM
WHS
you need to learn how to get your head around classes and how to cut up your templates for different displays. writing forms is the easy bit. phpbb just by installing it and looking at the file structures and playing with the templates will pretty mush give you a better idea of what you want to build and how to go about it.

and phpbb is not as weighty as drupal or joomla or moodle

bsxiong
03-04-2009, 01:42 PM
for starter,

Create 3 tables in your MYSQL: Category, Authors and Threads
and line the fields out like this:
Category:
id - primary (int)
name - (var #)

Author:
id - primary (int)
name - (var #)
password - (var #)
email - (var #)

Thread:
id - Primary (int)
category (int)
author - (int)
date ( datetime)


now for your php,

create a connection to your mysql and query the Category table. Now when you're in the Category page, Query once more to get a listing of threads with a field corresponding to the category ID. When you click on the Thread, the page should come up Querying the thread.

That is as simple as i can get.

how it look and how you will code it is up to you.
good luck