Jump to content

Simple Forum.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
HIYA ppl I was wondering if there was any way for me to put a simple forum on my website? I don't know a lick of PHP so I need like a pre-made one that you can upload like this one http://www.phpbb.com/ but I have now idea how the crap to set it up so does any one else know of something like this that is simple to set up?

Thanks, Tanner.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#2
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
I'm sure you have answerd your own question, there are plenty easy to install forums!

Each have easy to read documentation, or just use Google!

http://www.phpbb.com
http://www.simplemachines.org/
http://www.mybboard.net/

Edited by Bioshox, 03 March 2010 - 01:54 AM.


#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
You install phpBB by doing this.

1. Download it from www.phpbb.com
2. Extract it to your harddrive
3. Upload it to your server with your favourite FTP Program, prefferly to a sub folder named "forum" or whatever you want it to be
4. Open your browser and surf your web hotel with /forum addon to the url (or whatever name you choosed in step 3)
5. Follow Instructions on screen. When told, do #6
6. Delete the directory /forum/install
7. Start using it.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#4
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts

Orjan said:

You install phpBB by doing this.

1. Download it from www.phpbb.com
2. Extract it to your harddrive
3. Upload it to your server with your favourite FTP Program, prefferly to a sub folder named "forum" or whatever you want it to be
4. Open your browser and surf your web hotel with /forum addon to the url (or whatever name you choosed in step 3)
5. Follow Instructions on screen. When told, do #6
6. Delete the directory /forum/install
7. Start using it.

Dont forget to CHMOD to 777 all your files and folders within the forum, then delete the Install directory when your finished.

#5
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts

Bioshox said:

I'm sure you have answerd your own question, there are plenty easy to install forums!

Each have easy to read documentation, or just use Google!

http://www.phpbb.com
http://www.simplemachines.org/
http://www.mybboard.net/

Thanks alot I used the second link and got it set up fairly easy. +rep
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#6
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
No problem sir, glad I could help you out.

#7
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Well.. I really would suggest vBulletin 4 to you :D but it costs very much so don't use that for beginning.. I suggest phpBB or SMF. They are best free forum software around here at the moment (untill I'll release my own ;))

#8
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts

Jaan said:

Well.. I really would suggest vBulletin 4 to you :D but it costs very much so don't use that for beginning.. I suggest phpBB or SMF. They are best free forum software around here at the moment (untill I'll release my own ;))

Id love to try that one out when it's finished ;)!

#9
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Ehehe.. Well I haven't started with it.. :D too busy with my hosting site and my design site.. :/ but I promise one day I will start coding it :D

#10
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
Jaan you should team up with Davide as he's thinking of starting a custom forum software. Although there's lots of work to be done, getting a good team together will definitley help!

#11
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts

James.H said:

Jaan you should team up with Davide as he's thinking of starting a custom forum software. Although there's lots of work to be done, getting a good team together will definitley help!

We know each other, don't worry ;). I just talked to him.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#12
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
For those who want to start this project, a good starting point is with the forum php to myql connect.

This my code for my forum I made a few years ago: http://k5p.com/rpg_script/forum.php

 <?php  
    ob_start(); // allows you to use cookies
   $db = "FORUM NAME"; // Database name
   $conn = mysql_connect("localhost","FORUM DB USER","FORUM DB PASS");
   mysql_select_db($db) or die(mysql_error());

   //fill in the above lines where there are capital letters.

   $logged = mysql_query("SELECT * from users WHERE id='$_COOKIE[id]'");
   $logged = mysql_fetch_array($logged);
   //the above lines get the user's information from the database.
   
      //Define some variables

   $username = $logged['username'];
   $user_id = $logged['id'];  
   $user_level = $logged['level'];       //This determines usergroup (admin, normal user, banned etc..)
   
      //Online/offline code

   $offline = 300;  
   $current = time(); 
   $offline = $current - $offline;

   if ( strlen($logged['username']) > 0 ){
   @mysql_query("UPDATE `users` SET `online` = '$current' WHERE username = '{$logged[username]}'") or die( mysql_error() );
   }
   //End online/offline
   ?>

This is the config.php (php to mysql connect) for a vbulletin forum:

<?php
	//	****** DATABASE TYPE ******
	//	This is the type of the database server on which your vBulletin database will be located.
	//	Valid options are mysql and mysqli, for slave support add _slave.  Try to use mysqli if you are using PHP 5 and MySQL 4.1+
	// for slave options just append _slave to your preferred database type.
$config['Database']['dbtype'] = 'mysql';

	//	****** DATABASE NAME ******
	//	This is the name of the database where your vBulletin will be located.
	//	This must be created by your webhost.
$config['Database']['dbname'] = 'FORUM NAME';

	//	****** TABLE PREFIX ******
	//	Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

	//	****** TECHNICAL EMAIL ADDRESS ******
	//	If any database errors occur, they will be emailed to the address specified here.
	//	Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = 'EMAIL ADDRESS';

	//	****** FORCE EMPTY SQL MODE ******
	// New versions of MySQL (4.1+) have introduced some behaviors that are
	// incompatible with vBulletin. Setting this value to "true" disables those
	// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



	//	****** MASTER DATABASE SERVER NAME AND PORT ******
	//	This is the hostname or IP address and port of the database server.
	//	If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

	//	****** MASTER DATABASE USERNAME & PASSWORD ******
	//	This is the username and password you use to access MySQL.
	//	These must be obtained through your webhost.
$config['MasterServer']['username'] = 'FORUM DB USER';
$config['MasterServer']['password'] = 'FORUM DB PASS';
 ?>