Items:
Image (TAB GENERAL> Name> DatabaseFolderImage) | (TAB Packing> position> 0)
Label (TAB GENERAL> Name> DatabaseFolderLabel) | (TAB Packing> position> 1)
Textbox (TAB GENERAL> Name> DatabaseFolderTextbox) | (TAB Packing> position> 2)
Button (TAB GENERAL> Name> DatabaseFolderButton) | (TAB Packing> position> 3)
ADD a PNG "eccconfigdatabase.png" to the path "ecc-themes\default\icon".
Edit file: cGuiPopConfig, around line 752, add:
$this->DatabaseFolderImage->set_from_file(FACTORY::get('manager/GuiTheme')- >getThemeFolder('icon/ecc_config_database.png'));
Edit file: ecc-system\translations\nl\i18n_popupConfig.php, at the NEAR END, add:
/* ECCVERSION */
'DatabaseFolderLabel' =>
"Database map",
LOAD label from i18n config into GUI Edit file: ecc-system\manager\cGuiPopConfig.php, around line 1050, add:
$this->DatabaseFolderLabel->set_text(I18N::get('popupConfig', 'DatabaseFolderLabel'));
Edit "vanilla eccconfig", file: "ecc-system\system\config\eccgeneral.ini", in section [USER_DATA] add:
database_path = "database/"
Edit file: ecc-system\manager\cGuiPopConfig.php, around line 1080, add:
$this->DatabaseFolderTextbox->set_text($iniManager->getKey('USER_DATA', 'database_path'));
Edit file: ecc-system\manager\cGuiPopConfig.php, around line 1240, ADD:
$this->globalIni['USER_DATA']['database_path'] = $this->DatabaseFolderTextbox->get_text();
Edit (for example) ecc.php, ADD:
$databaseFolder = $this->ini->getKey('USERDATA', 'databasepath'); // Load database folder from INI.
Edit file: ecc-system\manager\cGuiPopConfig.php, around line 1050, ADD:
$this->DatabaseFolderLabel->set_text(I18N::get('popupConfig', 'DatabaseFolderLabel'));
Edit file: ecc-system\manager\cGuiPopConfig.php, around line 140, ADD:
$this->DatabaseFolderButton->connect_simple('clicked', array($this, 'DatabaseFolderSelect'));
Edit file: ecc-system\manager\cGuiPopConfig.php, around line 1500, ADD:
public function DatabaseFolderSelect() {
$oOs = FACTORY::get('manager/Os');
$path = realpath($this->DatabaseFolderTextbox->get_text());
$title = I18N::get('popupConfig', 'dialogDatabaseFolder');
$path_new = $oOs->openChooseFolderDialog($path, $title, false);
$path_new = $oOs->eccSetRelativeDir($path_new);
if ($path_new) $this->DatabaseFolderTextbox->set_text($path_new);
}