|
|
@@ -22,6 +22,7 @@ CREATE TABLE IF NOT EXISTS `bx_posts_posts` (
|
|
|
`reports` int(11) NOT NULL default '0',
|
|
|
`featured` int(11) NOT NULL default '0',
|
|
|
`allow_view_to` int(11) NOT NULL DEFAULT '3',
|
|
|
+ `disable_comments` tinyint(4) NOT NULL DEFAULT '0',
|
|
|
`status` enum('active','awaiting','hidden') NOT NULL DEFAULT 'active',
|
|
|
`status_admin` enum('active','hidden') NOT NULL DEFAULT 'active',
|
|
|
PRIMARY KEY (`id`),
|
|
|
@@ -383,7 +384,9 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
('bx_posts', 'bx_posts', 'published', '', '', 0, 'datetime', '_bx_posts_form_entry_input_sys_date_published', '_bx_posts_form_entry_input_date_published', '_bx_posts_form_entry_input_date_published_info', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0),
|
|
|
('bx_posts', 'bx_posts', 'attachments', '', '', 0, 'custom', '_bx_posts_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_posts', 'bx_posts', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
-('bx_posts', 'bx_posts', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
|
|
|
+('bx_posts', 'bx_posts', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+('bx_posts', 'bx_posts', 'disable_comments', '1', '', 0, 'switcher', '_bx_posts_form_entry_input_sys_disable_comments', '_bx_posts_form_entry_input_disable_comments', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0);
|
|
|
+
|
|
|
|
|
|
|
|
|
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
@@ -400,7 +403,8 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_posts_entry_add', 'allow_view_to', 2147483647, 1, 11),
|
|
|
('bx_posts_entry_add', 'location', 2147483647, 1, 12),
|
|
|
('bx_posts_entry_add', 'published', 192, 1, 13),
|
|
|
-('bx_posts_entry_add', 'do_publish', 2147483647, 1, 14),
|
|
|
+('bx_posts_entry_add', 'disable_comments', 192, 1, 14),
|
|
|
+('bx_posts_entry_add', 'do_publish', 2147483647, 1, 15),
|
|
|
|
|
|
('bx_posts_entry_delete', 'delete_confirm', 2147483647, 1, 1),
|
|
|
('bx_posts_entry_delete', 'do_submit', 2147483647, 1, 2),
|
|
|
@@ -418,8 +422,9 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_posts_entry_edit', 'covers', 2147483647, 1, 11),
|
|
|
('bx_posts_entry_edit', 'allow_view_to', 2147483647, 1, 12),
|
|
|
('bx_posts_entry_edit', 'location', 2147483647, 1, 13),
|
|
|
-('bx_posts_entry_edit', 'published', 192, 1, 14),
|
|
|
-('bx_posts_entry_edit', 'do_submit', 2147483647, 1, 15),
|
|
|
+('bx_posts_entry_edit', 'disable_comments', 192, 1, 14),
|
|
|
+('bx_posts_entry_edit', 'published', 192, 1, 15),
|
|
|
+('bx_posts_entry_edit', 'do_submit', 2147483647, 1, 16),
|
|
|
|
|
|
('bx_posts_entry_view', 'cat', 2147483647, 1, 1),
|
|
|
('bx_posts_entry_view', 'added', 2147483647, 1, 2),
|