|
|
@@ -37,7 +37,7 @@ INSERT INTO `bx_timeline_handlers`(`type`, `alert_unit`, `alert_action`, `conten
|
|
|
('insert', 'timeline_common_share', '', ''),
|
|
|
('delete', 'profile', 'delete', '');
|
|
|
|
|
|
--- TABLES: UPLOADERS
|
|
|
+-- TABLES: STORAGES, TRANSCODERS, UPLOADERS
|
|
|
CREATE TABLE IF NOT EXISTS `bx_timeline_photos` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`profile_id` int(10) unsigned NOT NULL,
|
|
|
@@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_photos` (
|
|
|
UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
);
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `bx_timeline_photos_preview` (
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_photos_processed` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`profile_id` int(10) unsigned NOT NULL,
|
|
|
`remote_id` varchar(255) NOT NULL,
|
|
|
@@ -70,7 +70,15 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_photos_preview` (
|
|
|
UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
);
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `bx_timeline_photos_view` (
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_photos2events` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `event_id` int(11) NOT NULL DEFAULT '0',
|
|
|
+ `media_id` int(11) NOT NULL DEFAULT '0',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `media` (`event_id`, `media_id`)
|
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_videos` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`profile_id` int(10) unsigned NOT NULL,
|
|
|
`remote_id` varchar(255) NOT NULL,
|
|
|
@@ -86,12 +94,28 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_photos_view` (
|
|
|
UNIQUE KEY `remote_id` (`remote_id`)
|
|
|
);
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `bx_timeline_photos2events` (
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_videos_processed` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `profile_id` int(10) unsigned NOT NULL,
|
|
|
+ `remote_id` varchar(255) 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` int(11) 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_timeline_videos2events` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`event_id` int(11) NOT NULL DEFAULT '0',
|
|
|
- `photo_id` int(11) NOT NULL DEFAULT '0',
|
|
|
+ `media_id` int(11) NOT NULL DEFAULT '0',
|
|
|
PRIMARY KEY (`id`),
|
|
|
- UNIQUE KEY `photo` (`event_id`, `photo_id`)
|
|
|
+ UNIQUE KEY `media` (`event_id`, `media_id`)
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
|
|
|
|
-- TABLES: LINKS
|
|
|
@@ -157,14 +181,14 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_votes_track` (
|
|
|
) ENGINE=MYISAM DEFAULT CHARSET=utf8;
|
|
|
|
|
|
-- TABLE: metas
|
|
|
-CREATE TABLE `bx_timeline_meta_keywords` (
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_meta_keywords` (
|
|
|
`object_id` int(10) unsigned NOT NULL,
|
|
|
`keyword` varchar(255) NOT NULL,
|
|
|
KEY `object_id` (`object_id`),
|
|
|
KEY `keyword` (`keyword`)
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
|
|
|
|
-CREATE TABLE `bx_timeline_meta_locations` (
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_timeline_meta_locations` (
|
|
|
`object_id` int(10) unsigned NOT NULL,
|
|
|
`lat` double NOT NULL,
|
|
|
`lng` double NOT NULL,
|
|
|
@@ -178,25 +202,36 @@ CREATE TABLE `bx_timeline_meta_locations` (
|
|
|
|
|
|
-- STORAGES, TRANSCODERS, UPLOADERS
|
|
|
INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
|
|
|
-('bx_timeline_simple', 1, 'BxTimelineUploaderSimple', 'modules/boonex/timeline/classes/BxTimelineUploaderSimple.php');
|
|
|
+('bx_timeline_simple_photo', 1, 'BxTimelineUploaderSimplePhoto', 'modules/boonex/timeline/classes/BxTimelineUploaderSimplePhoto.php'),
|
|
|
+('bx_timeline_simple_video', 1, 'BxTimelineUploaderSimpleVideo', 'modules/boonex/timeline/classes/BxTimelineUploaderSimpleVideo.php');
|
|
|
|
|
|
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_timeline_photos', 'Local', '', 360, 2592000, 3, 'bx_timeline_photos', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
|
|
|
-('bx_timeline_photos_preview', 'Local', '', 360, 2592000, 3, 'bx_timeline_photos_preview', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
|
|
|
-('bx_timeline_photos_view', 'Local', '', 360, 2592000, 3, 'bx_timeline_photos_view', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0);
|
|
|
+('bx_timeline_photos_processed', 'Local', '', 360, 2592000, 3, 'bx_timeline_photos_processed', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
|
|
|
|
|
|
-INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`) VALUES
|
|
|
-('bx_timeline_photos_preview', 'bx_timeline_photos_preview', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_photos";}', 'no', '1', '2592000', '0'),
|
|
|
-('bx_timeline_photos_view', 'bx_timeline_photos_view', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_photos";}', 'no', '1', '2592000', '0');
|
|
|
+('bx_timeline_videos', 'Local', '', 360, 2592000, 3, 'bx_timeline_videos', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,divx,xvid,3gp,webm,jpg', '', 0, 0, 0, 0, 0, 0),
|
|
|
+('bx_timeline_videos_processed', 'Local', '', 360, 2592000, 3, 'bx_timeline_videos_processed', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,divx,xvid,3gp,webm,jpg', '', 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_timeline_photos_preview', 'bx_timeline_photos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_photos";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+('bx_timeline_photos_view', 'bx_timeline_photos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_photos";}', 'no', '1', '2592000', '0', '', ''),
|
|
|
+
|
|
|
+('bx_timeline_videos_poster', 'bx_timeline_videos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+('bx_timeline_videos_mp4', 'bx_timeline_videos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
|
|
|
+('bx_timeline_videos_webm', 'bx_timeline_videos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', '');
|
|
|
|
|
|
INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
|
|
|
('bx_timeline_photos_preview', '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_timeline_photos_view', 'Resize', 'a:4:{s:1:"w";s:3:"318";s:1:"h";s:3:"318";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0');
|
|
|
+('bx_timeline_photos_view', 'Resize', 'a:4:{s:1:"w";s:3:"318";s:1:"h";s:3:"318";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0'),
|
|
|
+
|
|
|
+('bx_timeline_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
|
|
|
+('bx_timeline_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
|
|
|
+('bx_timeline_videos_webm', 'Webm', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:4:"webm";}', 0);
|
|
|
|
|
|
|
|
|
-- Forms -> Post
|
|
|
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_timeline_post', @sName, '_bx_timeline_form_post', '', '', 'do_submit', 'bx_timeline_events', 'id', '', '', '', 0, 1, 'BxTimelineForm', 'modules/boonex/timeline/classes/BxTimelineForm.php');
|
|
|
+('bx_timeline_post', @sName, '_bx_timeline_form_post', '', '', 'do_submit', 'bx_timeline_events', 'id', '', '', '', 0, 1, 'BxTimelineFormPost', 'modules/boonex/timeline/classes/BxTimelineFormPost.php');
|
|
|
|
|
|
INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
|
|
|
('bx_timeline_post_add', @sName, 'bx_timeline_post', '_bx_timeline_form_post_display_add', 0);
|
|
|
@@ -207,8 +242,10 @@ INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `c
|
|
|
('bx_timeline_post', @sName, 'owner_id', '0', '', 0, 'hidden', '_bx_timeline_form_post_input_sys_owner_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
|
|
|
('bx_timeline_post', @sName, 'text', '', '', 0, 'textarea', '_bx_timeline_form_post_input_sys_text', '_bx_timeline_form_post_input_text', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
|
|
|
('bx_timeline_post', @sName, 'location', '', '', 0, 'custom', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
-('bx_timeline_post', @sName, 'link', '', '', 0, 'custom', '_bx_timeline_form_post_input_sys_link', '', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
|
|
|
-('bx_timeline_post', @sName, 'photo', '', '', 0, 'files', '_bx_timeline_form_post_input_sys_photo', '_bx_timeline_form_post_input_photo', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
|
|
|
+('bx_timeline_post', @sName, 'link', '', '', 0, 'custom', '_bx_timeline_form_post_input_sys_link', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_timeline_post', @sName, 'photo', '', '', 0, 'files', '_bx_timeline_form_post_input_sys_photo', '_bx_timeline_form_post_input_photo', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_timeline_post', @sName, 'video', '', '', 0, 'files', '_bx_timeline_form_post_input_sys_video', '_bx_timeline_form_post_input_video', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_timeline_post', @sName, 'attachments', '', '', 0, 'custom', '_bx_timeline_form_post_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
('bx_timeline_post', @sName, 'do_submit', '_bx_timeline_form_post_input_do_submit', '', 0, 'submit', '_bx_timeline_form_post_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);
|
|
|
|
|
|
INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
@@ -219,7 +256,9 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
|
|
|
('bx_timeline_post_add', 'location', 2147483647, 1, 5),
|
|
|
('bx_timeline_post_add', 'link', 2147483647, 1, 6),
|
|
|
('bx_timeline_post_add', 'photo', 2147483647, 1, 7),
|
|
|
-('bx_timeline_post_add', 'do_submit', 2147483647, 1, 8);
|
|
|
+('bx_timeline_post_add', 'video', 2147483647, 1, 8),
|
|
|
+('bx_timeline_post_add', 'attachments', 2147483647, 1, 9),
|
|
|
+('bx_timeline_post_add', 'do_submit', 2147483647, 1, 10);
|
|
|
|
|
|
-- Forms -> Attach link
|
|
|
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
|