• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTForum! 1.0 Beta

Paxton

Banned User
Joined
Feb 23, 2008
Messages
4,110
Reaction score
48
Location
London, UK
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.

- 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);
?>
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:
 

Attachments

Last edited by a moderator:
oo.. i have to use this =D

Edit Post, I already has that one xD
Florensia.
 
Last edited by a moderator:
that's greaat! good job paxton:D My favorite phper!
 
What should we add in layout? beucase it doesn't come when I click on forum!
 
mmm i think bug founded.. i cant have more than 1 thread D;

same here, can't add more :p

nvm, works for me, I can more than one. Sorry about all the posts!
 
Last edited by a moderator:
Great job, is this for Gesior AAC?

You could also add ban feature.
 
nice, but is bugged, don't show options to add new forum, close topic etc =[
 
Warning: include(forum/config.php) [function.include]: failed to open stream: No such file or directory in ******\htdocs\forum\board.php on line 30

Warning: include() [function.include]: Failed opening 'forum/config.php' for inclusion (include_path='.;*******\php\pear\') in D:\strona\xampp\htdocs\forum\board.php on line 30

Warning: include(forum/functions.php) [function.include]: failed to open stream: No such file or directory in ********xampp\htdocs\forum\board.php on line 31

Warning: include() [function.include]: Failed opening 'forum/functions.php' for inclusion (include_path='.;******\xampp\php\pear\') in D:\strona\xampp\htdocs\forum\board.php on line 31

Fatal error: Call to undefined function timenow() in ******\*****\htdocs\forum\board.php on line 33

;/
 
Back
Top