Welcome, Guest
Username: Password: Remember me
JO K2 Slideshow

TOPIC: Ошибка установки модуля

Ошибка установки модуля 10 years 2 months ago #291

  • Alex
  • Alex's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Karma: 0
Hello. When installing a module error message appears. http://http://don-povareshkin.ru/. Please tell me what I should do. Thank you. :unsure:
hd8bcc4d.jpg
The administrator has disabled public write access.

Ошибка установки модуля 10 years 2 months ago #292

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi Alex
Problem because your server not support function resize in php
Find and open file: modules/mod_jo_k2_slideshow/helper.php
Go to line 298 and delete code below
if(!empty($lists[$i]->im)){
if($params->get('showthumbnails')==1){
$lists[$i]->resizeObj = new resize($lists[$i]->im);
$lists[$i]->resizeObj -> resizeImage($params->get('imagewidth'), $params->get('imageheight'), 'crop');
$lists[$i]->resizeObj -> saveImage('modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif', 100);
$lists[$i]->images = '<img src="modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif" alt="'.$row->title.'" title="'.$row->title.'" />';
}else{
$lists[$i]->images="";
}
}else{
if(($params->get('showthumbnailsdefault')==1) && ($params->get('showthumbnails')==1) && empty($lists[$i]->im)){// if images null then default images
$lists[$i]->resizeObj = new resize($params->get('imagedefault'));
$lists[$i]->resizeObj -> resizeImage($params->get('imagewidth'), $params->get('imageheight'), 'crop');
$lists[$i]->resizeObj -> saveImage('modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif', 100);
$lists[$i]->images = '<img src="modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif" alt="'.$row->title.'" title="'.$row->title.'" />';
}
}

And find and open file: modules/mod_jo_k2_slideshow/tmpl/default.php
Go to line 116 and change
<?php
echo $item1->images
?>
To
<img src="<?php echo $item1->im;?>" width="<?php echo $params->get('imagewidth')?>" height="<?php echo $params->get('imageheight')?>" >
Best Regards
Bach Pham
The administrator has disabled public write access.

Error installing the module 10 years 2 months ago #294

  • Alex
  • Alex's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Karma: 0
Hello. I changed it as you said. Small pictures appeared. No error is gone. I can't understand.
The administrator has disabled public write access.

Error installing the module 10 years 2 months ago #295

  • Alex
  • Alex's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Karma: 0
The administrator has disabled public write access.

Error installing the module 10 years 2 months ago #296

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
We have checked and you need find and open file: modules/mod_jo_k2_slideshow/helper.php
Go to line 298 and delete code below
if(!empty($lists[$i]->im)){
if($params->get('showthumbnails')==1){
$lists[$i]->resizeObj = new resize($lists[$i]->im);
$lists[$i]->resizeObj -> resizeImage($params->get('imagewidth'), $params->get('imageheight'), 'crop');
$lists[$i]->resizeObj -> saveImage('modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif', 100);
$lists[$i]->images = '<img src="modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif" alt="'.$row->title.'" title="'.$row->title.'" />';
}else{
$lists[$i]->images="";
}
}else{
if(($params->get('showthumbnailsdefault')==1) && ($params->get('showthumbnails')==1) && empty($lists[$i]->im)){// if images null then default images
$lists[$i]->resizeObj = new resize($params->get('imagedefault'));
$lists[$i]->resizeObj -> resizeImage($params->get('imagewidth'), $params->get('imageheight'), 'crop');
$lists[$i]->resizeObj -> saveImage('modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif', 100);
$lists[$i]->images = '<img src="modules/mod_jo_k2_slideshow/thumb_article/'.$name.'.gif" alt="'.$row->title.'" title="'.$row->title.'" />';
}
}
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.049 seconds