Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • Coding A Forum Software?
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
Coding A Forum Software?
Topic Started: Feb 7 2010, 04:28 PM (229 Views)
Connor Feb 7 2010, 04:28 PM Post #1
I know some HTML/CSS and PHP. Well, Kinda...

Posts:
13
Group:
Member
Member
#3,206
Joined:
Jun 13, 2009
Coding language
HTML/CSS
I have edited forum scripts in the past but never started from scratch.
Can someone please tell me the first steps in coding a PHP code that will make a basic index and forum pages and such.
Once I have a simple script to start off of, I can take it from there.
Offline Profile Quote Post Goto Top
 
slayer766 Feb 7 2010, 07:07 PM Post #2
Member Avatar
Hello all

Posts:
1,652
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
A forum software is quite a process if you want a lot of stuff to it.

Something I've had in development for almost a year, with work on and off occasionally: http://slayforum.slayer766.com/forumindex.php

Your forumindex file would be the main file, containing information stored in a MySQL database such as topics, users, online users, messages, posts, categories, etc.


Do you have a registration & login system? Will you find a free one on the net or create your own? It's best to create your own so you can get more practice with settings cookies/sessions, doing a proper error check for login/registration details and such. You can start off by having a basic registration & login system to store registered users in your database and then on another php file you would throw in some HTML tables to have a forum layout have just some space holders for the topics at the time. On login, you would need to decide with either a session or cookie. Recommend you to set with a cookie, later on you can have the option to make a checkbox for the remember me and just log them in with a session. Sessions are best kept with admin control panels.

You would need tables in your database for category, topic, posts, users. Create a category and a topic manually in your database, and then your forum index file you would just pull the info from that table to output the info, and make a link for a forum page(showtopic/topic/viewforum/whatever).

Just let me know what you think and if you need help getting the registration & login system or however you want to start.
Posted Image
Thanks Helena for the siggah!!!
Offline Profile Quote Post Goto Top
 
Reid Feb 7 2010, 08:07 PM Post #3
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Coding language
JavaScript
Just be sure your login details are stored securely... instead of storing passwords directly, use hashes.

For example, if I put in the password roflcopters then you should:

1. Add a random salt to the end of it, i.e. yes,IdoinfactlikeCheese,butthereareonly388typ3sof{}thatArefancyenoughforme will do.

2. Take that and use SHA to make it into a hash

Hashes are unique in that they are one way, so if someone gets your database somehow all they have are a bunch of hashes; they don't know the actual passwords.
Posted Image
Offline Profile Quote Post Goto Top
 
slayer766 Feb 7 2010, 08:12 PM Post #4
Member Avatar
Hello all

Posts:
1,652
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
I'll hash you... <_<
Posted Image
Thanks Helena for the siggah!!!
Offline Profile Quote Post Goto Top
 
Connor Feb 8 2010, 10:29 AM Post #5
I know some HTML/CSS and PHP. Well, Kinda...

Posts:
13
Group:
Member
Member
#3,206
Joined:
Jun 13, 2009
Coding language
HTML/CSS
Looks Cool slayer.
Mind making a basic index script for me to base mine off of please?
Offline Profile Quote Post Goto Top
 
Connor Feb 8 2010, 10:48 AM Post #6
I know some HTML/CSS and PHP. Well, Kinda...

Posts:
13
Group:
Member
Member
#3,206
Joined:
Jun 13, 2009
Coding language
HTML/CSS
I found a ful tutorial. I may use.
Anyone want to help?
Offline Profile Quote Post Goto Top
 
slayer766 Feb 9 2010, 03:47 PM Post #7
Member Avatar
Hello all

Posts:
1,652
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
I'll help you, post what you have.
Posted Image
Thanks Helena for the siggah!!!
Offline Profile Quote Post Goto Top
 
Connor Feb 9 2010, 05:48 PM Post #8
I know some HTML/CSS and PHP. Well, Kinda...

Posts:
13
Group:
Member
Member
#3,206
Joined:
Jun 13, 2009
Coding language
HTML/CSS
I have http://softbb.ulmb.com so far.
Offline Profile Quote Post Goto Top
 
Gorgor Feb 9 2010, 05:51 PM Post #9
Hello

Posts:
1,182
Group:
Coding Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
ConnorRSPF
Feb 9 2010, 05:48 PM
I have http://softbb.ulmb.com so far.
That makes Google Chrome freeze as well as make Adobe stop working for me...
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
This forum is closed. Please visit http://zetascript.co.cc
Offline Profile Quote Post Goto Top
 
Connor Feb 9 2010, 05:58 PM Post #10
I know some HTML/CSS and PHP. Well, Kinda...

Posts:
13
Group:
Member
Member
#3,206
Joined:
Jun 13, 2009
Coding language
HTML/CSS
Works fine for myself and everyone else...
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code University · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 4:18 PM Sep 3
Hosted for free by ZetaBoards