HomeHelpTrac

Changeset 15751 for trunk/modules


Ignore:
Timestamp:
12/12/11 22:16:28 (6 months ago)
Author:
Anton Lesnikov
Message:
  1. Modules/Store? Installer improvements and updates
  2. Related changes in Articles module.
Location:
trunk/modules/boonex
Files:
5 added
8 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/articles/classes/BxArlModule.php

    r15211 r15751  
    144144 
    145145        //--- Define Membership Actions ---// 
    146         defineMembershipActions(array('articles delete'), 'ACTION_ID_'); 
     146        //defineMembershipActions(array('articles delete'), 'ACTION_ID_'); 
    147147    } 
    148148 
  • trunk/modules/boonex/articles/install/config.php

    r15656 r15751  
    2525     */ 
    2626    'type' => BX_DOL_MODULE_TYPE_MODULE, 
     27    'name' => 'bx_articles', 
    2728    'title' => 'Articles', 
    2829    'note' => 'Text posts with rich media...', 
    2930    'version' => '1.0.6', 
    30     'vendor' => 'Boonex', 
     31    'vendor' => 'BoonEx', 
    3132    'product_url' => 'http://www.boonex.com/products/{uri}', 
    3233    'update_url' => 'http://www.boonex.com/products/{uri}', 
     
    4849     */ 
    4950    'install' => array( 
    50         'show_introduction' => 1, 
     51        'show_introduction' => 0, 
    5152        'change_permissions' => 0, 
    5253        'execute_sql' => 1, 
     
    6768        'recompile_alerts' => 1, 
    6869        'clear_db_cache' => 1, 
    69         'show_conclusion' => 1 
     70        'show_conclusion' => 0 
    7071    ), 
    7172    'uninstall' => array ( 
    72         'show_introduction' => 1, 
     73        'show_introduction' => 0, 
    7374        'change_permissions' => 0, 
    7475        'execute_sql' => 1, 
     
    8990        'recompile_alerts' => 1, 
    9091        'clear_db_cache' => 1, 
    91         'show_conclusion' => 1 
     92        'show_conclusion' => 0 
    9293    ), 
    9394    'enable' => array( 
  • trunk/modules/boonex/articles/install/langs/en.xml

    r15722 r15751  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<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> 
    38    <string name="_articles_pcaption_admin"><![CDATA[Articles Administration]]></string> 
    49    <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-- 
     4SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='[name]' LIMIT 1); 
     5UPDATE `sys_std_widgets` SET `status`='2' WHERE `page_id`=@iPageId LIMIT 1; 
     6 
     7 
    18SET @iTMParentId = (SELECT `ID` FROM `sys_menu_top` WHERE `Name`='Articles' LIMIT 1); 
    29DELETE FROM `sys_menu_top` WHERE `Name` IN ('Articles', '[db_prefix]_view') OR `Parent`=@iTMParentId; 
     
    916 
    1017DELETE 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'; 
     18DELETE 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]'; 
    1219 
    1320 
     
    1522 
    1623 
    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'; 
     24DELETE FROM `sys_objects_cmts` WHERE `ObjectName`='[name]' LIMIT 1; 
     25DELETE FROM `sys_objects_vote` WHERE `ObjectName`='[name]' LIMIT 1; 
     26DELETE FROM `sys_objects_tag` WHERE `ObjectName`='[name]' LIMIT 1; 
     27DELETE FROM `sys_objects_categories` WHERE `ObjectName`='[name]' LIMIT 1; 
     28DELETE FROM `sys_objects_search` WHERE `ObjectName`='[name]' LIMIT 1; 
     29DELETE FROM `sys_objects_views` WHERE `name`='[name]' LIMIT 1; 
     30DELETE FROM `sys_objects_actions` WHERE `Type`='[name]'; 
    2431 
    2532 
     
    3037 
    3138 
    32 DELETE FROM `sys_cron_jobs` WHERE `name`='bx_articles'; 
     39DELETE FROM `sys_cron_jobs` WHERE `name`='[name]'; 
  • trunk/modules/boonex/articles/install/sql/enable.sql

    r15722 r15751  
     1-- 
     2-- Studio page and widget. 
     3-- 
     4SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='[name]' LIMIT 1); 
     5UPDATE `sys_std_widgets` SET `status`='1' WHERE `page_id`=@iPageId LIMIT 1; 
     6 
    17SET @iTMOrder = (SELECT MAX(`Order`) FROM `sys_menu_top` WHERE `Parent`='0'); 
    28INSERT 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, ''); 
    410 
    511SET @iTMParentId = LAST_INSERT_ID( ); 
    612INSERT 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, ''); 
    1723 
    1824INSERT 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'); 
    2026 
    2127 
     
    2834SET @iPCOrder = (SELECT MAX(`Order`) FROM `sys_page_compose` WHERE `Page`='index' AND `Column`='1'); 
    2935INSERT 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), 
    3440('articles_single', '998px', 'Articles main content', '_articles_bcaption_view_main', 1, 0, 'Content', '', 1, 66, 'non,memb', 0), 
    3541('articles_single', '998px', 'Articles comments', '_articles_bcaption_view_comment', 1, 1, 'Comment', '', 1, 66, 'non,memb', 0), 
     
    4248SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group`='modules'); 
    4349INSERT 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)); 
    4551SET @iTypeId = LAST_INSERT_ID(); 
    4652 
    4753INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )   
    48 VALUES (@iTypeId, 'bx_articles_general', '_articles_adm_stg_cpt_category_general', 1); 
     54VALUES (@iTypeId, '[name]_general', '_articles_adm_stg_cpt_category_general', 1); 
    4955SET @iCategoryId = LAST_INSERT_ID(); 
    5056 
     
    7682 
    7783 
    78 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=articles/', 'm/articles/', 'permalinks_module_articles'); 
     84INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=[uri]/', 'm/[uri]/', 'permalinks_module_articles'); 
    7985 
    8086 
    8187INSERT 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'); 
    8389 
    8490INSERT 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'); 
    8692 
    8793INSERT 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'); 
    8995 
    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'); 
     96INSERT 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'); 
    9298 
    9399INSERT 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'); 
    95101 
    96102INSERT 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); 
    98104 
    99105INSERT 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); 
    102108 
    103109 
     
    116122 
    117123INSERT 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-- 
     4INSERT 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'); 
     6SET @iPageId = LAST_INSERT_ID(); 
     7 
     8SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='modules'); 
     9SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 
     10INSERT 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); 
     12INSERT 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 
    116-- 
    217-- Table structure for table `[db_prefix]entries` 
    318-- 
    4  
    519CREATE TABLE IF NOT EXISTS `[db_prefix]entries` ( 
    620  `id` int(11) unsigned NOT NULL auto_increment, 
     
    97111 
    98112INSERT 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'); 
    102116 
    103117 
    104118INSERT 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-- 
     4DELETE FROM `tp`, `tw`, `tpw` 
     5USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw` 
     6WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`='[name]'; 
     7 
    18DROP TABLE IF EXISTS `[db_prefix]entries`; 
    29DROP TABLE IF EXISTS `[db_prefix]comments`; 
     
    714 
    815 
    9 DELETE FROM `sys_categories` WHERE `Type` = 'bx_articles'; 
     16DELETE FROM `sys_categories` WHERE `Type` = '[name]'; 
    1017 
    1118 
    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'; 
     19DELETE 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]'; 
     20DELETE FROM `sys_sbs_types` WHERE `unit`='[name]'; 
  • trunk/modules/boonex/english/install/data/langs/en.xml

    r15741 r15751  
    19101910    <string name="_adm_txt_switcher_deactivate"><![CDATA[Pause]]></string> 
    19111911    <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> 
    19121914    <string name="_adm_scs_operation_done"><![CDATA[]]></string>  
    19131915    <string name="_adm_err_operation_failed"><![CDATA[Operation failed. Please report.]]></string> 
     
    19751977    <string name="_adm_btn_update_submit"><![CDATA[Update]]></string> 
    19761978    <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 
    19771984    <string name="_adm_tmi_cpt_templates"><![CDATA[Templates]]></string> 
    19781985    <string name="_adm_page_cpt_templates"><![CDATA[Templates]]></string> 
     
    21642171    <string name="_adm_err_modules_cannot_upload_package"><![CDATA[Cannot upload the package]]></string> 
    21652172    <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> 
    21672173    <string name="_adm_err_modules_process_action_failed"><![CDATA[An error occured. Contact with module\'s vendor]]></string> 
    21682174    <string name="_adm_err_modules_already_uninstalled"><![CDATA[The module was already uninstalled.]]></string> 
Note: See TracChangeset for help on using the changeset viewer.