Added changes to constants.php / added ACP modules, etc

This commit is contained in:
Kevin
2008-10-04 19:56:58 +00:00
parent 3904d7924c
commit 85e9ae633b
11 changed files with 394 additions and 33 deletions

View File

@@ -496,6 +496,29 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
'module_auth' => ''
);
$modules->update_module_data($linkblock);
$palletlist = array(
'module_basename' => 'pallet',
'module_enabled' => 1,
'module_display' => 1,
'parent_id' => $portal['module_id'],
'module_class' => 'acp',
'module_langname' => 'ACP_PALLET_LIST_INFO',
'module_mode' => 'list',
'module_auth' => ''
);
$modules->update_module_data($palletlist);
$portallayout = array(
'module_basename' => 'pallet',
'module_enabled' => 1,
'module_display' => 1,
'parent_id' => $portal['module_id'],
'module_class' => 'acp',
'module_langname' => 'ACP_PORTAL_LAYOUT_INFO',
'module_mode' => 'layout',
'module_auth' => ''
);
$modules->update_module_data($portallayout);
// clear cache and log what we did
$cache->purge();
add_log('admin', $page_title . ' installed');
@@ -855,7 +878,29 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
'module_mode' => 'links',
'module_auth' => ''
);
$modules->update_module_data($linkblock);
$modules->update_module_data($linkblock);
$palletlist = array(
'module_basename' => 'pallet',
'module_enabled' => 1,
'module_display' => 1,
'parent_id' => $portal['module_id'],
'module_class' => 'acp',
'module_langname' => 'ACP_PALLET_LIST_INFO',
'module_mode' => 'list',
'module_auth' => ''
);
$modules->update_module_data($palletlist);
$portallayout = array(
'module_basename' => 'pallet',
'module_enabled' => 1,
'module_display' => 1,
'parent_id' => $portal['module_id'],
'module_class' => 'acp',
'module_langname' => 'ACP_PORTAL_LAYOUT_INFO',
'module_mode' => 'layout',
'module_auth' => ''
);
$modules->update_module_data($portallayout);
// clear cache and log what we did
$cache->purge();
@@ -1010,6 +1055,8 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
OR module_langname = 'ACP_PORTAL_MINICALENDAR_INFO'
OR module_langname = 'ACP_PORTAL_CUSTOM_INFO'
OR module_langname = 'ACP_PORTAL_LINKS_INFO'
OR module_langname = 'ACP_PALLET_LIST_INFO'
OR module_langname = 'ACP_PORTAL_LAYOUT_INFO'
";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))

View File

@@ -11,7 +11,7 @@ CREATE TABLE phpbb_portal_config (
# Table: 'phpbb_portal_blocks'
CREATE TABLE phpbb_portal_blocks (
block_name varchar(64) NOT NULL,
block_name varbinary(64) NOT NULL,
block_type tinyint(1) DEFAULT '0' NOT NULL,
block_enabled tinyint(1) DEFAULT '0' NOT NULL,
block_position tinyint(1) DEFAULT '0' NOT NULL,

View File

@@ -53,6 +53,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_anno
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:"text";s:9:"Board3.de";s:3:"url";s:21:"http://www.board3.de/";}i:2;a:2:{s:4:"text";s:9:"phpBB.com";s:3:"url";s:21:"http://www.phpbb.com/";}}');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_announcements_replies_views', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_news_replies_views', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_guest', '1');
# Inserts who have to be checked at a later stage of the block pallet feature #
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders_ext', '0');
@@ -76,7 +77,6 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_foru
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_top_posters', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_advanced_stat', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_guest', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_birthdays', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_search', '1'); #
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_friends', '1'); #