AntonLV 7 лет назад
Родитель
Сommit
7166ec21e4
22 измененных файлов с 605 добавлено и 3 удалено
  1. 1 1
      modules/boonex/albums/updates/9.0.12_10.0.0/install/langs/en.xml
  2. 6 0
      modules/boonex/forum/updates/9.0.11_10.0.0/install/sql/install.sql
  3. 1 1
      modules/boonex/posts/updates/9.0.11_10.0.0/install/langs/en.xml
  4. 1 1
      modules/boonex/timeline/install/sql/install.sql
  5. 63 0
      modules/boonex/timeline/updates/9.0.14_10.0.0/install/config.php
  6. 45 0
      modules/boonex/timeline/updates/9.0.14_10.0.0/install/installer.php
  7. 39 0
      modules/boonex/timeline/updates/9.0.14_10.0.0/install/langs/en.xml
  8. 75 0
      modules/boonex/timeline/updates/9.0.14_10.0.0/install/sql/enable.sql
  9. 81 0
      modules/boonex/timeline/updates/9.0.14_10.0.0/install/sql/install.sql
  10. 51 0
      modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/config.php
  11. 13 0
      modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/installer.php
  12. 4 0
      modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/langs/en.xml
  13. 2 0
      modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/sql/enable.sql
  14. 51 0
      modules/boonex/una_connect/updates/9.0.3_10.0.0/install/config.php
  15. 13 0
      modules/boonex/una_connect/updates/9.0.3_10.0.0/install/installer.php
  16. 4 0
      modules/boonex/una_connect/updates/9.0.3_10.0.0/install/langs/en.xml
  17. 2 0
      modules/boonex/una_connect/updates/9.0.3_10.0.0/install/sql/enable.sql
  18. 59 0
      modules/boonex/videos/updates/9.0.4_10.0.0/install/config.php
  19. 25 0
      modules/boonex/videos/updates/9.0.4_10.0.0/install/installer.php
  20. 9 0
      modules/boonex/videos/updates/9.0.4_10.0.0/install/langs/en.xml
  21. 15 0
      modules/boonex/videos/updates/9.0.4_10.0.0/install/sql/enable.sql
  22. 45 0
      modules/boonex/videos/updates/9.0.4_10.0.0/install/sql/install.sql

+ 1 - 1
modules/boonex/albums/updates/9.0.12_10.0.0/install/langs/en.xml

