Originally created and published by Evert Padje for Nettuts+ ( https://code.tutsplus.com/tutorials/how-to-create-a-phpmysql-powered-forum-from-scratch--net-10188 ).
Hello, Before you proceed to setup, you should read the original article at Nettuts+ (17 Mar 2010). NOT all the information is up to date. The version that I uploaded is PHP7 ready and tested by me ! If you consider to create the database manually, proceed to the following (NOT like written in the article) in phpMyAdmin: 1. Create a databse. 2. Go to SQL and create "Users" table -
3. Go to SQL and create "Categories" table -
4. Go to SQL and create "Topics" table -
5. Go to SQL and create "Posts" table -
NOTE 1: After you create a user to be administrator, you will need to change in "Users" table the "user_level" from 0 to 1 for this user ! NOTE 2: Open the file "connect.php" in text editor and setup the database connection parameters !
NOTE: If you read this post and DO NOT have the archives from earlier times and as a result, not in a position of using them (download links expired), please, check the new post with all updates and fixes included -
#Update 1 - For those who would like to update this forum to a wide version, the recommended settings are here: 1a. Update inside style.css file - change from:
to:
1b. Update header.php file - change from:
2. Update inside create_cat.php file - change from:
3. Update inside create_topic.php file - change from:
4. Update inside topic.php file - change from:
#Update 2 - Additional visual upgrade: Update inside style.css file - change from:
and then add:
Note: If there is no change, clear the history of the browser! #Update 3 - Adding an icon to the browser tab: Update inside header.php file - add the following:
after:
Download the icons from here (add both of them):
#Update 4 - Adding a pagination to "Topics": 1. Update inside index.php file - change from:
2. Update inside category.php file - add this:
after this:
3. Update inside category.php file - add this:
4. Update inside category.php file - change from:
#Update 5 - Official HTML5 declaration for client: Update inside header.php file - change from:
#Bug fix 1 - Not a fully correct phrase regarding home page: 1. Update inside index.php file - change from:
#Bug fix 2 - Doesn't display HTML tags properly: 1. Update inside index.php file - change from:
2. Update inside topic.php file - change from:
3. Update inside category.php file - change from:
NOTE: Category title still cannot display HTML tags properly! #Bug fix 3 - wrap="hard" doesn't work properly in texterea tags: 1. Update inside create_cat.php file - change from:
2. Update inside create_topic.php file - change from:
3. Update inside topic.php file - change from: