![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Fixing the “Memo” tab:
Problem: Missing table. Fix: Code:
USE [lin2comm] GO /****** Object: Table [dbo].[user_memo] Script Date: 08/22/2006 07:55:34 ******/ /****** Shawnmb******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[user_memo]( [memo_id] [int] IDENTITY(1,1) NOT NULL, [insert_time] [datetime] NOT NULL CONSTRAINT [DF_user_memo_insert_time] DEFAULT (getdate()), [world_id] [int] NOT NULL, [char_id] [int] NOT NULL, [char_name] [nvarchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [account_id] [int] NOT NULL, [account_name] [nvarchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [memo_title] [nvarchar](128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [memo_text] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [deleted] [tinyint] NOT NULL CONSTRAINT [DF_user_memo_deleted] DEFAULT ((0)) ) ON [PRIMARY] -------------- Fixing the “Region” tab: Problem: Missing data from board_list Fix: In board_list there is a column named “location”. Setting Location to 0 makes the board section universal. Any number other than 0 is matched with the “bbs=” line in setting.txt. Note that race bans (example below) apply to the regional tab. Example: In setting.txt: (Snippets) point_name=[darkelf_town] banned_race={elf;[elf_town]} bbs=3 point_name=[elf_town] banned_race={darkelf;[darkelf_town]} bbs=4 Light elves in darkelf_town would be redirected to the Regional BBS for elf_town, while Dark Elves in elf_town would be redirected to the Regional BBS for darkelf_town. Location Data: Regional - Talking Island Territory 1 Regional - Gludin/Gludio Territory 2 Regional - Dark Elf Territory 3 Regional - Elf Territory 4 Regional - Dion Territory 5 Regional - Giran Territory 6 Regional - Neutral Zone Territory 7 Regional - Orc Territory 8 Regional - Dwarf Territory 9 Regional - Oren 10 Regional - Hunters Villiage 11 Regional - Innadril Territory 12 Regional - Aden Territory 13 Regional - Rune Territory 14 Regional - Goddard Territory 15 -------------- Fixing the “Title” dropdown box: Problem: When posting the “Title” dropdown box is empty, which prevents you from posting. Fix: The contents of the dropdown box are basically called “Keywords”. This can be fixed by properly creating the table in SQL. In board_list there is a “keyword_type” column (int). This column has to be matched to board_keyword (field_type). Example: In lin2comm.dbo.board_list: Board name: Example Keyword Type: 0 In lin2comm.dbo.board_keyword: field_key: “Post” field_desc: “Post” field_type: 0 field_order: 0 field_id: (identity) field_key: “Re:” field_desc: “Reply” field_type: 0 field_order: 1 field_id: (identity) -------------- Creating new sections: Example (SQL): Code:
USE [lin2comm] GO DECLARE @return_value int EXEC @return_value = [dbo].[lin_MakeBoard] @parent_bid = 0, @name = N'Test Board', @description = N'Woot', @type = 4, @admin = N'admin', @permission = 2, @world_id = 1, @keyword = 0, @location = 0, @classid = 0, @pledge_id = 0, @page_size = 11 SELECT 'Return Value' = @return_value GO @parent_bid – Used to create sub forums (?) ID of “parent” board. 0 for no parent. @name – Name of the board @description – Description of the board @type – 1 (System) 4 (User) @admin – Displayed admin name @permission – 2 (Read Only) 4 (Read / Post) 12 (Read / Post / Reply) 255 (Advanced) @world_id – World ID (tied to lin2comm.dbo.board_worldname ?) @keyword – Explained above, Keyword_type @location – Explained above, Regional or 0 for universal @classid – Unchecked @pledge_id – Unchecked @page_size – Posts displayed per page -------------- Adding board moderators: (This was quickly added) Open board_rest table char_id = Moderators character ID pledge_id = Leave this at 0 bid = bid number of the section for which this character is moderator (board_list) world_id = Generally set to 1 permission = 255 to give them a full permission set rest_id is an identity, leave it alone. If you have any further questions or need help, just ask. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|