Thread: Fixing BBS
View Single Post
Old 05.09.2006, 23:05   #24
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Quote:
Originally Posted by palace View Post
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
Shawnmb is offline