修改includes/classees/seo_install.php
function install_settings(){
$this->uninstall_settings();
$sort_order_query = "SELECT MAX(sort_order) as max_sort FROM `".TABLE_CONFIGURATION_GROUP."`";
$sort = $this->db->Execute($sort_order_query);
$next_sort = $sort->fields['max_sort'] + 1;
$insert_group = "INSERT INTO `".TABLE_CONFIGURATION_GROUP."` VALUES ('', 'SEO URLs', 'Options for Ultimate SEO URLs by Chemo', '".$next_sort."', '1')";
$this->db->Execute($insert_group);
$group_id = $this->db->insert_ID();
foreach ($this->default_config as $key => $value){
$sql = str_replace('GROUP_INSERT_ID', $group_id, $value['QUERY']);
$this->db->Execute($sql);
}
$insert_cache_table = "CREATE TABLE " . TABLE_SEO_CACHE . " (
`cache_id` varchar(32) NOT NULL default '',
`cache_language_id` tinyint(1) NOT NULL default '0',
`cache_name` varchar(255) NOT NULL default '',
`cache_data` mediumtext NOT NULL,
`cache_global` tinyint(1) NOT NULL default '1',
`cache_gzip` tinyint(1) NOT NULL default '1',
`cache_method` varchar(20) NOT NULL default 'RETURN',
`cache_date` datetime NOT NULL default '0000-00-00 00:00:00',
`cache_expires` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`cache_id`,`cache_language_id`),
KEY `cache_id` (`cache_id`),
KEY `cache_language_id` (`cache_language_id`),
KEY `cache_global` (`cache_global`)
) ENGINE=MyISAM;"; // 原为TYPE=MyISAM;
$this->db->Execute($insert_cache_table);
} # end function
} # end class
在 admin/includes/languages/<language>.php
在 define('BOX_CONFIGURATION_EZPAGES_SETTINGS', 'EZ-Pages Settings');
之下加入 define('BOX_CONFIGURATION_SEO_URL', 'SEO URL');
执行SQL加入菜单
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('configSEOUrl', 'BOX_CONFIGURATION_SEO_URL','FILENAME_CONFIGURATION','gID=32','configuration','Y',26)