Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   Fixing BBS (https://postpacific.mmorpg-game.online/showthread.php?t=5633)

Shawnmb 03.09.2006 21:16

Fixing BBS
 
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]

Make sure board_worldname is updated.

--------------

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

Explanation of parameters:

@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.

Thalone 03.09.2006 21:31

very nice share

Shawnmb 04.09.2006 00:16

Jeez 50+ views and only one response, Thanks Thal ^^

djvogans 04.09.2006 00:52

congrats my friend ..i know how much time u spend on it :)

paul 04.09.2006 01:49

I just read it :p

Thanks shawn this is good work.

Stazis 04.09.2006 04:46

SMB is quiet hard worker - he does not make a sound when he works - but when he finish - wooow - he says amazing things
thanks SMB - most of this was usefull even for me.

Shawnmb 04.09.2006 05:04

Argh now those kind of thanks are overkill :<

<3 though ^^
I hope you all find this useful :)

SlayerX 04.09.2006 05:06

U WORK GOOD ADMIN
10x

Kenjiro 04.09.2006 07:06

Great, thx a lot!

kgptzac 04.09.2006 07:08

09/04/2006 02:05:xx.xx4, Error sql: EXEC lin_GetIntro 1, 1 (0)
09/04/2006 02:05:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_GetIntro'.

what's that? :(

Shawnmb 04.09.2006 07:21

Do you get that on the comm server application?

ShinHawk 04.09.2006 07:27

nice stuff, worked perfectly, thanks ^^

vol4 04.09.2006 08:06

Quote:

Originally Posted by kgptzac (Post 66355)
09/04/2006 02:05:xx.xx4, Error sql: EXEC lin_GetIntro 1, 1 (0)
09/04/2006 02:05:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_GetIntro'.

what's that? :(

may be your lin2clancomm not have tables?


to all:
I have problem. Created TEST board, set permission to Read/Write/Post. When i'm trying to new post, i can't select Title and get message "Please make an entry in the field".

sorry for english...

Shawnmb 04.09.2006 08:26

"Fixing the “Title” dropdown box:"....

vol4 04.09.2006 08:42

Quote:

Originally Posted by Shawnmb (Post 66371)
"Fixing the “Title” dropdown box:"....

i'm stupid. thanks...

MuNLoK 04.09.2006 12:43

Full Working DBComm Script.

(Forum Structure from Retail server).

http://rapidshare.de/files/31918577/...ripts.rar.html

vol4 04.09.2006 13:23

I have already made it:) But thanks!

palace 04.09.2006 17:56

Favorite and Region have problem (can not find BBs)
Thank for share is perfect

aralyon 04.09.2006 19:17

Nice share, I'l try it, when I finish with petition :)

palace 04.09.2006 21:18

I am trying to put an announcement and when it accepts so that it places it it says to me: Please make entry in the field. that it can be that

Shawnmb 04.09.2006 23:36

Quote:

Originally Posted by palace (Post 66423)
Favorite and Region have problem (can not find BBs)
Thank for share is perfect

Fix for that is also outlined in the main post ^^

palace 05.09.2006 19:11

to update line

INSERT INTO board_keyword ( field_key, field_desc, field_type, field_order ) VALUES ( 'Announcements', 'Information', 2, 1 )
INSERT INTO board_keyword ( field_key, field_desc, field_type, field_order ) VALUES ( 'Update', 'Patch', 3, 2)

---------------------------------------------------

EXEC lin_MakeBoard 2, N'Official Announcements', N'General Information', 4, N'Admin', 0, 1, 2, 0, 0, 0, 12
EXEC lin_MakeBoard 2, N'Update Information', N'Patch Notes', 4, N'Admin', 0, 1, 3, 0, 0, 0, 12

palace 05.09.2006 20:22

Fixing the “Region” tab:

some person can explain or show a photo of which there is to make exactly to repair the error. it is the only that I need. and profit not to understand that part. Thanks

Shawnmb 05.09.2006 23:05

Quote:

Originally Posted by palace (Post 66562)
Fixing the “Region” tab:

some person can explain or show a photo of which there is to make exactly to repair the error. it is the only that I need. and profit not to understand that part. Thanks

Try this, this script should insert all the regional stuff into your board_list table. I haven't tested it but there's no reason it shouldn't work. Please report any problems or innaccuracies with it (typed location and names back in by hand, so you never know where I might have messed up, hehe)

SQL File: http://codemonkeh.com/Lineage2/Inser...;Lin2Comm].sql

Code paste:

Code:

/* Shawnmb */
USE [lin2comm]

DECLARE @RegionParentBid int

/* The Bid ID of the parent forum for the regional boards */
/* Change to fit your setup */
Set @RegionParentBid = '1'

/* Using MadeBoard stored procedures to add the regional boards */
EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Talking Island Territory',
                @description = N'Talking Island Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 1,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Gludin/Gludio Territory',
                @description = N'Gludio Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 2,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dark Elf Territory',
                @description = N'Dark Elven Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 3,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Elf Territory',
                @description = N'Elven Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 4,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dion Territory',
                @description = N'Dion Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 5,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Giran Territory',
                @description = N'Giran Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 6,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Neutral Zone Territory',
                @description = N'DMZ Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 7,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Orc Territory',
                @description = N'Orc Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 8,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dwarf Territory',
                @description = N'Dwarf Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 9,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Oren',
                @description = N'Oren Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 10,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Hunters Villiage',
                @description = N'Hunters Villiage Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 11,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Innadril Territory',
                @description = N'Heine Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 12,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Aden Territory',
                @description = N'Aden Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 13,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Rune Territory',
                @description = N'Rune Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 14,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Goddard Territory',
                @description = N'Goddard Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 15,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

GO


palace 06.09.2006 00:12

Ufffffffffffffffffffffff thank you very much friend, is perfect. Try some works exelente. Tomorrow I inform to him into any other error. I put the usuary photo and all Db together so that all can take advantage of it. Exelente and thank you very much. Excuse my english


All times are GMT. The time now is 21:40.