In your screenshots you have 2 different pages compared. If you mean your modules does not show images then please read below.
You can try following :
In News Show Pro GK4 module settings set as below
Thumbnails > Thumbnail image type = Use first article image
or
If you have a lot of modules try editing following file:
Backup : \modules\mod_news_pro_gk4\tmpl\layout.parts.php
Find Lines : 48 to 79 which sample lines are below
- Code: Select all
48 - // article image generator
49 - function image($config, $uri, $news_id, $news_iid, $news_cid, $news_text, $news_title, $images){
.
.
.
78 - }
79 - //
Replace 48 to 79 with below
- Code: Select all
// article image generator
function image($config, $uri, $news_id, $news_iid, $news_cid, $news_text, $news_title, $images){
$news_title = str_replace('"', """, $news_title);
$IMG_SOURCE = '';
$IMG_LINK = ($news_id !== 0) ? JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid)) : JRoute::_('index.php?option=com_user&view=login');
if($config['k2_thumbs'] == 'first') {
if(preg_match('/\<img.*src=.*?\>/',$news_text)){
$imgStartPos = JString::strpos($news_text, 'src="');
if($imgStartPos) $imgEndPos = JString::strpos($news_text, '"', $imgStartPos + 5);
if($imgStartPos > 0) $IMG_SOURCE = JString::substr($news_text, ($imgStartPos + 5), ($imgEndPos - ($imgStartPos + 5)));
}
} else {
// set image to first in article content
if(preg_match('/\<img.*src=.*?\>/',$news_text)){
$imgStartPos = JString::strpos($news_text, 'src="');
if($imgStartPos) $imgEndPos = JString::strpos($news_text, '"', $imgStartPos + 5);
if($imgStartPos > 0) $IMG_SOURCE = JString::substr($news_text, ($imgStartPos + 5), ($imgEndPos - ($imgStartPos + 5)));
}
}
//
See you around...