|
@@ -7,6 +7,7 @@ CREATE TABLE IF NOT EXISTS `bx_convos_conversations` (
|
|
|
`added` int(11) NOT NULL,
|
|
`added` int(11) NOT NULL,
|
|
|
`changed` int(11) NOT NULL,
|
|
`changed` int(11) NOT NULL,
|
|
|
`text` text NOT NULL,
|
|
`text` text NOT NULL,
|
|
|
|
|
+ `allow_edit` tinyint(4) NOT NULL DEFAULT '0',
|
|
|
`views` int(11) NOT NULL default '0',
|
|
`views` int(11) NOT NULL default '0',
|
|
|
`comments` int(11) NOT NULL default '0',
|
|
`comments` int(11) NOT NULL default '0',
|
|
|
`last_reply_timestamp` int(11) NOT NULL,
|
|
`last_reply_timestamp` int(11) NOT NULL,
|
|
@@ -128,6 +129,7 @@ INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`,
|
|
|
('bx_convos', 'bx_convos_entry_view', 'bx_convos', 1, '_bx_cnv_form_entry_display_view');
|
|
('bx_convos', 'bx_convos_entry_view', 'bx_convos', 1, '_bx_cnv_form_entry_display_view');
|
|
|
|
|
|
|
|
INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
|
|
INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
|
|
|
|
|
+('bx_convos', 'bx_convos', 'allow_edit', 1, '', 0, 'switcher', '_bx_cnv_form_entry_input_sys_allow_edit', '_bx_cnv_form_entry_input_allow_edit', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
|
|
|
('bx_convos', 'bx_convos', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_cnv_form_entry_input_sys_delete_confirm', '_bx_cnv_form_entry_input_delete_confirm', '_bx_cnv_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_cnv_form_entry_input_delete_confirm_error', '', '', 1, 0),
|
|
('bx_convos', 'bx_convos', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_cnv_form_entry_input_sys_delete_confirm', '_bx_cnv_form_entry_input_delete_confirm', '_bx_cnv_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_cnv_form_entry_input_delete_confirm_error', '', '', 1, 0),
|
|
|
('bx_convos', 'bx_convos', 'do_submit', '_bx_cnv_form_entry_input_do_submit', '', 0, 'submit', '_bx_cnv_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
('bx_convos', 'bx_convos', 'do_submit', '_bx_cnv_form_entry_input_do_submit', '', 0, 'submit', '_bx_cnv_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_convos', 'bx_convos', 'submit_text', '', '', 0, 'custom', '_bx_cnv_form_entry_input_sys_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
('bx_convos', 'bx_convos', 'submit_text', '', '', 0, 'custom', '_bx_cnv_form_entry_input_sys_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
@@ -142,19 +144,21 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
|
|
|
('bx_convos_entry_add', 'recipients', 2147483647, 1, 1),
|
|
('bx_convos_entry_add', 'recipients', 2147483647, 1, 1),
|
|
|
('bx_convos_entry_add', 'text', 2147483647, 1, 2),
|
|
('bx_convos_entry_add', 'text', 2147483647, 1, 2),
|
|
|
('bx_convos_entry_add', 'attachments', 2147483647, 1, 3),
|
|
('bx_convos_entry_add', 'attachments', 2147483647, 1, 3),
|
|
|
-('bx_convos_entry_add', 'submit_block', 2147483647, 1, 4),
|
|
|
|
|
-('bx_convos_entry_add', 'do_submit', 2147483647, 1, 5),
|
|
|
|
|
-('bx_convos_entry_add', 'submit_text', 2147483647, 1, 6),
|
|
|
|
|
-('bx_convos_entry_add', 'draft_id', 2147483647, 1, 7),
|
|
|
|
|
|
|
+('bx_convos_entry_add', 'allow_edit', 2147483647, 1, 4),
|
|
|
|
|
+('bx_convos_entry_add', 'submit_block', 2147483647, 1, 5),
|
|
|
|
|
+('bx_convos_entry_add', 'do_submit', 2147483647, 1, 6),
|
|
|
|
|
+('bx_convos_entry_add', 'submit_text', 2147483647, 1, 7),
|
|
|
|
|
+('bx_convos_entry_add', 'draft_id', 2147483647, 1, 8),
|
|
|
|
|
|
|
|
('bx_convos_entry_edit', 'delete_confirm', 2147483647, 0, 1),
|
|
('bx_convos_entry_edit', 'delete_confirm', 2147483647, 0, 1),
|
|
|
('bx_convos_entry_edit', 'recipients', 2147483647, 1, 2),
|
|
('bx_convos_entry_edit', 'recipients', 2147483647, 1, 2),
|
|
|
('bx_convos_entry_edit', 'text', 2147483647, 1, 3),
|
|
('bx_convos_entry_edit', 'text', 2147483647, 1, 3),
|
|
|
('bx_convos_entry_edit', 'attachments', 2147483647, 1, 4),
|
|
('bx_convos_entry_edit', 'attachments', 2147483647, 1, 4),
|
|
|
-('bx_convos_entry_edit', 'submit_block', 2147483647, 1, 5),
|
|
|
|
|
-('bx_convos_entry_edit', 'do_submit', 2147483647, 1, 6),
|
|
|
|
|
-('bx_convos_entry_edit', 'submit_text', 2147483647, 0, 7),
|
|
|
|
|
-('bx_convos_entry_edit', 'draft_id', 2147483647, 0, 8),
|
|
|
|
|
|
|
+('bx_convos_entry_edit', 'allow_edit', 2147483647, 1, 5),
|
|
|
|
|
+('bx_convos_entry_edit', 'submit_block', 2147483647, 1, 6),
|
|
|
|
|
+('bx_convos_entry_edit', 'do_submit', 2147483647, 1, 7),
|
|
|
|
|
+('bx_convos_entry_edit', 'submit_text', 2147483647, 0, 8),
|
|
|
|
|
+('bx_convos_entry_edit', 'draft_id', 2147483647, 0, 9),
|
|
|
|
|
|
|
|
('bx_convos_entry_view', 'delete_confirm', 2147483647, 0, 0),
|
|
('bx_convos_entry_view', 'delete_confirm', 2147483647, 0, 0),
|
|
|
('bx_convos_entry_view', 'do_submit', 2147483647, 0, 0),
|
|
('bx_convos_entry_view', 'do_submit', 2147483647, 0, 0),
|