From 19e0bfbdbe157975d4688ecbae9f831971821107 Mon Sep 17 00:00:00 2001 From: Leendert Bottelberghs Date: Tue, 17 Aug 2004 14:39:38 +0000 Subject: [PATCH] Added message preview functionality. RFE[991000] --- docs/create.sql | 3 +++ docs/upgrades/upgrade_6.1.1-6.2.0.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/create.sql b/docs/create.sql index 4db0784e2..694b43b54 100644 --- a/docs/create.sql +++ b/docs/create.sql @@ -969,6 +969,7 @@ CREATE TABLE forum ( threadTemplateId int(11) NOT NULL default '1', postTemplateId int(11) NOT NULL default '1', postformTemplateId int(11) NOT NULL default '1', + postPreviewTemplateId int(11) NOT NULL default '1', notificationTemplateId int(11) NOT NULL default '1', searchTemplateId int(11) NOT NULL default '1', archiveAfter int(11) NOT NULL default '31536000', @@ -976,6 +977,7 @@ CREATE TABLE forum ( threadsPerPage int(11) NOT NULL default '30', masterForumId int(11) default NULL, groupToView int(11) NOT NULL default '7', + usePreview int(11) NOT NULL default '1', PRIMARY KEY (forumId) ) TYPE=MyISAM; @@ -1656,6 +1658,7 @@ INSERT INTO template VALUES (1,'Default Homelink','\">','Macro/r_printable',1,1); INSERT INTO template VALUES (1,'Default LoginToggle','\">','Macro/LoginToggle',1,1); INSERT INTO template VALUES (1,'Attachment Box','

\r\n \r\n \r\n \r\n \r\n
\r\n\">/attachment.gif\" border=\"0\" alt=\"\">\r\n\">\" align=\"middle\" width=\"16\" height=\"16\" border=\"0\" alt=\"\">\r\n
\r\n

\r\n','AttachmentBox',1,1); +INSERT INTO TEMPLATE VALUES (1,'Default Post Preview','

\n\n

\n\n\n\n\n\n
\n\n
\n\n\n\n\n','Forum/PostPreview',1,1); -- -- Table structure for table `theme` diff --git a/docs/upgrades/upgrade_6.1.1-6.2.0.sql b/docs/upgrades/upgrade_6.1.1-6.2.0.sql index 14538db43..092ff8880 100644 --- a/docs/upgrades/upgrade_6.1.1-6.2.0.sql +++ b/docs/upgrades/upgrade_6.1.1-6.2.0.sql @@ -267,3 +267,6 @@ create table urls ( ); alter table page drop column id; +alter table forum add postPreviewTemplateId varchar(22) NULL after postformTemplateId; +alter table forum add usePreview int(11) NOT NULL default 1; +INSERT INTO TEMPLATE VALUES (1,'Default Post Preview','

\n\n

\n\n\n\n\n\n
\n\n
\n\n\n\n\n','Forum/PostPreview',1,1);