@@ -18,7 +18,7 @@
 	<string_add name="_bx_albums_txt_media_score_up_single"><![CDATA[image's score up vote]]></string_add>
 	<string_add name="_bx_albums_txt_media_score_down_single"><![CDATA[image's score down vote]]></string_add>
 	<string_add name="_bx_albums_txt_media_title_empty"><![CDATA[No Caption]]></string_add>
-	<string_add name="_bx_albums_txt_processing_awaiting"><![CDATA[Album will be published as soon as video is converted]]></string_add>
+	<string_add name="_bx_albums_txt_processing_awaiting"><![CDATA[Scheduled for publishing as soon as video conversion is complete.]]></string_add>
 	<string_add name="_bx_albums_txt_processing_failed"><![CDATA[Album isn't published because video conversion failed, edit video to fix the issue.]]></string_add>
 	<string_add name="_bx_albums_txt_err_cannot_perform_action"><![CDATA[Cannot perform the action. Please report.]]></string_add>
 

+ 6 - 0
modules/boonex/forum/updates/9.0.11_10.0.0/install/sql/install.sql

@@ -25,3 +25,9 @@ CREATE TABLE IF NOT EXISTS `bx_forum_reactions_track` (
   PRIMARY KEY (`id`),
   KEY `vote` (`object_id`, `author_nip`)
 );
+
+
+-- VOTES
+DELETE FROM `sys_objects_vote` WHERE `Name`='bx_forum_reactions';
+INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES 
+('bx_forum_reactions', 'bx_forum_reactions', 'bx_forum_reactions_track', '604800', '1', '1', '1', '1', 'bx_forum_discussions', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');

+ 1 - 1
modules/boonex/posts/updates/9.0.11_10.0.0/install/langs/en.xml

@@ -39,7 +39,7 @@
 	<string_add name="_bx_posts_menu_item_title_cpa_poll"><![CDATA[Add Poll]]></string_add>
 	<string_add name="_bx_posts_txt_sample_score_up_single"><![CDATA[score up vote to post]]></string_add>
 	<string_add name="_bx_posts_txt_sample_score_down_single"><![CDATA[score down vote to post]]></string_add>
-	<string_add name="_bx_posts_txt_processing_awaiting"><![CDATA[Post will be published as soon as video is converted]]></string_add>
+	<string_add name="_bx_posts_txt_processing_awaiting"><![CDATA[Scheduled for publishing as soon as video conversion is complete.]]></string_add>
 	<string_add name="_bx_posts_txt_processing_failed"><![CDATA[Post isn't published because video conversion failed, edit video to fix the issue.]]></string_add>
 	<string_add name="_bx_posts_txt_scheduled_awaiting"><![CDATA[Post publishing date is {date_publish_uf}]]></string_add>
 	<string_add name="_bx_posts_txt_err_cannot_perform_action"><![CDATA[Cannot perform action. Please report.]]></string_add>

+ 1 - 1
modules/boonex/timeline/install/sql/install.sql

@@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_events` (
   `date` int(11) NOT NULL default '0',
   `published` int(11) NOT NULL default '0',
   `status` enum ('active', 'awaiting', 'failed', 'hidden', 'deleted') NOT NULL DEFAULT 'active',
-  `active` int(11) NOT NULL default '1',
+  `active` tinyint(4) NOT NULL default '1',
   `pinned` int(11) NOT NULL default '0',
   `sticked` int(11) NOT NULL default '0',
   `promoted` int(11) NOT NULL default '0',

+ 63 - 0
modules/boonex/timeline/updates/9.0.14_10.0.0/install/config.php

@@ -0,0 +1,63 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+$aConfig = array(
+    /**
+     * Main Section.
+     */
+    'title' => 'Timeline',
+    'version_from' => '9.0.14',
+    'version_to' => '10.0.0',
+    'vendor' => 'BoonEx',
+
+    'compatible_with' => array(
+        '10.0.0-B1'
+    ),
+
+    /**
+     * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
+     */
+    'home_dir' => 'boonex/timeline/updates/update_9.0.14_10.0.0/',
+    'home_uri' => 'timeline_update_9014_1000',
+
+    'module_dir' => 'boonex/timeline/',
+    'module_uri' => 'timeline',
+
+    'db_prefix' => 'bx_timeline_',
+    'class_prefix' => 'BxTimeline',
+
+    /**
+     * Transcoders.
+     */
+    'transcoders' => array(
+        'bx_timeline_videos_mp4_hd'
+    ),
+
+    /**
+     * Installation/Uninstallation Section.
+     */
+    'install' => array(
+        'execute_sql' => 1,
+        'update_files' => 1,
+        'update_languages' => 1,
+        'register_transcoders' => 1,
+        'clear_db_cache' => 1,
+    ),
+
+    /**
+     * Category for language keys.
+     */
+    'language_category' => 'Timeline',
+
+    /**
+     * Files Section
+     */
+    'delete_files' => array(
+        'classes/BxTimelineUploaderSimplePhoto.php',
+        'classes/BxTimelineUploaderSimpleVideo.php',
+        'classes/BxTimelineVote.php'
+    ),
+);

+ 45 - 0
modules/boonex/timeline/updates/9.0.14_10.0.0/install/installer.php

@@ -0,0 +1,45 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+class BxTimelineUpdater extends BxDolStudioUpdater
+{
+    function __construct($aConfig)
+    {
+        parent::__construct($aConfig);
+    }
+
+    public function actionExecuteSql($sOperation)
+    {
+        if($sOperation == 'install') {
+            if(!$this->oDb->isFieldExists('bx_timeline_events', 'rrate'))
+        	        $this->oDb->query("ALTER TABLE `bx_timeline_events` ADD `rrate` float NOT NULL default '0' AFTER `votes`");
+            if(!$this->oDb->isFieldExists('bx_timeline_events', 'rvotes'))
+        	        $this->oDb->query("ALTER TABLE `bx_timeline_events` ADD `rvotes` int(11) NOT NULL default '0' AFTER `rrate`");
+            if(!$this->oDb->isFieldExists('bx_timeline_events', 'published'))
+        	        $this->oDb->query("ALTER TABLE `bx_timeline_events` ADD `published` int(11) NOT NULL default '0' AFTER `date`");
+            if(!$this->oDb->isFieldExists('bx_timeline_events', 'status')) {
+        	        $this->oDb->query("ALTER TABLE `bx_timeline_events` ADD `status` enum ('active', 'awaiting', 'failed', 'hidden', 'deleted') NOT NULL DEFAULT 'active' AFTER `published`");
+                $this->oDb->query("UPDATE `bx_timeline_events` set `status`='hidden' WHERE 1");
+                $this->oDb->query("UPDATE `bx_timeline_events` set `status`='active' WHERE `active`='1'");
+                $this->oDb->query("UPDATE `bx_timeline_events` set `status`='deleted' WHERE `hidden`='1'");
+                $this->oDb->query("UPDATE `bx_timeline_events` set `status`='awaiting' WHERE `date`>UNIX_TIMESTAMP()");
+                $this->oDb->query("ALTER TABLE `bx_timeline_events` DROP `hidden`");
+            }
+
+            if(!$this->oDb->isIndexExists('bx_timeline_events', 'object_id'))
+            	    $this->oDb->query("ALTER TABLE `bx_timeline_events` ADD INDEX `object_id` (`object_id`)");
+
+            if(!$this->oDb->isIndexExists('bx_timeline_links', 'profile_id'))
+            	    $this->oDb->query("ALTER TABLE `bx_timeline_links` ADD INDEX `profile_id` (`profile_id`)");
+
+            if($this->oDb->isIndexExists('bx_timeline_links2events', 'link'))
+                $this->oDb->query("ALTER TABLE `bx_timeline_links2events` DROP INDEX `link`");
+            $this->oDb->query("ALTER TABLE `bx_timeline_links2events` ADD UNIQUE KEY `link` (`link_id`, `event_id`)");
+        }
+
+        return parent::actionExecuteSql($sOperation);
+    }
+}

+ 39 - 0
modules/boonex/timeline/updates/9.0.14_10.0.0/install/langs/en.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources name="en" flag="gb" title="English">
+	<string_add name="_bx_timeline_option_enable_count_all_views"><![CDATA[Count views for all items in the Feed]]></string_add>
+	<string_add name="_bx_timeline_option_enable_cache_item"><![CDATA[Enable item cache]]></string_add>
+	<string_add name="_bx_timeline_option_cache_item_engine"><![CDATA[Item cache engine (other than File option may require custom server setup)]]></string_add>
+	<string_add name="_bx_timeline_option_cache_item_lifetime"><![CDATA[Item cache lifetime]]></string_add>
+	<string_add name="_bx_timeline_option_enable_cache_list"><![CDATA[Enable feed cache]]></string_add>
+	<string_add name="_bx_timeline_form_post_input_sys_date_published"><![CDATA[Publish at]]></string_add>
+	<string_add name="_bx_timeline_form_post_input_date_published"><![CDATA[Publish at]]></string_add>
+	<string_add name="_bx_timeline_form_post_input_date_published_info"><![CDATA[Leave empty to publish immediately.]]></string_add>
+	<string_add name="_bx_timeline_menu_item_title_system_item_reaction"><![CDATA[Reaction]]></string_add>
+	<string_add name="_bx_timeline_menu_item_title_system_add_photo_simple"><![CDATA[Add Photo (Simple)]]></string_add>
+	<string_add name="_bx_timeline_menu_item_title_system_add_photo_html5"><![CDATA[Add Photo (HTML5)]]></string_add>
+	<string_add name="_bx_timeline_menu_item_title_system_add_video_simple"><![CDATA[Add Video (Simple)]]></string_add>
+	<string_add name="_bx_timeline_menu_item_title_system_add_video_html5"><![CDATA[Add Video (HTML5)]]></string_add>
+	<string_add name="_bx_timeline_txt_to"><![CDATA[to]]></string_add>
+	<string_add name="_bx_timeline_txt_status_deleted"><![CDATA[Deleted]]></string_add>
+	<string_add name="_bx_timeline_txt_note_scheduled_awaiting"><![CDATA[Update publishing date is {0}]]></string_add>
+	<string_add name="_bx_timeline_txt_note_processing_awaiting"><![CDATA[Update will be published as soon as video is converted]]></string_add>
+	<string_add name="_bx_timeline_txt_note_processing_failed"><![CDATA[Update isn't published because video conversion failed, edit video to fix the issue.]]></string_add>
+	<string_add name="_bx_timeline_txt_sample_score_up_single"><![CDATA[score up vote to timeline post]]></string_add>
+	<string_add name="_bx_timeline_txt_sample_score_down_single"><![CDATA[score down vote to timeline post]]></string_add>
+	<string_add name="_bx_timeline_txt_new_content"><![CDATA[New content]]></string_add>
+
+	<string_upd name="_bx_timeline_form_post_input_owner_id_following_group"><![CDATA[{0}]]></string_upd>
+	<string_upd name="_bx_timeline_form_post_input_sys_date"><![CDATA[Created at]]></string_upd>
+	<string_upd name="_bx_timeline_form_post_input_date"><![CDATA[Created at]]></string_upd>
+	<string_upd name="_bx_timeline_acl_action_pin"><![CDATA['Pin here' Any Post]]></string_upd>
+	<string_upd name="_bx_timeline_acl_action_stick"><![CDATA['Pin for all' Any Post]]></string_upd>
+	<string_upd name="_bx_timeline_menu_item_title_admt_timeline"><![CDATA[Timeline]]></string_upd>
+	<string_upd name="_bx_timeline_et_txt_body_send"><![CDATA[
+<p>Hello.</p>
+<p>Take a look at <a href="{ViewLink}">this post</a>, it may be interesting for you.</p>]]></string_upd>
+
+	<string_del name="_bx_timeline_form_post_input_date_info"><![CDATA[Leave empty to publish immediately.]]></string_del>
+	<string_del name="_bx_timeline_menu_item_title_system_add_photo"><![CDATA[Add Photo]]></string_del>
+	<string_del name="_bx_timeline_menu_item_title_system_add_video"><![CDATA[Add Video]]></string_del>
+	<string_del name="_bx_timeline_ntfs_txt_object_added"><![CDATA[<b class="bx-ntfs-content-profile">{owner_name}</b> added a {entry_sample} <b class="bx-ntfs-content-entry">{entry_caption}</b>]]></string_del>
+</resources>

+ 75 - 0
modules/boonex/timeline/updates/9.0.14_10.0.0/install/sql/enable.sql

@@ -0,0 +1,75 @@
+-- PAGES
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view' AND `title`='_bx_timeline_page_block_title_view_profile';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view' AND `title`='_bx_timeline_page_block_title_view_profile_outline';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view_home' AND `title`='_bx_timeline_page_block_title_view_home';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view_home' AND `title`='_bx_timeline_page_block_title_view_home_outline';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view_hot' AND `title`='_bx_timeline_page_block_title_view_hot';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='bx_timeline_view_hot' AND `title`='_bx_timeline_page_block_title_view_hot_outline';
+
+SET @iPBCellDashboard = 4;
+SET @iPBOrderDashboard = 1;
+UPDATE `sys_pages_blocks` SET `cell_id`=@iPBCellDashboard, `order`=@iPBOrderDashboard WHERE `object`='sys_dashboard' AND `title`='_bx_timeline_page_block_title_post_account';
+UPDATE `sys_pages_blocks` SET `cell_id`=@iPBCellDashboard, `designbox_id`='0', `order`=@iPBOrderDashboard+1 WHERE `object`='sys_dashboard' AND `title`='_bx_timeline_page_block_title_view_account';
+UPDATE `sys_pages_blocks` SET `cell_id`=@iPBCellDashboard, `designbox_id`='0', `order`=@iPBOrderDashboard+1 WHERE `object`='sys_dashboard' AND `title`='_bx_timeline_page_block_title_view_account_outline';
+
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='sys_home' AND `title`='_bx_timeline_page_block_title_view_home';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `object`='sys_home' AND `title`='_bx_timeline_page_block_title_view_home_outline';
+
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `title`='_bx_timeline_page_block_title_view_profile';
+UPDATE `sys_pages_blocks` SET `designbox_id`='0' WHERE `title`='_bx_timeline_page_block_title_view_profile_outline';
+
+
+-- MENUS
+DELETE FROM `sys_menu_items` WHERE `set_name`='bx_timeline_menu_item_actions' AND `name`='item-reaction';
+INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `editable`, `order`) VALUES
+('bx_timeline_menu_item_actions', 'bx_timeline', 'item-reaction', '_bx_timeline_menu_item_title_system_item_reaction', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, '', 1, 0, 1, 30);
+
+UPDATE `sys_menu_items` SET `addon`='a:3:{s:6:"module";s:11:"bx_timeline";s:6:"method";s:27:"get_menu_item_addon_comment";s:6:"params";a:3:{i:0;s:16:"{comment_system}";i:1;s:16:"{comment_object}";i:2;a:3:{s:4:"name";s:6:"{name}";s:4:"view";s:6:"{view}";s:4:"type";s:6:"{type}";}}}' WHERE `set_name`='bx_timeline_menu_item_actions' AND `name`='item-comment';
+UPDATE `sys_menu_items` SET `active`='0' WHERE `set_name`='bx_timeline_menu_item_actions' AND `name`='item-vote';
+UPDATE `sys_menu_items` SET `onclick`='bx_menu_popup(''bx_timeline_menu_item_share'', this, {''id'':''bx_timeline_menu_item_share_{content_id}''}, {content_id:{content_id}, name:''{name}'', view:''{view}'', type:''{type}''});' WHERE `set_name`='bx_timeline_menu_item_actions' AND `name`='item-share';
+UPDATE `sys_menu_items` SET `onclick`='bx_menu_popup(''bx_timeline_menu_item_manage'', this, {''id'':''bx_timeline_menu_item_manage_{content_id}''}, {content_id:{content_id}, name:''{name}'', view:''{view}'', type:''{type}''});' WHERE `set_name`='bx_timeline_menu_item_actions' AND `name`='item-more';
+
+UPDATE `sys_objects_menu` SET `template_id`='23' WHERE `object`='bx_timeline_menu_post_attachments';
+
+DELETE FROM `sys_menu_items` WHERE `set_name`='bx_timeline_menu_post_attachments' AND `name` IN ('add-photo', 'add-video', 'add-photo-simple', 'add-photo-html5', 'add-video-simple', 'add-video-html5');
+INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `editable`, `order`) VALUES 
+('bx_timeline_menu_post_attachments', 'bx_timeline', 'add-photo-simple', '_bx_timeline_menu_item_title_system_add_photo_simple', '_bx_timeline_menu_item_title_add_photo', 'javascript:void(0)', 'javascript:{js_object_uploader_simple_photo}.showUploaderForm();', '_self', 'camera', '', '', 2147483647, '', 0, 0, 1, 2),
+('bx_timeline_menu_post_attachments', 'bx_timeline', 'add-photo-html5', '_bx_timeline_menu_item_title_system_add_photo_html5', '_bx_timeline_menu_item_title_add_photo', 'javascript:void(0)', 'javascript:{js_object_uploader_html5_photo}.showUploaderForm();', '_self', 'camera', '', '', 2147483647, '', 1, 0, 1, 3),
+('bx_timeline_menu_post_attachments', 'bx_timeline', 'add-video-simple', '_bx_timeline_menu_item_title_system_add_video_simple', '_bx_timeline_menu_item_title_add_video', 'javascript:void(0)', 'javascript:{js_object_uploader_simple_video}.showUploaderForm();', '_self', 'video', '', '', 2147483647, '', 0, 0, 1, 4),
+('bx_timeline_menu_post_attachments', 'bx_timeline', 'add-video-html5', '_bx_timeline_menu_item_title_system_add_video_html5', '_bx_timeline_menu_item_title_add_video', 'javascript:void(0)', 'javascript:{js_object_uploader_html5_video}.showUploaderForm();', '_self', 'video', '', '', 2147483647, '', 1, 0, 1, 5);
+
+UPDATE `sys_menu_items` SET `icon`='clock' WHERE `set_name`='sys_account_dashboard_manage_tools' AND `name`='timeline-administration' AND `icon`='';
+
+
+-- SETTINGS
+SET @iCategId = (SELECT `id` FROM `sys_options_categories` WHERE `name`='bx_timeline' LIMIT 1);
+
+DELETE FROM `sys_options` WHERE `name` IN ('bx_timeline_enable_count_all_views', 'bx_timeline_enable_cache_item', 'bx_timeline_cache_item_engine', 'bx_timeline_cache_item_lifetime', 'bx_timeline_enable_cache_list');
+INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `check`, `check_params`, `check_error`, `extra`, `order`) VALUES
+('bx_timeline_enable_count_all_views', '', @iCategId, '_bx_timeline_option_enable_count_all_views', 'checkbox', '', '', '', '', 6),
+('bx_timeline_enable_cache_item', 'on', @iCategId, '_bx_timeline_option_enable_cache_item', 'checkbox', '', '', '', '', 70),
+('bx_timeline_cache_item_engine', 'File', @iCategId, '_bx_timeline_option_cache_item_engine', 'select', '', '', '', 'File,Memcache,APC,XCache', 71),
+('bx_timeline_cache_item_lifetime', '604800', @iCategId, '_bx_timeline_option_cache_item_lifetime', 'digit', '', '', '', '', 72),
+('bx_timeline_enable_cache_list', 'on', @iCategId, '_bx_timeline_option_enable_cache_list', 'checkbox', '', '', '', '', 73);
+
+
+-- ALERTS
+SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name`='bx_timeline' LIMIT 1);
+DELETE FROM `sys_alerts` WHERE `unit`='system' AND `action`='clear_cache' AND `handler_id`=@iHandler;
+DELETE FROM `sys_alerts` WHERE `unit`='bx_timeline_videos_mp4' AND `action`='transcoded' AND `handler_id`=@iHandler;
+INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
+('system', 'clear_cache', @iHandler),
+('bx_timeline_videos_mp4', 'transcoded', @iHandler);
+
+
+-- GRIDS:
+UPDATE `sys_objects_grid` SET `source`='SELECT * FROM `bx_timeline_events` WHERE 1 AND `active`=''1'' ', `field_active`='status' WHERE `object`='bx_timeline_administration';
+
+UPDATE `sys_grid_fields` SET `order`='3' WHERE `object`='bx_timeline_administration' AND `name`='reports';
+UPDATE `sys_grid_fields` SET `order`='4' WHERE `object`='bx_timeline_administration' AND `name`='description';
+
+
+-- CRON
+DELETE FROM `sys_cron_jobs` WHERE `name`='bx_timeline_publishing';
+INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
+('bx_timeline_publishing', '* * * * *', 'BxTimelineCronPublishing', 'modules/boonex/timeline/classes/BxTimelineCronPublishing.php', '');

+ 81 - 0
modules/boonex/timeline/updates/9.0.14_10.0.0/install/sql/install.sql

@@ -0,0 +1,81 @@
+SET @sName = 'bx_timeline';
+
+
+-- TABLES
+ALTER TABLE `bx_timeline_events` CHANGE `object_id` `object_id` int(11) NOT NULL default '0';
+ALTER TABLE `bx_timeline_events` CHANGE `object_privacy_view` `object_privacy_view` varchar(16) NOT NULL default '3';
+
+CREATE TABLE IF NOT EXISTS `bx_timeline_cache` (
+  `type` varchar(32) NOT NULL default '',
+  `context_id` int(11) NOT NULL default '0',
+  `profile_id` int(11) NOT NULL default '0',
+  `event_id` int(11) NOT NULL default '0',
+  `date` int(11) NOT NULL default '0',
+  PRIMARY KEY `item` (`type`, `context_id`, `profile_id`, `event_id`)
+);
+
+CREATE TABLE IF NOT EXISTS `bx_timeline_reactions` (
+  `object_id` int(11) NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `count` int(11) NOT NULL default '0',
+  `sum` int(11) NOT NULL default '0',
+  UNIQUE KEY `reaction` (`object_id`, `reaction`)
+);
+
+CREATE TABLE IF NOT EXISTS `bx_timeline_reactions_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',
+  `reaction` varchar(32) NOT NULL default '',
+  `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, UPLOADERS
+UPDATE `sys_objects_uploader` SET `override_class_name`='BxTimelineUploaderSimpleAttach', `override_class_file`='modules/boonex/timeline/classes/BxTimelineUploaderSimpleAttach.php' WHERE `object`='bx_timeline_simple_photo';
+UPDATE `sys_objects_uploader` SET `override_class_name`='BxTimelineUploaderSimpleAttach', `override_class_file`='modules/boonex/timeline/classes/BxTimelineUploaderSimpleAttach.php' WHERE `object`='bx_timeline_simple_video';
+
+DELETE FROM `sys_objects_uploader` WHERE `object` IN ('bx_timeline_html5_photo', 'bx_timeline_html5_video');
+INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
+('bx_timeline_html5_photo', 1, 'BxTimelineUploaderHTML5Attach', 'modules/boonex/timeline/classes/BxTimelineUploaderHTML5Attach.php'),
+('bx_timeline_html5_video', 1, 'BxTimelineUploaderHTML5Attach', 'modules/boonex/timeline/classes/BxTimelineUploaderHTML5Attach.php');
+
+DELETE FROM `sys_objects_transcoder` WHERE `object` IN ('bx_timeline_videos_mp4_hd', 'bx_timeline_videos_webm');
+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_videos_mp4_hd', 'bx_timeline_videos_processed', 'Storage', 'a:1:{s:6:"object";s:18:"bx_timeline_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', '');
+
+UPDATE `sys_transcoder_filters` SET `filter_params`='a:1:{s:1:"w";s:3:"300";}' WHERE `transcoder_object`='bx_timeline_photos_view';
+UPDATE `sys_transcoder_filters` SET `filter_params`='a:1:{s:1:"w";s:3:"600";}' WHERE `transcoder_object`='bx_timeline_photos_medium';
+
+DELETE FROM `sys_transcoder_filters` WHERE `transcoder_object` IN ('bx_timeline_videos_mp4_hd', 'bx_timeline_videos_webm');
+INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
+('bx_timeline_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);
+
+
+-- FORMS
+DELETE FROM `sys_form_inputs` WHERE `object`='bx_timeline_post' AND `name`='published';
+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_timeline_post', @sName, 'published', '', '', 0, 'datetime', '_bx_timeline_form_post_input_sys_date_published', '_bx_timeline_form_post_input_date_published', '_bx_timeline_form_post_input_date_published_info', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0);
+
+UPDATE `sys_form_inputs` SET `info`='' WHERE `object`='bx_timeline_post' AND `name`='date';
+UPDATE `sys_form_inputs` SET `editable`='0' WHERE `object`='bx_timeline_post' AND `name`='object_privacy_view';
+UPDATE `sys_form_inputs` SET `value`='a:1:{i:0;s:23:"bx_timeline_html5_photo";}', `values`='a:2:{s:24:"bx_timeline_simple_photo";s:26:"_sys_uploader_simple_title";s:23:"bx_timeline_html5_photo";s:25:"_sys_uploader_html5_title";}' WHERE `object`='bx_timeline_post' AND `name`='photo';
+UPDATE `sys_form_inputs` SET `value`='a:1:{i:0;s:23:"bx_timeline_html5_video";}', `values`='a:2:{s:24:"bx_timeline_simple_video";s:26:"_sys_uploader_simple_title";s:23:"bx_timeline_html5_video";s:25:"_sys_uploader_html5_title";}' WHERE `object`='bx_timeline_post' AND `name`='video';
+
+DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN ('bx_timeline_post_add', 'bx_timeline_post_add_public', 'bx_timeline_post_add_profile', 'bx_timeline_post_edit') AND `input_name`='date';
+DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN ('bx_timeline_post_add', 'bx_timeline_post_add_public', 'bx_timeline_post_add_profile', 'bx_timeline_post_edit') AND `input_name`='published';
+INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
+('bx_timeline_post_add', 'published', 192, 1, 6),
+('bx_timeline_post_add_public', 'published', 192, 1, 6),
+('bx_timeline_post_add_profile', 'published', 192, 1, 6),
+('bx_timeline_post_edit', 'published', 192, 1, 5);
+
+
+-- VOTES
+DELETE FROM `sys_objects_vote` WHERE `Name`='bx_timeline_reactions';
+INSERT INTO `sys_objects_vote`(`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES 
+('bx_timeline_reactions', 'bx_timeline_reactions', 'bx_timeline_reactions_track', '604800', '1', '1', '1', '1', 'bx_timeline_events', 'id', 'object_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');

+ 51 - 0
modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/config.php

@@ -0,0 +1,51 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+$aConfig = array(
+    /**
+     * Main Section.
+     */
+    'title' => 'Twitter connect',
+    'version_from' => '9.0.5',
+    'version_to' => '10.0.0',
+    'vendor' => 'BoonEx',
+
+    'compatible_with' => array(
+        '10.0.0-B1'
+    ),
+
+    /**
+     * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
+     */
+    'home_dir' => 'boonex/twitter_connect/updates/update_9.0.5_10.0.0/',
+    'home_uri' => 'twitter_update_905_1000',
+
+    'module_dir' => 'boonex/twitter_connect/',
+    'module_uri' => 'twitter',
+
+    'db_prefix' => 'bx_twitter_',
+    'class_prefix' => 'BxTwitter',
+
+    /**
+     * Installation/Uninstallation Section.
+     */
+    'install' => array(
+        'execute_sql' => 1,
+        'update_files' => 1,
+        'update_languages' => 1,
+        'clear_db_cache' => 1,
+    ),
+
+    /**
+     * Category for language keys.
+     */
+    'language_category' => 'Twitter Connect',
+
+    /**
+     * Files Section
+     */
+    'delete_files' => array(),
+);

+ 13 - 0
modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/installer.php

@@ -0,0 +1,13 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+class BxTwitterUpdater extends BxDolStudioUpdater
+{
+    function __construct($aConfig)
+    {
+        parent::__construct($aConfig);
+    }
+}

+ 4 - 0
modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/langs/en.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources name="en" flag="gb" title="English">
+	<string_upd name="_bx_twitter_auth_title"><![CDATA[Login with Twitter]]></string_upd>
+</resources>

+ 2 - 0
modules/boonex/twitter_connect/updates/9.0.5_10.0.0/install/sql/enable.sql

@@ -0,0 +1,2 @@
+-- AUTH OBJECTS
+UPDATE `sys_objects_auths` SET `Style`='a:1:{s:7:".bx-btn";a:1:{s:10:"background";s:18:"#5aa4eb !important";}}' WHERE `Name`='bx_twitter';

+ 51 - 0
modules/boonex/una_connect/updates/9.0.3_10.0.0/install/config.php

@@ -0,0 +1,51 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+$aConfig = array(
+    /**
+     * Main Section.
+     */
+    'title' => 'UNA connect',
+    'version_from' => '9.0.3',
+    'version_to' => '10.0.0',
+    'vendor' => 'BoonEx',
+
+    'compatible_with' => array(
+        '10.0.0-B1'
+    ),
+
+    /**
+     * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
+     */
+    'home_dir' => 'boonex/una_connect/updates/update_9.0.3_10.0.0/',
+    'home_uri' => 'unacon_update_903_1000',
+
+    'module_dir' => 'boonex/una_connect/',
+    'module_uri' => 'unacon',
+
+    'db_prefix' => 'bx_unacon_',
+    'class_prefix' => 'BxUnaCon',
+
+    /**
+     * Installation/Uninstallation Section.
+     */
+    'install' => array(
+        'execute_sql' => 1,
+        'update_files' => 1,
+        'update_languages' => 1,
+        'clear_db_cache' => 1,
+    ),
+
+    /**
+     * Category for language keys.
+     */
+    'language_category' => 'UNA Connect',
+
+    /**
+     * Files Section
+     */
+    'delete_files' => array(),
+);

+ 13 - 0
modules/boonex/una_connect/updates/9.0.3_10.0.0/install/installer.php

@@ -0,0 +1,13 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+class BxUnaConUpdater extends BxDolStudioUpdater
+{
+    function __construct($aConfig)
+    {
+        parent::__construct($aConfig);
+    }
+}

+ 4 - 0
modules/boonex/una_connect/updates/9.0.3_10.0.0/install/langs/en.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources name="en" flag="gb" title="English">
+	<string_upd name="_bx_unacon_auth_title"><![CDATA[Login with UNA]]></string_upd>
+</resources>

+ 2 - 0
modules/boonex/una_connect/updates/9.0.3_10.0.0/install/sql/enable.sql

@@ -0,0 +1,2 @@
+-- AUTH OBJECTS
+UPDATE `sys_objects_auths` SET `Style`='a:1:{s:7:".bx-btn";a:1:{s:10:"background";s:18:"#40b060 !important";}}' WHERE `Name`='bx_unacon';

+ 59 - 0
modules/boonex/videos/updates/9.0.4_10.0.0/install/config.php

@@ -0,0 +1,59 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+$aConfig = array(
+    /**
+     * Main Section.
+     */
+    'title' => 'Videos',
+    'version_from' => '9.0.4',
+    'version_to' => '10.0.0',
+    'vendor' => 'BoonEx',
+
+    'compatible_with' => array(
+        '10.0.0-B1'
+    ),
+
+    /**
+     * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
+     */
+    'home_dir' => 'boonex/videos/updates/update_9.0.4_10.0.0/',
+    'home_uri' => 'videos_update_904_1000',
+
+    'module_dir' => 'boonex/videos/',
+    'module_uri' => 'videos',
+
+    'db_prefix' => 'bx_videos_',
+    'class_prefix' => 'BxVideos',
+
+    /**
+     * Transcoders.
+     */
+    'transcoders' => array(
+        'bx_videos_video_mp4_hd'
+    ),
+
+    /**
+     * Installation/Uninstallation Section.
+     */
+    'install' => array(
+        'execute_sql' => 1,
+        'update_files' => 1,
+        'update_languages' => 1,
+        'register_transcoders' => 1,
+        'clear_db_cache' => 1,
+    ),
+
+    /**
+     * Category for language keys.
+     */
+    'language_category' => 'Videos',
+
+    /**
+     * Files Section
+     */
+    'delete_files' => array(),
+);

+ 25 - 0
modules/boonex/videos/updates/9.0.4_10.0.0/install/installer.php

@@ -0,0 +1,25 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ */
+
+class BxVideosUpdater extends BxDolStudioUpdater
+{
+    function __construct($aConfig)
+    {
+        parent::__construct($aConfig);
+    }
+
+    public function actionExecuteSql($sOperation)
+    {
+        if($sOperation == 'install') {
+            if(!$this->oDb->isFieldExists('bx_videos_entries', 'rrate'))
+        	        $this->oDb->query("ALTER TABLE `bx_videos_entries` ADD `rrate` float NOT NULL default '0' AFTER `svotes`");
+            if(!$this->oDb->isFieldExists('bx_videos_entries', 'rvotes'))
+        	        $this->oDb->query("ALTER TABLE `bx_videos_entries` ADD `rvotes` int(11) NOT NULL default '0' AFTER `rrate`");
+        }
+
+        return parent::actionExecuteSql($sOperation);
+    }
+}

+ 9 - 0
modules/boonex/videos/updates/9.0.4_10.0.0/install/langs/en.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources name="en" flag="gb" title="English">
+	<string_add name="_bx_videos_txt_sample_score_up_single"><![CDATA[score up vote to video]]></string_add>
+    <string_add name="_bx_videos_txt_sample_score_down_single"><![CDATA[score down vote to video]]></string_add>
+	<string_add name="_bx_videos_txt_processing_awaiting"><![CDATA[Video will be published as soon as video is converted]]></string_add>
+    <string_add name="_bx_videos_txt_processing_failed"><![CDATA[Video isn't published because video conversion failed, edit video to fix the issue.]]></string_add>
+
+	<string_upd name="_bx_videos_menu_item_title_admt_videos"><![CDATA[Videos]]></string_upd>
+</resources>

+ 15 - 0
modules/boonex/videos/updates/9.0.4_10.0.0/install/sql/enable.sql

@@ -0,0 +1,15 @@
+-- MENUS
+DELETE FROM `sys_menu_items` WHERE `set_name`='bx_videos_view_actions' AND `name` IN ('reaction', 'social-sharing-googleplus');
+INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `order`) VALUES 
+('bx_videos_view_actions', 'bx_videos', 'reaction', '_sys_menu_item_title_system_va_reaction', '', '', '', '', '', '', '', 0, 2147483647, '', 1, 0, 225);
+
+UPDATE `sys_menu_items` SET `active`='0' WHERE `set_name`='bx_videos_view_actions' AND `name`='vote';
+
+UPDATE `sys_menu_items` SET `icon`='film' WHERE `set_name`='sys_account_dashboard_manage_tools' AND `name`='videos-administration' AND `icon`='';
+
+
+-- ALERTS
+SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name`='bx_videos' LIMIT 1);
+DELETE FROM `sys_alerts` WHERE `unit`='bx_videos_video_mp4' AND `action`='transcoded' AND `handler_id`=@iHandler;
+INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
+('bx_videos_video_mp4', 'transcoded', @iHandler);

+ 45 - 0
modules/boonex/videos/updates/9.0.4_10.0.0/install/sql/install.sql

@@ -0,0 +1,45 @@
+-- TABLES
+ALTER TABLE `bx_videos_entries` CHANGE `allow_view_to` `allow_view_to` varchar(16) NOT NULL DEFAULT '3';
+ALTER TABLE `bx_videos_entries` CHANGE `status` `status` enum('active','awaiting','failed','hidden') NOT NULL DEFAULT 'active';
+
+CREATE TABLE IF NOT EXISTS `bx_videos_reactions` (
+  `object_id` int(11) NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `count` int(11) NOT NULL default '0',
+  `sum` int(11) NOT NULL default '0',
+  UNIQUE KEY `reaction` (`object_id`, `reaction`)
+);
+
+CREATE TABLE IF NOT EXISTS `bx_videos_reactions_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',
+  `reaction` varchar(32) NOT NULL default '',
+  `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
+DELETE FROM `sys_objects_transcoder` WHERE `object` IN ('bx_videos_video_mp4_hd', 'bx_videos_video_webm');
+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_videos_video_mp4_hd', 'bx_videos_media_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_videos_videos";}', 'no', 0, 0, 0, 'BxDolTranscoderVideo', '');
+
+DELETE FROM `sys_transcoder_filters` WHERE `transcoder_object` IN ('bx_videos_video_mp4_hd', 'bx_videos_video_webm');
+INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES 
+('bx_videos_video_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);
+
+
+-- FORMS
+DELETE FROM `sys_form_inputs` WHERE `object`='bx_videos' AND `name`='labels';
+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_videos', 'bx_videos', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
+
+
+-- VOTES
+DELETE FROM `sys_objects_vote` WHERE `Name`='bx_videos_reactions';
+INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES 
+('bx_videos_reactions', 'bx_videos_reactions', 'bx_videos_reactions_track', '604800', '1', '1', '1', '1', 'bx_videos_entries', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');