Browse Source

(maktakien) Community Board update

NewAge 19 years ago
parent
commit
0559b590d6

+ 11 - 0
datapack_development/data/html/CommunityBoard/1.htm

@@ -0,0 +1,11 @@
+<html>
+<body>
+<br>
+<br>
+<center>
+Hello  !<br>
+<br>
+<br><a action="bypass _bbstop">Return to the main page</a><br>
+</center>
+</body>
+</html>

+ 22 - 0
datapack_development/data/html/CommunityBoard/index.htm

@@ -0,0 +1,22 @@
+<html>
+<body>
+<br>
+<br>
+<center>
+Welcome to your new community board  !<br>
+<br>
+Admin, you can customize this file by editing the file index.htm, in directory 
+'data/html/ComunityBoard' of your DataPack.<br><br><br>
+You can also make links like : <a action="bypass _bbstop;1">My link</a><br>
+The link must be bypass _bbstop;X with X a integer like bypass _bbstop;1<br>
+The link bypass _bbstop;1 shows the file 1.htm of your 'data/html/ComunityBoard',
+bypass _bbstop;2 the file 2.html etc...<br><br>
+<br>
+Community Board can support html 3 times longer than a classical npc dialog html !
+<br>
+<br>
+<br><br><br>
+Be Careful : client crashes if the html is not valid for it !
+</center>
+</body>
+</html>

+ 19 - 0
datapack_development/sql/forums.sql

@@ -0,0 +1,19 @@
+-- ---------------------------
+-- Table structure for forums
+-- ---------------------------
+CREATE TABLE `forums` (
+  `forum_id` int(8) NOT NULL default '0',
+  `forum_name` varchar(255) NOT NULL default '',
+  `forum_parent` int(8) NOT NULL default '0',
+  `forum_post` int(8) NOT NULL default '0',
+  `forum_type` int(8) NOT NULL default '0',
+  `forum_perm` int(8) NOT NULL default '0',
+  `forum_owner_id` int(8) NOT NULL default '0',
+  UNIQUE KEY `forum_id` (`forum_id`)
+);
+
+
+INSERT INTO `forums` VALUES (1, 'NormalRoot', 0, 0, 0, 1, 0);
+INSERT INTO `forums` VALUES (2, 'ClanRoot', 0, 0, 0, 0, 0);
+INSERT INTO `forums` VALUES (3, 'MemoRoot', 0, 0, 0, 0, 0);
+INSERT INTO `forums` VALUES (4, 'MailRoot', 0, 0, 0, 0, 0);

+ 12 - 0
datapack_development/sql/posts.sql

@@ -0,0 +1,12 @@
+-- ---------------------------
+-- Table structure for posts
+-- ---------------------------
+CREATE TABLE `posts` (
+  `post_id` int(8) NOT NULL default '0',
+  `post_owner_name` varchar(255) NOT NULL default '',
+  `post_ownerid` int(8) NOT NULL default '0',
+  `post_date` decimal(20,0) NOT NULL default '0',
+  `post_topic_id` int(8) NOT NULL default '0',
+  `post_forum_id` int(8) NOT NULL default '0',
+  `post_txt` text NOT NULL
+);

+ 13 - 0
datapack_development/sql/topic.sql

@@ -0,0 +1,13 @@
+-- ---------------------------
+-- Table structure for topic
+-- ---------------------------
+CREATE TABLE `topic` (
+  `topic_id` int(8) NOT NULL default '0',
+  `topic_forum_id` int(8) NOT NULL default '0',
+  `topic_name` varchar(255) NOT NULL default '',
+  `topic_date` decimal(20,0) NOT NULL default '0',
+  `topic_ownername` varchar(255) NOT NULL default '0',
+  `topic_ownerid` int(8) NOT NULL default '0',
+  `topic_type` int(8) NOT NULL default '0',
+  `topic_reply` int(8) NOT NULL default '0'
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;