![]() |
|
|
#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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 134
|
very nice share
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Jeez 50+ views and only one response, Thanks Thal ^^
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
congrats my friend ..i know how much time u spend on it
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Feb 2005
Posts: 390
|
I just read it
![]() Thanks shawn this is good work. |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2005
Posts: 200
|
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. |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Argh now those kind of thanks are overkill :<
<3 though ^^ I hope you all find this useful
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Dec 2005
Posts: 82
|
U WORK GOOD ADMIN
10x |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Apr 2006
Posts: 120
|
Great, thx a lot!
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jan 2006
Posts: 363
|
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?
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Do you get that on the comm server application?
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Feb 2006
Posts: 154
|
nice stuff, worked perfectly, thanks ^^
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Apr 2006
Posts: 179
|
Quote:
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... |
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
"Fixing the “Title” dropdown box:"....
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Apr 2006
Posts: 179
|
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Sep 2005
Posts: 255
|
Full Working DBComm Script.
(Forum Structure from Retail server). http://rapidshare.de/files/31918577/...ripts.rar.html |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Apr 2006
Posts: 179
|
I have already made it
But thanks!
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
Favorite and Region have problem (can not find BBs)
Thank for share is perfect |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Sep 2005
Posts: 72
|
Nice share, I'l try it, when I finish with petition
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
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
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
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 |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
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 |
|
|
|
|
#24 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Quote:
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 |
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
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
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|