Changeset 15751 for trunk/modules
- Timestamp:
- 12/12/11 22:16:28 (6 months ago)
- Location:
- trunk/modules/boonex
- Files:
-
- 5 added
- 8 edited
- 2 moved
-
articles/classes/BxArlModule.php (modified) (1 diff)
-
articles/classes/BxArlStudioPage.php (added)
-
articles/install/config.php (modified) (4 diffs)
-
articles/install/langs/en.xml (modified) (1 diff)
-
articles/install/sql/disable.sql (modified) (4 diffs)
-
articles/install/sql/enable.sql (modified) (5 diffs)
-
articles/install/sql/install.sql (modified) (2 diffs)
-
articles/install/sql/uninstall.sql (modified) (2 diffs)
-
articles/templates/base/images/icons/std-mi-editor.png (added)
-
articles/templates/base/images/icons/std-mi-general.png (added)
-
articles/templates/base/images/icons/std-mi-links.png (added)
-
articles/templates/base/images/icons/std-mi.png (moved) (moved from trunk/modules/boonex/articles/templates/base/images/icons/mi-std.png)
-
articles/templates/base/images/icons/std-pi.png (added)
-
articles/templates/base/images/icons/std-wi.png (moved) (moved from trunk/modules/boonex/articles/templates/base/images/icons/wi-std.png)
-
english/install/data/langs/en.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/articles/classes/BxArlModule.php
r15211 r15751 144 144 145 145 //--- Define Membership Actions ---// 146 defineMembershipActions(array('articles delete'), 'ACTION_ID_');146 //defineMembershipActions(array('articles delete'), 'ACTION_ID_'); 147 147 } 148 148 -
trunk/modules/boonex/articles/install/config.php
r15656 r15751 25 25 */ 26 26 'type' => BX_DOL_MODULE_TYPE_MODULE, 27 'name' => 'bx_articles', 27 28 'title' => 'Articles', 28 29 'note' => 'Text posts with rich media...', 29 30 'version' => '1.0.6', 30 'vendor' => 'Boon ex',31 'vendor' => 'BoonEx', 31 32 'product_url' => 'http://www.boonex.com/products/{uri}', 32 33 'update_url' => 'http://www.boonex.com/products/{uri}', … … 48 49 */ 49 50 'install' => array( 50 'show_introduction' => 1,51 'show_introduction' => 0, 51 52 'change_permissions' => 0, 52 53 'execute_sql' => 1, … … 67 68 'recompile_alerts' => 1, 68 69 'clear_db_cache' => 1, 69 'show_conclusion' => 170 'show_conclusion' => 0 70 71 ), 71 72 'uninstall' => array ( 72 'show_introduction' => 1,73 'show_introduction' => 0, 73 74 'change_permissions' => 0, 74 75 'execute_sql' => 1, … … 89 90 'recompile_alerts' => 1, 90 91 'clear_db_cache' => 1, 91 'show_conclusion' => 192 'show_conclusion' => 0 92 93 ), 93 94 'enable' => array( -
trunk/modules/boonex/articles/install/langs/en.xml
r15722 r15751 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <resources name="en" flag="gb" title="English"> 3 <string name="_articles_adm_wgt_cpt"><![CDATA[Articles]]></string> 4 <string name="_articles_adm_page_cpt"><![CDATA[Articles Administration]]></string> 5 <string name="_articles_adm_lmi_cpt_general"><![CDATA[General]]></string> 6 <string name="_articles_adm_lmi_cpt_editor"><![CDATA[Editor]]></string> 7 <string name="_articles_adm_lmi_cpt_links"><![CDATA[Useful Links]]></string> 3 8 <string name="_articles_pcaption_admin"><![CDATA[Articles Administration]]></string> 4 9 <string name="_articles_pcaption_home"><![CDATA[Articles Home]]></string> -
trunk/modules/boonex/articles/install/sql/disable.sql
r15722 r15751 1 -- 2 -- Studio page and widget. 3 -- 4 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='[name]' LIMIT 1); 5 UPDATE `sys_std_widgets` SET `status`='2' WHERE `page_id`=@iPageId LIMIT 1; 6 7 1 8 SET @iTMParentId = (SELECT `ID` FROM `sys_menu_top` WHERE `Name`='Articles' LIMIT 1); 2 9 DELETE FROM `sys_menu_top` WHERE `Name` IN ('Articles', '[db_prefix]_view') OR `Parent`=@iTMParentId; … … 9 16 10 17 DELETE FROM `sys_options` WHERE `Name` IN ('permalinks_module_articles', 'category_auto_app_bx_articles'); 11 DELETE FROM `sys_options_types`, `sys_options_categories`, `sys_options` USING `sys_options_types`, `sys_options_categories`, `sys_options` WHERE `sys_options_types`.`id`=`sys_options_categories`.`type_id` AND `sys_options_categories`.`id`=`sys_options`.`category_id` AND `sys_options_types`.`name`=' bx_articles';18 DELETE FROM `sys_options_types`, `sys_options_categories`, `sys_options` USING `sys_options_types`, `sys_options_categories`, `sys_options` WHERE `sys_options_types`.`id`=`sys_options_categories`.`type_id` AND `sys_options_categories`.`id`=`sys_options`.`category_id` AND `sys_options_types`.`name`='[name]'; 12 19 13 20 … … 15 22 16 23 17 DELETE FROM `sys_objects_cmts` WHERE `ObjectName`=' bx_articles' LIMIT 1;18 DELETE FROM `sys_objects_vote` WHERE `ObjectName`=' bx_articles' LIMIT 1;19 DELETE FROM `sys_objects_tag` WHERE `ObjectName`=' bx_articles' LIMIT 1;20 DELETE FROM `sys_objects_categories` WHERE `ObjectName`=' bx_articles' LIMIT 1;21 DELETE FROM `sys_objects_search` WHERE `ObjectName`=' bx_articles' LIMIT 1;22 DELETE FROM `sys_objects_views` WHERE `name`=' bx_articles' LIMIT 1;23 DELETE FROM `sys_objects_actions` WHERE `Type`=' bx_articles';24 DELETE FROM `sys_objects_cmts` WHERE `ObjectName`='[name]' LIMIT 1; 25 DELETE FROM `sys_objects_vote` WHERE `ObjectName`='[name]' LIMIT 1; 26 DELETE FROM `sys_objects_tag` WHERE `ObjectName`='[name]' LIMIT 1; 27 DELETE FROM `sys_objects_categories` WHERE `ObjectName`='[name]' LIMIT 1; 28 DELETE FROM `sys_objects_search` WHERE `ObjectName`='[name]' LIMIT 1; 29 DELETE FROM `sys_objects_views` WHERE `name`='[name]' LIMIT 1; 30 DELETE FROM `sys_objects_actions` WHERE `Type`='[name]'; 24 31 25 32 … … 30 37 31 38 32 DELETE FROM `sys_cron_jobs` WHERE `name`=' bx_articles';39 DELETE FROM `sys_cron_jobs` WHERE `name`='[name]'; -
trunk/modules/boonex/articles/install/sql/enable.sql
r15722 r15751 1 -- 2 -- Studio page and widget. 3 -- 4 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='[name]' LIMIT 1); 5 UPDATE `sys_std_widgets` SET `status`='1' WHERE `page_id`=@iPageId LIMIT 1; 6 1 7 SET @iTMOrder = (SELECT MAX(`Order`) FROM `sys_menu_top` WHERE `Parent`='0'); 2 8 INSERT INTO `sys_menu_top` (`Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Picture`, `BQuickLink`, `Statistics`) VALUES 3 (0, 'Articles', '_articles_top_menu_item', 'modules/?r= articles/index/|modules/?r=articles/', @iTMOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 'modules/boonex/articles/|top_menu_icon.png', 0, '');9 (0, 'Articles', '_articles_top_menu_item', 'modules/?r=[uri]/index/|modules/?r=articles/', @iTMOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 'modules/[path]|top_menu_icon.png', 0, ''); 4 10 5 11 SET @iTMParentId = LAST_INSERT_ID( ); 6 12 INSERT INTO `sys_menu_top` (`Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Picture`, `BQuickLink`, `Statistics`) VALUES 7 (@iTMParentId, 'ArticlesHome', '_articles_home_top_menu_sitem', 'modules/?r= articles/index/', 0, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),8 (@iTMParentId, 'ArticlesArchive', '_articles_archive_top_menu_sitem', 'modules/?r= articles/archive/', 1, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),9 (@iTMParentId, 'ArticlesTop', '_articles_top_top_menu_sitem', 'modules/?r= articles/top/', 2, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),10 (@iTMParentId, 'ArticlesPopular', '_articles_popular_top_menu_sitem', 'modules/?r= articles/popular/', 3, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),11 (@iTMParentId, 'ArticlesFeatured', '_articles_featured_top_menu_sitem', 'modules/?r= articles/featured/', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),12 (@iTMParentId, 'ArticlesTags', '_articles_tags_top_menu_sitem', 'modules/?r= articles/tags/', 5, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),13 (@iTMParentId, 'ArticlesCategories', '_articles_categories_top_menu_sitem', 'modules/?r= articles/categories/', 6, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),14 (@iTMParentId, 'ArticlesCalendar', '_articles_calendar_top_menu_sitem', 'modules/?r= articles/calendar/', 7, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),15 (@iTMParentId, 'ArticlesSearch', '_articles_search_top_menu_sitem', 'searchKeyword.php?type= bx_articles', 8, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''),16 (0, '[db_prefix]_view', '_articles_view_top_menu_sitem', 'modules/?r= articles/view/', 0, 'non,memb', '', '', '', 1, 1, 1, 'system', 'modules/boonex/articles/|top_menu_icon.png', 0, '');13 (@iTMParentId, 'ArticlesHome', '_articles_home_top_menu_sitem', 'modules/?r=[uri]/index/', 0, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 14 (@iTMParentId, 'ArticlesArchive', '_articles_archive_top_menu_sitem', 'modules/?r=[uri]/archive/', 1, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 15 (@iTMParentId, 'ArticlesTop', '_articles_top_top_menu_sitem', 'modules/?r=[uri]/top/', 2, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 16 (@iTMParentId, 'ArticlesPopular', '_articles_popular_top_menu_sitem', 'modules/?r=[uri]/popular/', 3, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 17 (@iTMParentId, 'ArticlesFeatured', '_articles_featured_top_menu_sitem', 'modules/?r=[uri]/featured/', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 18 (@iTMParentId, 'ArticlesTags', '_articles_tags_top_menu_sitem', 'modules/?r=[uri]/tags/', 5, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 19 (@iTMParentId, 'ArticlesCategories', '_articles_categories_top_menu_sitem', 'modules/?r=[uri]/categories/', 6, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 20 (@iTMParentId, 'ArticlesCalendar', '_articles_calendar_top_menu_sitem', 'modules/?r=[uri]/calendar/', 7, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 21 (@iTMParentId, 'ArticlesSearch', '_articles_search_top_menu_sitem', 'searchKeyword.php?type=[name]', 8, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', 0, ''), 22 (0, '[db_prefix]_view', '_articles_view_top_menu_sitem', 'modules/?r=[uri]/view/', 0, 'non,memb', '', '', '', 1, 1, 1, 'system', 'modules/[path]|top_menu_icon.png', 0, ''); 17 23 18 24 INSERT INTO `sys_menu_member`(`Caption`, `Name`, `Icon`, `Link`, `Script`, `Eval`, `Order`, `Active`, `Editable`, `Deletable`, `Target`, `Position`, `Type`) VALUES 19 ('_articles_ext_menu_item', 'Articles', '', 'modules/?r= articles/', '', '', 6, '1', 0, 0, '', 'bottom', 'link');25 ('_articles_ext_menu_item', 'Articles', '', 'modules/?r=[uri]/', '', '', 6, '1', 0, 0, '', 'bottom', 'link'); 20 26 21 27 … … 28 34 SET @iPCOrder = (SELECT MAX(`Order`) FROM `sys_page_compose` WHERE `Page`='index' AND `Column`='1'); 29 35 INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES 30 ('index', '998px', 'Show list of featured articles', '_articles_bcaption_featured', 1, @iPCOrder+1, 'PHP', 'return BxDolService::call(\' articles\', \'featured_block_index\', array(0, 0, false));', 1, 66, 'non,memb', 0),31 ('index', '998px', 'Show list of latest articles', '_articles_bcaption_latest', 1, @iPCOrder+2, 'PHP', 'return BxDolService::call(\' articles\', \'archive_block_index\', array(0, 0, false));', 1, 66, 'non,memb', 0),32 ('member', '998px', 'Show list of featured articles', '_articles_bcaption_featured', 2, 3, 'PHP', 'return BxDolService::call(\' articles\', \'featured_block_member\', array(0, 0, false));', 1, 66, 'memb', 0),33 ('member', '998px', 'Show list of latest articles', '_articles_bcaption_latest', 2, 4, 'PHP', 'return BxDolService::call(\' articles\', \'archive_block_member\', array(0, 0, false));', 1, 66, 'memb', 0),36 ('index', '998px', 'Show list of featured articles', '_articles_bcaption_featured', 1, @iPCOrder+1, 'PHP', 'return BxDolService::call(\'[uri]\', \'featured_block_index\', array(0, 0, false));', 1, 66, 'non,memb', 0), 37 ('index', '998px', 'Show list of latest articles', '_articles_bcaption_latest', 1, @iPCOrder+2, 'PHP', 'return BxDolService::call(\'[uri]\', \'archive_block_index\', array(0, 0, false));', 1, 66, 'non,memb', 0), 38 ('member', '998px', 'Show list of featured articles', '_articles_bcaption_featured', 2, 3, 'PHP', 'return BxDolService::call(\'[uri]\', \'featured_block_member\', array(0, 0, false));', 1, 66, 'memb', 0), 39 ('member', '998px', 'Show list of latest articles', '_articles_bcaption_latest', 2, 4, 'PHP', 'return BxDolService::call(\'[uri]\', \'archive_block_member\', array(0, 0, false));', 1, 66, 'memb', 0), 34 40 ('articles_single', '998px', 'Articles main content', '_articles_bcaption_view_main', 1, 0, 'Content', '', 1, 66, 'non,memb', 0), 35 41 ('articles_single', '998px', 'Articles comments', '_articles_bcaption_view_comment', 1, 1, 'Comment', '', 1, 66, 'non,memb', 0), … … 42 48 SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group`='modules'); 43 49 INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES 44 ('modules', ' bx_articles', '_articles_adm_stg_cpt_type', 'modules/boonex/articles/|mi-std.png', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));50 ('modules', '[name]', '_articles_adm_stg_cpt_type', 'modules/[path]|std-mi.png', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1)); 45 51 SET @iTypeId = LAST_INSERT_ID(); 46 52 47 53 INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` ) 48 VALUES (@iTypeId, ' bx_articles_general', '_articles_adm_stg_cpt_category_general', 1);54 VALUES (@iTypeId, '[name]_general', '_articles_adm_stg_cpt_category_general', 1); 49 55 SET @iCategoryId = LAST_INSERT_ID(); 50 56 … … 76 82 77 83 78 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r= articles/', 'm/articles/', 'permalinks_module_articles');84 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=[uri]/', 'm/[uri]/', 'permalinks_module_articles'); 79 85 80 86 81 87 INSERT INTO `sys_objects_cmts` (`ObjectName`, `TableCmts`, `TableTrack`, `AllowTags`, `Nl2br`, `SecToEdit`, `PerView`, `IsRatable`, `ViewingThreshold`, `AnimationEffect`, `AnimationSpeed`, `IsOn`, `IsMood`, `RootStylePrefix`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES 82 (' bx_articles', '[db_prefix]comments', '[db_prefix]comments_track', 0, 1, 90, 10, 1, -3, 'slide', 2000, 1, 0, 'cmt', '[db_prefix]entries', 'id', 'cmts_count', 'BxArlCmts', 'modules/boonex/articles/classes/BxArlCmts.php');88 ('[name]', '[db_prefix]comments', '[db_prefix]comments_track', 0, 1, 90, 10, 1, -3, 'slide', 2000, 1, 0, 'cmt', '[db_prefix]entries', 'id', 'cmts_count', 'BxArlCmts', 'modules/[path]classes/[class_prefix]Cmts.php'); 83 89 84 90 INSERT INTO `sys_objects_vote` (`ObjectName`, `TableRating`, `TableTrack`, `RowPrefix`, `MaxVotes`, `PostName`, `IsDuplicate`, `IsOn`, `className`, `classFile`, `TriggerTable`, `TriggerFieldRate`, `TriggerFieldRateCount`, `TriggerFieldId`, `OverrideClassName`, `OverrideClassFile`) VALUES 85 (' bx_articles', '[db_prefix]voting', '[db_prefix]voting_track', 'arl_', 5, 'vote_send_result', 'BX_PERIOD_PER_VOTE', 1, '', '', '[db_prefix]entries', 'rate', 'rate_count', 'id', 'BxArlVoting', 'modules/boonex/articles/classes/BxArlVoting.php');91 ('[name]', '[db_prefix]voting', '[db_prefix]voting_track', 'arl_', 5, 'vote_send_result', 'BX_PERIOD_PER_VOTE', 1, '', '', '[db_prefix]entries', 'rate', 'rate_count', 'id', '[class_prefix]Voting', 'modules/[path]classes/[class_prefix]Voting.php'); 86 92 87 93 INSERT INTO `sys_objects_tag` (`ObjectName`, `Query`, `PermalinkParam`, `EnabledPermalink`, `DisabledPermalink`, `LangKey`) VALUES 88 (' bx_articles', 'SELECT `tags` FROM `[db_prefix]entries` WHERE `id`={iID} AND `status`=0', 'permalinks_module_articles', 'm/articles/tag/{tag}', 'modules/?r=articles/tag/{tag}', '_articles_lcaption_tags');94 ('[name]', 'SELECT `tags` FROM `[db_prefix]entries` WHERE `id`={iID} AND `status`=0', 'permalinks_module_articles', 'm/[uri]/tag/{tag}', 'modules/?r=[uri]/tag/{tag}', '_articles_lcaption_tags'); 89 95 90 INSERT INTO `sys_objects_categories` (`ObjectName`, `Query`, `PermalinkParam`, `EnabledPermalink`, `DisabledPermalink`, `LangKey`) 91 VALUES ('bx_articles', 'SELECT `categories` FROM `[db_prefix]entries` WHERE `id`=''{iID}'' AND `status`=''0''', 'permalinks_module_articles', 'm/articles/category/{tag}', 'modules/?r=articles/category/{tag}', '_articles_lcaption_categories');96 INSERT INTO `sys_objects_categories` (`ObjectName`, `Query`, `PermalinkParam`, `EnabledPermalink`, `DisabledPermalink`, `LangKey`) VALUES 97 ('[name]', 'SELECT `categories` FROM `[db_prefix]entries` WHERE `id`=''{iID}'' AND `status`=''0''', 'permalinks_module_articles', 'm/[uri]/category/{tag}', 'modules/?r=[uri]/category/{tag}', '_articles_lcaption_categories'); 92 98 93 99 INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `ClassName`, `ClassPath`) VALUES 94 (' bx_articles', '_articles_lcaption_search_object', 'BxArlSearchResult', 'modules/boonex/articles/classes/BxArlSearchResult.php');100 ('[name]', '_articles_lcaption_search_object', '[class_prefix]SearchResult', 'modules/[path]classes/[class_prefix]SearchResult.php'); 95 101 96 102 INSERT INTO `sys_objects_views`(`name`, `table_track`, `period`, `trigger_table`, `trigger_field_id`, `trigger_field_views`, `is_on`) VALUES 97 (' bx_articles', '[db_prefix]views_track', 86400, '[db_prefix]entries', 'id', 'view_count', 1);103 ('[name]', '[db_prefix]views_track', 86400, '[db_prefix]entries', 'id', 'view_count', 1); 98 104 99 105 INSERT INTO `sys_objects_actions`(`Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES 100 ('{sbs_articles_title}', 'action_subscribe.png', '', '{sbs_articles_script}', '', 1, ' bx_articles', 0),101 ('{del_articles_title}', 'action_block.png', '', '{del_articles_script}', '', 2, ' bx_articles', 0);106 ('{sbs_articles_title}', 'action_subscribe.png', '', '{sbs_articles_script}', '', 1, '[name]', 0), 107 ('{del_articles_title}', 'action_block.png', '', '{del_articles_script}', '', 2, '[name]', 0); 102 108 103 109 … … 116 122 117 123 INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `eval`) VALUES 118 (' bx_articles', '*/5 * * * *', 'BxArlCron', 'modules/boonex/articles/classes/BxArlCron.php', '');124 ('[name]', '*/5 * * * *', '[class_prefix]Cron', 'modules/[path]classes/[class_prefix]Cron.php', ''); -
trunk/modules/boonex/articles/install/sql/install.sql
r15288 r15751 1 -- 2 -- Studio page and widget. 3 -- 4 INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 5 (3, '[name]', '_articles_adm_page_cpt', '_articles_adm_page_cpt', 'modules/[path]|std-pi.png'); 6 SET @iPageId = LAST_INSERT_ID(); 7 8 SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='modules'); 9 SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 10 INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 11 (@iPageId, CONCAT('{url_studio}module.php?name=', '[name]'), '', 'modules/[path]|std-wi.png', '_articles_adm_wgt_cpt', '', '', 2); 12 INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES 13 (@iParentPageId, LAST_INSERT_ID(), IF(NOT ISNULL(@iParentPageOrder), @iParentPageOrder + 1, 1)); 14 15 1 16 -- 2 17 -- Table structure for table `[db_prefix]entries` 3 18 -- 4 5 19 CREATE TABLE IF NOT EXISTS `[db_prefix]entries` ( 6 20 `id` int(11) unsigned NOT NULL auto_increment, … … 97 111 98 112 INSERT INTO `sys_categories` (`Category`, `ID`, `Type`, `Owner`, `Status`) VALUES 99 ('Default', '0', ' bx_articles', '0', 'active'),100 ('BoonEx Products', '0', ' bx_articles', '0', 'active'),101 ('Some Useful Info', '0', ' bx_articles', '0', 'active');113 ('Default', '0', '[name]', '0', 'active'), 114 ('BoonEx Products', '0', '[name]', '0', 'active'), 115 ('Some Useful Info', '0', '[name]', '0', 'active'); 102 116 103 117 104 118 INSERT INTO `sys_sbs_types`(`unit`, `action`, `template`, `params`) VALUES 105 (' bx_articles', '', '', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));'),106 (' bx_articles', 'commentPost', 't_sbsArticlesComments', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));'),107 (' bx_articles', 'rate', 't_sbsArticlesRates', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));');119 ('[name]', '', '', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));'), 120 ('[name]', 'commentPost', 't_sbsArticlesComments', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));'), 121 ('[name]', 'rate', 't_sbsArticlesRates', 'return BxDolService::call(\'articles\', \'get_subscription_params\', array($arg1, $arg2, $arg3));'); -
trunk/modules/boonex/articles/install/sql/uninstall.sql
r15288 r15751 1 -- 2 -- Studio page and widget. 3 -- 4 DELETE FROM `tp`, `tw`, `tpw` 5 USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw` 6 WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`='[name]'; 7 1 8 DROP TABLE IF EXISTS `[db_prefix]entries`; 2 9 DROP TABLE IF EXISTS `[db_prefix]comments`; … … 7 14 8 15 9 DELETE FROM `sys_categories` WHERE `Type` = ' bx_articles';16 DELETE FROM `sys_categories` WHERE `Type` = '[name]'; 10 17 11 18 12 DELETE FROM `sys_sbs_entries` USING `sys_sbs_types`, `sys_sbs_entries` WHERE `sys_sbs_types`.`id`=`sys_sbs_entries`.`subscription_id` AND `sys_sbs_types`.`unit`=' bx_articles';13 DELETE FROM `sys_sbs_types` WHERE `unit`=' bx_articles';19 DELETE FROM `sys_sbs_entries` USING `sys_sbs_types`, `sys_sbs_entries` WHERE `sys_sbs_types`.`id`=`sys_sbs_entries`.`subscription_id` AND `sys_sbs_types`.`unit`='[name]'; 20 DELETE FROM `sys_sbs_types` WHERE `unit`='[name]'; -
trunk/modules/boonex/english/install/data/langs/en.xml
r15741 r15751 1910 1910 <string name="_adm_txt_switcher_deactivate"><![CDATA[Pause]]></string> 1911 1911 <string name="_adm_txt_switcher_activate"><![CDATA[Activate]]></string> 1912 <string name="_adm_txt_confirm_ok"><![CDATA[OK]]></string> 1913 <string name="_adm_txt_confirm_cancel"><![CDATA[Cancel]]></string> 1912 1914 <string name="_adm_scs_operation_done"><![CDATA[]]></string> 1913 1915 <string name="_adm_err_operation_failed"><![CDATA[Operation failed. Please report.]]></string> … … 1975 1977 <string name="_adm_btn_update_submit"><![CDATA[Update]]></string> 1976 1978 <string name="_adm_act_err_failed_page_loading"><![CDATA[Cannot load the page]]></string> 1979 1980 <string name="_adm_mod_err_cannot_process_action"><![CDATA[Cannot process action. It does not have an associated handler.]]></string> 1981 <string name="_adm_mod_err_process_operation_failed"><![CDATA[Cannot {0} module from "{1}" directory]]></string> 1982 <string name="_adm_mod_cnf_uninstall"><![CDATA[<h3>Uninstall "{0}" module?</h3><p>Uninstalling "{0}" module will also delete all of its data. Do you want to continue?</p>]]></string> 1983 1977 1984 <string name="_adm_tmi_cpt_templates"><![CDATA[Templates]]></string> 1978 1985 <string name="_adm_page_cpt_templates"><![CDATA[Templates]]></string> … … 2164 2171 <string name="_adm_err_modules_cannot_upload_package"><![CDATA[Cannot upload the package]]></string> 2165 2172 <string name="_adm_err_modules_cannot_remove_package"><![CDATA[Cannot remove package.]]></string> 2166 <string name="_adm_err_modules_process_operation_failed"><![CDATA[Cannot {0} module from "{1}" directory]]></string>2167 2173 <string name="_adm_err_modules_process_action_failed"><![CDATA[An error occured. Contact with module\'s vendor]]></string> 2168 2174 <string name="_adm_err_modules_already_uninstalled"><![CDATA[The module was already uninstalled.]]></string>
Note: See TracChangeset
for help on using the changeset viewer.