-
AuthorPosts
-
edroga Friend
edroga
- Join date:
- March 2009
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 4, 2012 at 7:51 am #181181Hi, I have a problem with JA News Featured module. When the article I have a few pictures, unfortunately, JA News Featured module displays the one that is last in the article. I would like to show you the one who is first in the article. Why is this happening?
edroga Friendedroga
- Join date:
- March 2009
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 5, 2012 at 6:53 am #469209can anyone help me?
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 5, 2012 at 8:34 am #469221Hi Edroga
Please update the module to latest version.Regards,
edroga Friendedroga
- Join date:
- March 2009
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 5, 2012 at 12:18 pm #469248Unfortunately, the update did not help
In demo there is the same problem.However, in the JA News Pro Module works!
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 8, 2012 at 3:27 am #469361Hi Edroga
Please open file modules/mod_janews_featured/helpers/jaimage.php and find
[PHP]$text .= (isset($row->fulltext))?$row->fulltext:”;
$text .= (isset($row->introtext))?$row->introtext:”;[/PHP]
then try replace to
[PHP]$text .= (isset($row->introtext))?$row->introtext:”;
$text .= (isset($row->fulltext))?$row->fulltext:”;
[/PHP]
Regards,edroga Friendedroga
- Join date:
- March 2009
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 8, 2012 at 8:15 am #469400I noticed what the problem is. Image that is displayed in the module “JA News Featured” is the first image that follows readmore tag: <hr id=”system-readmore” /> How do I change the module “JA News Featured” to it was the first picture in the entire article?
edroga Friendedroga
- Join date:
- March 2009
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 8, 2012 at 10:53 am #469435<em>@HeR0 341388 wrote:</em><blockquote>Hi Edroga
Please open file modules/mod_janews_featured/helpers/jaimage.php and find
[PHP]$text .= (isset($row->fulltext))?$row->fulltext:”;
$text .= (isset($row->introtext))?$row->introtext:”;[/PHP]
then try replace to
[PHP]$text .= (isset($row->introtext))?$row->introtext:”;
$text .= (isset($row->fulltext))?$row->fulltext:”;
[/PHP]
Regards,</blockquote>
Thank you 😀dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 9, 2012 at 8:45 am #469519Hello,
we have the same problem. but this solution is not working for us.
we have the lastest version (JA News Featured Module 2.5.2).We changed the code in modules/mod_janews_featured/helpers/jaimage.php like this :
else {
$regex = '/<img.+srcs*=s*"([^"]*)"[^>]*>/';
$text = '';
$text .= (isset($row->introtext))?$row->introtext:'';
$text .= (isset($row->fulltext))?$row->fulltext:'';
preg_match($regex, $text, $matches);
$images = (count($matches)) ? $matches : array();
$image = count($images) > 1 ? $images[1] : '';
}
return $image;All caches are cleared, but nothing change. The second image of the article still appears in JA News Featured…
Do you have a idea to fix this ?
Thank in advance.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 10, 2012 at 4:13 am #469591Hi dieudonne
If module uses cropping or resizing image function to render, please delete all images resized.
If problem still persists, pm me admin account, ftp info. I need check in code files because your issue is strange.Regards,
1 user says Thank You to HeR0 for this useful post
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 10, 2012 at 1:50 pm #469655Hello,
after deleted all resized pictures, the problem still persists.
I just PM you with access code.Thank in advance.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 11, 2012 at 4:41 am #469721Hi dieuonne
It would be great if you could PM me the ftp info, I would need a further check in the code files to detect the issue properly!Regards,
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 11, 2012 at 10:26 am #469757Hello,
I just PM you with the ftp access code.
Thank in advance for your help.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 12, 2012 at 10:59 am #469905Ok, thanks, apparently it is working.
Thank you very very much.But can you tell us what is the change in this files ? And what was wrong ?
Thnak in advance.
Update : we have now a strange bug !
It is on this page :
http://www.cire.be/services/structure-daccueil-des-demandeurs-dasileWarning: imagejpeg() [function.imagejpeg]: Unable to open '/home/www/88f713b69e9666e8466e69535bceeda4/web/images/resized/images/sensibilisation/blog-transition-accueil/trempli-malin-picture_57_80.jpg' for writing: Permission denied in /home/www/88f713b69e9666e8466e69535bceeda4/web/modules/mod_janewspro/helpers/jaimage.php on line 308
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/www/88f713b69e9666e8466e69535bceeda4/web/images/resized/images/sensibilisation/blog-transition-accueil/trempli-malin-picture_57_80.jpg' for writing: Permission denied in /home/www/88f713b69e9666e8466e69535bceeda4/web/modules/mod_janewspro/helpers/jaimage.php on line 308
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 13, 2012 at 2:17 am #469954Hi
I only change the same on modules/mod_news_featured/helpers/image.php
Unable to open: i did not see error as you mentioned. You should delete or change the name of 2 images to get this problem solved.Regards,
1 user says Thank You to HeR0 for this useful post
-
AuthorPosts
This topic contains 34 replies, has 6 voices, and was last updated by navmeet 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum