i'll find in admin/controler/settings config_icon and config_logo and added this behind icon and logo:
Code: Select all
if (is_uploaded_file($this->request->files['config_banner']['tmp_name']) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) {
move_uploaded_file($this->request->files['config_banner']['tmp_name'], DIR_IMAGE . $this->request->files['config_banner']['name']);
if (file_exists(DIR_IMAGE . $this->request->files['config_banner']['name'])) {
$data['config_banner'] = $this->request->files['config_banner']['name'];
}
}
Code: Select all
$this->data['config_banner'] = $this->config->get('config_banner');
if ($this->config->get('config_banner') && file_exists(DIR_IMAGE . $this->config->get('config_banner'))) {
if ((isset($this->request->server['HTTPS'])) && ($this->request->server['HTTPS'] == 'on')) {
$this->data['preview_banner'] = HTTPS_IMAGE . $this->config->get('config_banner');
} else {
$this->data['preview_banner'] = HTTP_IMAGE . $this->config->get('config_banner');
}
} else {
$this->data['preview_banner'] = image_resize('no_image.jpg', 100, 100);
}
Code: Select all
if ($this->request->files['config_banner']['name']) {
if ((strlen(utf8_decode($this->request->files['config_banner']['name'])) < 3) || (strlen(utf8_decode($this->request->files['config_banner']['name'])) > 255)) {
$this->error['warning'] = $this->language->get('error_filename');
}
$allowed = array(
'image/jpeg',
'image/pjpeg',
'image/png',
'image/x-png',
'image/gif'
);
if (!in_array($this->request->files['config_banner']['type'], $allowed)) {
$this->error['warning'] = $this->language->get('error_filetype');
}
if (!is_writable(DIR_IMAGE)) {
$this->error['warning'] = $this->language->get('error_writable_image');
}
if (!is_writable(DIR_IMAGE . 'cache/')) {
$this->error['warning'] = $this->language->get('error_writable_image_cache');
}
if ($this->request->files['config_banner']['error'] != UPLOAD_ERR_OK) {
$this->error['warning'] = $this->language->get('error_upload_' . $this->request->files['config_banner']['error']);
}
}
after this i do refresh in my admin panel in images and do not see news((((
i search in admin folder someword like config_logo and config_ico but do not find((
how i can add this? >:(
Thank You!
========================
Best regards,
Theodore.