Dear Willem S.A. Da Costa Gomez,
Please do the following steps:
- go to "modules\mod_sj_k2_accordion\core\accordionreader.php", finding:
if (!isset($item->images) || (!YTools::isUrl($item->images) && !file_exists($item->images))){
$item->images = 'modules/'.Ytools::getModule()->module . '/assets/images/nophoto.jpg';
}
$temp['id'] = $item->id;
$temp['title'] = $item->title;
$temp['image'] = $item->images;
if(array_key_exists($item->id, $arrcustom_url)){
$temp['link'] = $arrcustom_url[$item->id];
}else{
if (!isset($item->url)){
$item->url = (JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->catid.':'.urlencode($item->alias))));
}
$temp['link'] = $item->url;
}
if ((int)$params['item_description_keephtml'] == 0){
$temp['desc'] = strip_tags($item->description);
} else {
$temp['desc'] = ($item->description);
}
$list[] = $temp;
change to
$check_no_images = 0;
if (!isset($item->images) || (!YTools::isUrl($item->images) && !file_exists($item->images))){
$check_no_images = 1;
}
if($check_no_images == 0){
$temp['id'] = $item->id;
$temp['title'] = $item->title;
$temp['image'] = $item->images;
if(array_key_exists($item->id, $arrcustom_url)){
$temp['link'] = $arrcustom_url[$item->id];
}else{
if (!isset($item->url)){
$item->url = (JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->catid.':'.urlencode($item->alias))));
}
$temp['link'] = $item->url;
}
if ((int)$params['item_description_keephtml'] == 0){
$temp['desc'] = strip_tags($item->description);
} else {
$temp['desc'] = ($item->description);
}
$list[] = $temp;
}
* go to "modules\mod_so_k2_slider\core\sok2sliderreader.php", finding:
if (!isset($item->images) || (!YTools::isUrl($item->images) && !file_exists($item->images))){
$item->images = 'modules/'.Ytools::getModule()->module . '/assets/images/nophoto.gif';
}
$temp['id'] = $item->id;
$temp['title'] = $item->title;
$temp['image'] = $item->images;
$temp['link'] = $item->link;
if($params['desc_keep_html'] == 0){
$temp['desc'] = strip_tags($item->description);
}else{
$temp['desc'] = $item->description;
}
$list[] = $temp;
change to
$check_no_images = 0;
if (!isset($item->images) || (!YTools::isUrl($item->images) && !file_exists($item->images))){
$check_no_images = 1;
}
if($check_no_images == 0){
$temp['id'] = $item->id;
$temp['title'] = $item->title;
$temp['image'] = $item->images;
$temp['link'] = $item->link;
if($params['desc_keep_html'] == 0){
$temp['desc'] = strip_tags($item->description);
}else{
$temp['desc'] = $item->description;
}
$list[] = $temp;
}
Thanks