Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 3 Ответов
  • 2071 Просмотров
*

scaners

  • Захожу иногда
  • 131
  • 15 / 0
Кто может объяснить нормальным языком, что и куда надо вставить, чтобы в CB заработали анимированные Gif?
« Последнее редактирование: 05.12.2008, 12:27:46 от scaners »
*

scaners

  • Захожу иногда
  • 131
  • 15 / 0
Кажись разобрался. Если кому надо. Находим в файле administrator/components/com_comprofiler/ImgToolbox.class.php строки

Код
               // resize to thumbnail...
            if(!$this->resizeImage($file, $thumbfile, $this->_thumbwidth, $this->_thumbheight, $filename)){
                   $this->raiseError("Error: resizing thumbnail image failed.");
                   return false;
               }

меняем на:

Код
               // resize to thumbnail...
// resize thumb fix - check if the image file is bigger than allowed thumbnail
              if($imginfo[0] > $this->_thumbwidth || $imginfo[1] > $this->_maxheight){
                if(!$this->resizeImage($file, $thumbfile, $this->_thumbwidth, $this->_thumbheight, $filename)){
                   $this->raiseError("Error: resizing thumbnail image failed.");
                   return false;
                }
// resize thumb fix - else, just copy the file to the thumbnail file
               } else {
                    if (!@copy($file, $thumbfile)){
                        // some error occured while copying the file to the thumbnail file
                        $this->raiseError("Error occurred copying the uploaded file to the thumbnail.");
                        return false;
                    }
               }

Теперь CB разрешит нам загружать анимированные Gif

P.S. Админы - если можно, прилепите тему. А то на разных форумах неоднократно вопрос подымался. Вроде как решение все таки.
« Последнее редактирование: 08.12.2008, 15:09:33 от scaners »
*

smalexxx

  • Захожу иногда
  • 130
  • 5 / 0
  • А ты сделал КУ?
у меня 1.2 на ней будет работать?
*

egormash

  • Захожу иногда
  • 66
  • 9 / 0
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться