Viewing 15 posts - 1 through 15 (of 34 total)
  • Author
    Posts
  • edroga Friend
    #181181

    Hi, 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 Friend
    #469209

    can anyone help me?

    HeR0 Friend
    #469221

    Hi Edroga
    Please update the module to latest version.

    Regards,

    edroga Friend
    #469248

    Unfortunately, the update did not help
    In demo there is the same problem.

    However, in the JA News Pro Module works!

    HeR0 Friend
    #469361

    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,

    edroga Friend
    #469400

    I 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 Friend
    #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 Friend
    #469519

    Hello,

    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 Friend
    #469591

    Hi 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,

    dieudonne Friend
    #469655

    Hello,

    after deleted all resized pictures, the problem still persists.
    I just PM you with access code.

    Thank in advance.

    HeR0 Friend
    #469721

    Hi 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 Friend
    #469757

    Hello,

    I just PM you with the ftp access code.

    Thank in advance for your help.

    HeR0 Friend
    #469840

    Hi
    I fixed this issue in modules/mod_jabulletin/image.php , pls check now and confirm that.

    Regards,

    dieudonne Friend
    #469905

    Ok, 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-dasile

    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

    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 Friend
    #469954

    Hi
    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,

Viewing 15 posts - 1 through 15 (of 34 total)

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