|
|
@@ -16,7 +16,10 @@ CREATE TABLE IF NOT EXISTS `bx_market_products` (
|
|
|
`votes` int(11) NOT NULL default '0',
|
|
|
`comments` int(11) NOT NULL default '0',
|
|
|
`reports` int(11) NOT NULL default '0',
|
|
|
- `allow_view_to` int(11) NOT NULL DEFAULT '3',
|
|
|
+ `allow_view_to` varchar(32) NOT NULL DEFAULT '3',
|
|
|
+ `allow_purchase_to` varchar(32) NOT NULL DEFAULT '3',
|
|
|
+ `allow_comment_to` varchar(32) NOT NULL DEFAULT 'c',
|
|
|
+ `allow_vote_to` varchar(32) NOT NULL DEFAULT 'c',
|
|
|
`status` enum('active','hidden') NOT NULL DEFAULT 'active',
|
|
|
PRIMARY KEY (`id`),
|
|
|
FULLTEXT KEY `title_text` (`title`,`text`)
|
|
|
@@ -220,6 +223,9 @@ INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`,
|
|
|
|
|
|
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_market', 'bx_market', 'allow_view_to', '', '', 0, 'custom', '_bx_market_form_entry_input_sys_allow_view_to', '_bx_market_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_market', 'bx_market', 'allow_purchase_to', '', '', 0, 'custom', '_bx_market_form_entry_input_sys_allow_purchase_to', '_bx_market_form_entry_input_allow_purchase_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_market', 'bx_market', 'allow_comment_to', '', '', 0, 'custom', '_bx_market_form_entry_input_sys_allow_comment_to', '_bx_market_form_entry_input_allow_comment_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_market', 'bx_market', 'allow_vote_to', '', '', 0, 'custom', '_bx_market_form_entry_input_sys_allow_vote_to', '_bx_market_form_entry_input_allow_vote_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
('bx_market', 'bx_market', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_market_form_entry_input_sys_delete_confirm', '_bx_market_form_entry_input_delete_confirm', '_bx_market_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_market_form_entry_input_delete_confirm_error', '', '', 1, 0),
|
|
|
('bx_market', 'bx_market', 'do_publish', '_bx_market_form_entry_input_do_publish', '', 0, 'submit', '_bx_market_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_market', 'bx_market', 'do_submit', '_bx_market_form_entry_input_do_submit', '', 0, 'submit', '_bx_market_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
@@ -240,9 +246,12 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_market_entry_add', 'files', 2147483647, 1, 6),
|
|
|
('bx_market_entry_add', 'price', 2147483647, 1, 7),
|
|
|
('bx_market_entry_add', 'allow_view_to', 2147483647, 1, 8),
|
|
|
-('bx_market_entry_add', 'location', 2147483647, 1, 9),
|
|
|
-('bx_market_entry_add', 'do_submit', 2147483647, 0, 10),
|
|
|
-('bx_market_entry_add', 'do_publish', 2147483647, 1, 11),
|
|
|
+('bx_market_entry_add', 'allow_purchase_to', 2147483647, 1, 9),
|
|
|
+('bx_market_entry_add', 'allow_comment_to', 2147483647, 1, 10),
|
|
|
+('bx_market_entry_add', 'allow_vote_to', 2147483647, 1, 11),
|
|
|
+('bx_market_entry_add', 'location', 2147483647, 1, 12),
|
|
|
+('bx_market_entry_add', 'do_submit', 2147483647, 0, 13),
|
|
|
+('bx_market_entry_add', 'do_publish', 2147483647, 1, 14),
|
|
|
('bx_market_entry_delete', 'location', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'cat', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'price', 2147483647, 0, 0),
|
|
|
@@ -252,6 +261,9 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_market_entry_delete', 'do_publish', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'title', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'allow_view_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_delete', 'allow_purchase_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_delete', 'allow_comment_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_delete', 'allow_vote_to', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'delete_confirm', 2147483647, 1, 1),
|
|
|
('bx_market_entry_delete', 'do_submit', 2147483647, 1, 2),
|
|
|
('bx_market_entry_edit', 'do_publish', 2147483647, 0, 1),
|
|
|
@@ -263,8 +275,11 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_market_entry_edit', 'files', 2147483647, 1, 7),
|
|
|
('bx_market_entry_edit', 'price', 2147483647, 1, 8),
|
|
|
('bx_market_entry_edit', 'allow_view_to', 2147483647, 1, 9),
|
|
|
-('bx_market_entry_edit', 'location', 2147483647, 1, 10),
|
|
|
-('bx_market_entry_edit', 'do_submit', 2147483647, 1, 11),
|
|
|
+('bx_market_entry_edit', 'allow_purchase_to', 2147483647, 1, 10),
|
|
|
+('bx_market_entry_edit', 'allow_comment_to', 2147483647, 1, 11),
|
|
|
+('bx_market_entry_edit', 'allow_vote_to', 2147483647, 1, 12),
|
|
|
+('bx_market_entry_edit', 'location', 2147483647, 1, 13),
|
|
|
+('bx_market_entry_edit', 'do_submit', 2147483647, 1, 14),
|
|
|
('bx_market_entry_view', 'location', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'cat', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'price', 2147483647, 0, 0),
|
|
|
@@ -275,7 +290,10 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_market_entry_view', 'do_publish', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'title', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'do_submit', 2147483647, 0, 0),
|
|
|
-('bx_market_entry_view', 'allow_view_to', 2147483647, 0, 0);
|
|
|
+('bx_market_entry_view', 'allow_view_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_view', 'allow_purchase_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_view', 'allow_comment_to', 2147483647, 0, 0),
|
|
|
+('bx_market_entry_view', 'allow_vote_to', 2147483647, 0, 0);
|
|
|
|
|
|
-- PRE-VALUES
|
|
|
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|