|
|
@@ -46,6 +46,22 @@ CREATE TABLE IF NOT EXISTS `bx_forum_categories` (
|
|
|
);
|
|
|
|
|
|
-- TABLE: storages & transcoders
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_covers` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `profile_id` int(10) unsigned NOT NULL,
|
|
|
+ `remote_id` varchar(128) NOT NULL,
|
|
|
+ `path` varchar(255) NOT NULL,
|
|
|
+ `file_name` varchar(255) NOT NULL,
|
|
|
+ `mime_type` varchar(128) NOT NULL,
|
|
|
+ `ext` varchar(32) NOT NULL,
|
|
|
+ `size` bigint(20) NOT NULL,
|
|
|
+ `added` int(11) NOT NULL,
|
|
|
+ `modified` int(11) NOT NULL,
|
|
|
+ `private` int(11) NOT NULL,
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
+);
|
|
|
+
|
|
|
CREATE TABLE IF NOT EXISTS `bx_forum_files` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`profile_id` int(10) unsigned NOT NULL,
|
|
|
@@ -62,6 +78,22 @@ CREATE TABLE IF NOT EXISTS `bx_forum_files` (
|
|
|
UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
);
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_photos` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `profile_id` int(10) unsigned NOT NULL,
|
|
|
+ `remote_id` varchar(128) NOT NULL,
|
|
|
+ `path` varchar(255) NOT NULL,
|
|
|
+ `file_name` varchar(255) NOT NULL,
|
|
|
+ `mime_type` varchar(128) NOT NULL,
|
|
|
+ `ext` varchar(32) NOT NULL,
|
|
|
+ `size` bigint(20) NOT NULL,
|
|
|
+ `added` int(11) NOT NULL,
|
|
|
+ `modified` int(11) NOT NULL,
|
|
|
+ `private` int(11) NOT NULL,
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
+);
|
|
|
+
|
|
|
CREATE TABLE IF NOT EXISTS `bx_forum_photos_resized` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`profile_id` int(10) unsigned NOT NULL,
|
|
|
@@ -78,6 +110,38 @@ CREATE TABLE IF NOT EXISTS `bx_forum_photos_resized` (
|
|
|
UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
);
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_videos` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `profile_id` int(10) unsigned NOT NULL,
|
|
|
+ `remote_id` varchar(128) NOT NULL,
|
|
|
+ `path` varchar(255) NOT NULL,
|
|
|
+ `file_name` varchar(255) NOT NULL,
|
|
|
+ `mime_type` varchar(128) NOT NULL,
|
|
|
+ `ext` varchar(32) NOT NULL,
|
|
|
+ `size` bigint(20) NOT NULL,
|
|
|
+ `added` int(11) NOT NULL,
|
|
|
+ `modified` int(11) NOT NULL,
|
|
|
+ `private` int(11) NOT NULL,
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
+);
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_videos_resized` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `profile_id` int(10) unsigned NOT NULL,
|
|
|
+ `remote_id` varchar(128) NOT NULL,
|
|
|
+ `path` varchar(255) NOT NULL,
|
|
|
+ `file_name` varchar(255) NOT NULL,
|
|
|
+ `mime_type` varchar(128) NOT NULL,
|
|
|
+ `ext` varchar(32) NOT NULL,
|
|
|
+ `size` bigint(20) NOT NULL,
|
|
|
+ `added` int(11) NOT NULL,
|
|
|
+ `modified` int(11) NOT NULL,
|
|
|
+ `private` int(11) NOT NULL,
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
+);
|
|
|
+
|
|
|
-- TABLE: subscribers
|
|
|
CREATE TABLE IF NOT EXISTS `bx_forum_subscribers` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
@@ -217,24 +281,101 @@ CREATE TABLE IF NOT EXISTS `bx_forum_scores_track` (
|
|
|
KEY `vote` (`object_id`, `author_nip`)
|
|
|
);
|
|
|
|
|
|
+-- TABLE: polls
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_polls` (
|
|
|
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
+ `author_id` int(11) NOT NULL default '0',
|
|
|
+ `content_id` int(11) NOT NULL default '0',
|
|
|
+ `text` text NOT NULL,
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ KEY `content_id` (`content_id`),
|
|
|
+ FULLTEXT KEY `search_fields` (`text`)
|
|
|
+);
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_polls_answers` (
|
|
|
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
+ `poll_id` int(11) unsigned NOT NULL default '0',
|
|
|
+ `title` varchar(255) NOT NULL,
|
|
|
+ `rate` float NOT NULL default '0',
|
|
|
+ `votes` int(11) NOT NULL default '0',
|
|
|
+ `order` int(11) NOT NULL default '0',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ KEY `poll_id` (`poll_id`),
|
|
|
+ FULLTEXT KEY `title` (`title`)
|
|
|
+);
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_polls_answers_votes` (
|
|
|
+ `object_id` int(11) NOT NULL default '0',
|
|
|
+ `count` int(11) NOT NULL default '0',
|
|
|
+ `sum` int(11) NOT NULL default '0',
|
|
|
+ UNIQUE KEY `object_id` (`object_id`)
|
|
|
+);
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_forum_polls_answers_votes_track` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `object_id` int(11) NOT NULL default '0',
|
|
|
+ `author_id` int(11) NOT NULL default '0',
|
|
|
+ `author_nip` int(11) unsigned NOT NULL default '0',
|
|
|
+ `value` tinyint(4) NOT NULL default '0',
|
|
|
+ `date` int(11) NOT NULL default '0',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ KEY `vote` (`object_id`, `author_nip`)
|
|
|
+);
|
|
|
+
|
|
|
|
|
|
-- STORAGES & TRANSCODERS
|
|
|
INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
|
|
|
+('bx_forum_covers', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_covers', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0),
|
|
|
+
|
|
|
+('bx_forum_photos', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_photos', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
|
|
|
+('bx_forum_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_photos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
|
|
|
+
|
|
|
+('bx_forum_videos', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_videos', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
|
|
|
+('bx_forum_videos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_videos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
|
|
|
+
|
|
|
('bx_forum_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0),
|
|
|
-('bx_forum_files_cmts', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0),
|
|
|
-('bx_forum_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_photos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0);
|
|
|
+
|
|
|
+-- For Comments
|
|
|
+('bx_forum_files_cmts', @sStorageEngine, '', 360, 2592000, 3, 'bx_forum_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
|
|
|
|
|
|
INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`, `override_class_name`, `override_class_file`) VALUES
|
|
|
-('bx_forum_preview', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_forum_files";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
-('bx_forum_preview_cmts', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:19:"bx_forum_files_cmts";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
-('bx_forum_gallery', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_forum_files";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
-('bx_forum_cover', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_forum_files";}', 'no', '1', '2592000', '0', '', '');
|
|
|
+('bx_forum_preview', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_covers";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+('bx_forum_gallery', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_covers";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+('bx_forum_cover', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_covers";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+
|
|
|
+('bx_forum_preview_photos', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_photos";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+('bx_forum_gallery_photos', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_photos";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+
|
|
|
+('bx_forum_videos_poster', 'bx_forum_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+('bx_forum_videos_poster_preview', 'bx_forum_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+('bx_forum_videos_mp4', 'bx_forum_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+('bx_forum_videos_mp4_hd', 'bx_forum_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_forum_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+
|
|
|
+('bx_forum_preview_files', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_forum_files";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+('bx_forum_gallery_files', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_forum_files";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+
|
|
|
+-- For Comments
|
|
|
+('bx_forum_preview_cmts', 'bx_forum_photos_resized', 'Storage', 'a:1:{s:6:"object";s:19:"bx_forum_files_cmts";}', 'no', '1', '2592000', '0', '', '');
|
|
|
|
|
|
INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
|
|
|
('bx_forum_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
|
|
|
-('bx_forum_preview_cmts', 'Resize', 'a:4:{s:1:"w";s:3:"100";s:1:"h";s:3:"100";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0'),
|
|
|
('bx_forum_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
|
|
|
-('bx_forum_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0');
|
|
|
+('bx_forum_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
|
|
|
+
|
|
|
+('bx_forum_preview_photos', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
|
|
|
+('bx_forum_gallery_photos', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
|
|
|
+
|
|
|
+('bx_forum_videos_poster_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:13:"square_resize";s:1:"1";}', 10),
|
|
|
+('bx_forum_videos_poster_preview', 'Poster', 'a:2:{s:1:"h";s:3:"480";s:10:"force_type";s:3:"jpg";}', 0),
|
|
|
+('bx_forum_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
|
|
|
+('bx_forum_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
|
|
|
+('bx_forum_videos_mp4_hd', 'Mp4', 'a:3:{s:1:"h";s:3:"720";s:13:"video_bitrate";s:4:"1536";s:10:"force_type";s:3:"mp4";}', 0),
|
|
|
+
|
|
|
+('bx_forum_preview_files', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
|
|
|
+('bx_forum_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
|
|
|
+
|
|
|
+-- For Comments
|
|
|
+('bx_forum_preview_cmts', 'Resize', 'a:4:{s:1:"w";s:3:"100";s:1:"h";s:3:"100";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0');
|
|
|
|
|
|
|
|
|
-- FORMS
|
|
|
@@ -258,7 +399,12 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
(@sName, @sName, 'title', '', '', 0, 'text', '_bx_forum_form_entry_input_sys_title', '_bx_forum_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_forum_form_entry_input_title_err', 'Xss', '', 1, 0),
|
|
|
(@sName, @sName, 'cat', '', '#!bx_forum_cats', 0, 'select', '_bx_forum_form_entry_input_sys_cat', '_bx_forum_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_forum_form_entry_input_cat_err', 'Xss', '', 1, 0),
|
|
|
(@sName, @sName, 'multicat', '', '', 0, 'custom', '_bx_forum_form_entry_input_sys_multicat', '_bx_forum_form_entry_input_multicat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_forum_form_entry_input_multicat_err', 'Xss', '', 1, 0),
|
|
|
-(@sName, @sName, 'attachments', 'a:1:{i:0;s:14:"bx_forum_html5";}', 'a:2:{s:15:"bx_forum_simple";s:26:"_sys_uploader_simple_title";s:14:"bx_forum_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_forum_form_entry_input_sys_attachments', '_bx_forum_form_entry_input_attachments', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'attachments', '', '', 0, 'custom', '_bx_forum_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'covers', 'a:1:{i:0;s:14:"bx_forum_html5";}', 'a:2:{s:15:"bx_forum_simple";s:26:"_sys_uploader_simple_title";s:14:"bx_forum_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_forum_form_entry_input_sys_covers', '_bx_forum_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'pictures', 'a:1:{i:0;s:21:"bx_forum_photos_html5";}', 'a:2:{s:22:"bx_forum_photos_simple";s:26:"_sys_uploader_simple_title";s:21:"bx_forum_photos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_forum_form_entry_input_sys_pictures', '_bx_forum_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'videos', 'a:1:{i:0;s:21:"bx_forum_videos_html5";}', 'a:2:{s:22:"bx_forum_videos_simple";s:26:"_sys_uploader_simple_title";s:21:"bx_forum_videos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_forum_form_entry_input_sys_videos', '_bx_forum_form_entry_input_videos', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'files', 'a:1:{i:0;s:20:"bx_forum_files_html5";}', 'a:2:{s:21:"bx_forum_files_simple";s:26:"_sys_uploader_simple_title";s:20:"bx_forum_files_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_forum_form_entry_input_sys_files', '_bx_forum_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+(@sName, @sName, 'polls', '', '', 0, 'custom', '_bx_forum_form_entry_input_sys_polls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
(@sName, @sName, 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
(@sName, @sName, 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
(@sName, @sName, 'added', '', '', 0, 'datetime', '_bx_forum_form_entry_input_sys_date_added', '_bx_forum_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
@@ -274,15 +420,25 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
|
|
|
('bx_forum_entry_add', 'cat', 2147483647, 1, 2),
|
|
|
('bx_forum_entry_add', 'text', 2147483647, 1, 3),
|
|
|
('bx_forum_entry_add', 'attachments', 2147483647, 1, 4),
|
|
|
-('bx_forum_entry_add', 'allow_view_to', 2147483647, 1, 5),
|
|
|
-('bx_forum_entry_add', 'do_submit', 2147483647, 1, 6),
|
|
|
+('bx_forum_entry_add', 'pictures', 2147483647, 1, 5),
|
|
|
+('bx_forum_entry_add', 'videos', 2147483647, 1, 6),
|
|
|
+('bx_forum_entry_add', 'files', 2147483647, 1, 7),
|
|
|
+('bx_forum_entry_add', 'polls', 2147483647, 1, 8),
|
|
|
+('bx_forum_entry_add', 'covers', 2147483647, 1, 9),
|
|
|
+('bx_forum_entry_add', 'allow_view_to', 2147483647, 1, 10),
|
|
|
+('bx_forum_entry_add', 'do_submit', 2147483647, 1, 11),
|
|
|
|
|
|
('bx_forum_entry_edit', 'title', 2147483647, 1, 1),
|
|
|
('bx_forum_entry_edit', 'cat', 2147483647, 1, 2),
|
|
|
('bx_forum_entry_edit', 'text', 2147483647, 1, 3),
|
|
|
('bx_forum_entry_edit', 'attachments', 2147483647, 1, 4),
|
|
|
-('bx_forum_entry_edit', 'allow_view_to', 2147483647, 1, 5),
|
|
|
-('bx_forum_entry_edit', 'do_submit', 2147483647, 1, 6),
|
|
|
+('bx_forum_entry_edit', 'pictures', 2147483647, 1, 5),
|
|
|
+('bx_forum_entry_edit', 'videos', 2147483647, 1, 6),
|
|
|
+('bx_forum_entry_edit', 'files', 2147483647, 1, 7),
|
|
|
+('bx_forum_entry_edit', 'polls', 2147483647, 1, 8),
|
|
|
+('bx_forum_entry_edit', 'covers', 2147483647, 1, 9),
|
|
|
+('bx_forum_entry_edit', 'allow_view_to', 2147483647, 1, 10),
|
|
|
+('bx_forum_entry_edit', 'do_submit', 2147483647, 1, 11),
|
|
|
|
|
|
('bx_forum_entry_view', 'title', 2147483647, 1, 1),
|
|
|
('bx_forum_entry_view', 'cat', 2147483647, 1, 2),
|
|
|
@@ -296,6 +452,27 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
|
|
|
('bx_forum_search_full', 'keyword', 2147483647, 1, 3),
|
|
|
('bx_forum_search_full', 'do_submit', 2147483647, 1, 4);
|
|
|
|
|
|
+-- FORMS: poll
|
|
|
+INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
|
|
|
+('bx_forum_poll', 'bx_forum', '_bx_forum_form_poll', '', '', 'do_submit', 'bx_forum_polls', 'id', '', '', 'a:1:{s:14:"checker_helper";s:28:"BxForumFormPollCheckerHelper";}', 0, 1, 'BxForumFormPoll', 'modules/boonex/forum/classes/BxForumFormPoll.php');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
|
|
|
+('bx_forum_poll_add', 'bx_forum', 'bx_forum_poll', '_bx_forum_form_poll_display_add', 0);
|
|
|
+
|
|
|
+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_forum_poll', 'bx_forum', 'text', '', '', 0, 'text', '_bx_forum_form_poll_input_sys_text', '_bx_forum_form_poll_input_text', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_forum_form_poll_input_text_err', 'Xss', '', 1, 0),
|
|
|
+('bx_forum_poll', 'bx_forum', 'answers', '', '', 0, 'custom', '_bx_forum_form_poll_input_sys_answers', '_bx_forum_form_poll_input_answers', '', 1, 0, 0, '', '', '', 'AvailAnswers', '', '_bx_forum_form_poll_input_answers_err', '', '', 1, 0),
|
|
|
+('bx_forum_poll', 'bx_forum', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_forum_poll', 'bx_forum', 'do_submit', '_bx_forum_form_poll_input_do_submit', '', 0, 'submit', '_bx_forum_form_poll_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_forum_poll', 'bx_forum', 'do_cancel', '_bx_forum_form_poll_input_do_cancel', '', 0, 'button', '_bx_forum_form_poll_input_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0);
|
|
|
+
|
|
|
+INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
+('bx_forum_poll_add', 'text', 2147483647, 1, 1),
|
|
|
+('bx_forum_poll_add', 'answers', 2147483647, 1, 2),
|
|
|
+('bx_forum_poll_add', 'controls', 2147483647, 1, 3),
|
|
|
+('bx_forum_poll_add', 'do_submit', 2147483647, 1, 4),
|
|
|
+('bx_forum_poll_add', 'do_cancel', 2147483647, 1, 5);
|
|
|
+
|
|
|
|
|
|
-- PRE-VALUES
|
|
|
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
@@ -319,7 +496,8 @@ INSERT INTO `sys_objects_view` (`name`, `table_track`, `period`, `is_on`, `trigg
|
|
|
-- VOTES
|
|
|
INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
|
|
|
(@sName, 'bx_forum_votes', 'bx_forum_votes_track', '604800', '1', '1', '0', '1', 'bx_forum_discussions', 'id', 'author', 'rate', 'votes', '', ''),
|
|
|
-('bx_forum_reactions', 'bx_forum_reactions', 'bx_forum_reactions_track', '604800', '1', '1', '1', '1', 'bx_forum_discussions', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
|
|
|
+('bx_forum_reactions', 'bx_forum_reactions', 'bx_forum_reactions_track', '604800', '1', '1', '1', '1', 'bx_forum_discussions', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', ''),
|
|
|
+('bx_forum_poll_answers', 'bx_forum_polls_answers_votes', 'bx_forum_polls_answers_votes_track', '604800', '1', '1', '0', '1', 'bx_forum_polls_answers', 'id', 'author_id', 'rate', 'votes', 'BxForumVotePollAnswers', 'modules/boonex/forum/classes/BxForumVotePollAnswers.php');
|
|
|
|
|
|
|
|
|
-- SCORES
|