Autor: Paxton
Funkcje jakie posiada:
- Hot topics
- Stick topic
- Unstick topic
- Delete topic
- Delete post
- Delete Board
- Create board
- Reply to threads
- Showing stats of players
- Counting posts/views
- Emoticons
- Adding signature or not.
And more...
Opis instalacji:
Otw?rz plik index.php w g??wnej folderze Twojego ACC i linie podobn? do:
Zast?p j?:
Dodaj nowe linie:
W bazie danych wykonaj zapytanie:
[SQL]CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) default NULL,
`icon` int(5) default NULL,
`date` varchar(45) default NULL,
`time` varchar(30) default NULL,
`author` varchar(30) default NULL,
`board` int(5) default NULL,
`thread` int(20) default NULL,
`post` text,
`signature` int(5) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `threads` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`icon` int(5) default NULL,
`closed` int(5) default NULL,
`stick` int(5) NOT NULL,
`date` varchar(45) default NULL,
`time` varchar(30) default NULL,
`author` varchar(30) default NULL,
`board` int(5) default NULL,
`views` int(20) default NULL,
`last` int(40) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `forums` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255),
`description` text,
`closed` int(5) default NULL,
`access` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Zrzut danych tabeli `forums`
--
INSERT INTO `forums` (`id`, `name`, `description`, `closed`, `access`) VALUES
(2, 'First forum.', 'This is your first forum.', 0, 0); [/SQL]
Teraz ?ci?gnij .
Nast?pnie rozpakuj i umie?? je w folderze ACC. Otw?rz folder i skonfiguruj plik config.php
Funkcje jakie posiada:
- Hot topics
- Stick topic
- Unstick topic
- Delete topic
- Delete post
- Delete Board
- Create board
- Reply to threads
- Showing stats of players
- Counting posts/views
- Emoticons
- Adding signature or not.
And more...
Opis instalacji:
Otw?rz plik index.php w g??wnej folderze Twojego ACC i linie podobn? do:
PHP:
case "forum":
$topic = "Forum";
$subtopic = "forum";
include("forum.php");
break;
PHP:
case "forum":
$topic = "Forum";
$subtopic = "forum";
include("forum/forum.php");
break;
PHP:
case "board";
$subtopic = "board";
$topic = "Forums Board";
include("forum/board.php");
break;
case "thread";
$subtopic = "thread";
$topic = "Forums Board";
include("forum/thread.php");
break;
[SQL]CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) default NULL,
`icon` int(5) default NULL,
`date` varchar(45) default NULL,
`time` varchar(30) default NULL,
`author` varchar(30) default NULL,
`board` int(5) default NULL,
`thread` int(20) default NULL,
`post` text,
`signature` int(5) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `threads` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`icon` int(5) default NULL,
`closed` int(5) default NULL,
`stick` int(5) NOT NULL,
`date` varchar(45) default NULL,
`time` varchar(30) default NULL,
`author` varchar(30) default NULL,
`board` int(5) default NULL,
`views` int(20) default NULL,
`last` int(40) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `forums` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255),
`description` text,
`closed` int(5) default NULL,
`access` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Zrzut danych tabeli `forums`
--
INSERT INTO `forums` (`id`, `name`, `description`, `closed`, `access`) VALUES
(2, 'First forum.', 'This is your first forum.', 0, 0); [/SQL]
Teraz ?ci?gnij .
Nast?pnie rozpakuj i umie?? je w folderze ACC. Otw?rz folder i skonfiguruj plik config.php
PHP:
<?
//Host of your database
$dbhost = "localhost";
//Login yo your database
$dblogin = "root";
//Password to your database
$dbpass = "password";
//Name of your dataabse
$dbname = "myOTS";
//Set to true when you configure everything, the forum will start working.
$install = false;
//Max amount of threads per page
$max_threads = 10;
//Max amount of posts per page
$max_posts = 10;
//Name of the server
$world_name = "Florensia";
//Login to admin
$admin_login = "paxton";
//Password to admin
$admin_password = "mypassword";
//Dont touch
mysql_connect($dbhost, $dblogin, $dbpass);
mysql_select_db($dbname);
?>