Paxton
Banned User
Hello guys
I'm a bit tied because I wrote quite huuge script.
So it's a forum for OT Acc maker which is just like Tibia.com forum.
Alright, so Im expecting a lot of bugs but personally I didn't find none, and ofcourse there is not that much functions but there is some.
I was too lazy to do installation file, so here its small tutorial
INSTALLATION
Open index.php in your main ACC Folder and find lines similar to this:
Replace it with:
Add new lines:
Go to Database and execute this SQL:
Now, download the script from here:
forum.zip
Also official support there.
Unarchive the folder 'forum' into your main acc folder.
Go to this folder and open file config.php and configure it, you got comments there anyway so I don't need to explain it.
BUG WITH MULTIPLE FORUMS FIXED!
FIXED BUG WITH TITLE OF THREAD/POST
FIXED BUG WITH ADMIN
FIXES WITH DELETING THREADS
To people that will actually read the code, so sorry for that but the code is completly mixed up with everything ;( I'm really tied, anyway it's working lol. I can understand that you may experience some difficulties reading the code.
Don't forget to rep me!
Also donations I accept at PayPal:
I'm a bit tied because I wrote quite huuge script.
So it's a forum for OT Acc maker which is just like Tibia.com forum.
Alright, so Im expecting a lot of bugs but personally I didn't find none, and ofcourse there is not that much functions but there is some.
- 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.
Some more but can't remember.
I was too lazy to do installation file, so here its small tutorial
INSTALLATION
Open index.php in your main ACC Folder and find lines similar to this:
PHP:
case "forum":
$topic = "Forum";
$subtopic = "forum";
include("forum.php");
break;
Replace it with:
PHP:
case "forum":
$topic = "Forum";
$subtopic = "forum";
include("forum/forum.php");
break;
Add new lines:
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;
Go to Database and execute this SQL:
PHP:
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);
Now, download the script from here:
forum.zip
Also official support there.
Unarchive the folder 'forum' into your main acc folder.
Go to this folder and open file config.php and configure it, you got comments there anyway so I don't need to explain it.
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);
?>
FIXED BUG WITH TITLE OF THREAD/POST
FIXED BUG WITH ADMIN
FIXES WITH DELETING THREADS
To people that will actually read the code, so sorry for that but the code is completly mixed up with everything ;( I'm really tied, anyway it's working lol. I can understand that you may experience some difficulties reading the code.
Don't forget to rep me!
Also donations I accept at PayPal:
Attachments
-
forum.zip54.1 KB · Views: 10 · VirusTotal
Last edited by a moderator: