Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • jujujiju Friend
    #912415

    Hello! I upgraded JA News Pro Module, and now I have a problem. Previously the module took the first picture of a note (the principal), and now it does not. If I add more images in the note, this takes the other and not let me choose.

    How can I do to take the first image, which is located before the line break?

    Thank you very much.


    1. captura
    Ninja Lead Moderator
    #912782

    Hi,

    You can control to load first image from JA News Pro module

    Open modules/mod_janewspro/helpers/jaimage.php file
    find function parseImage($row) and change

    $text = '';
    $text .= (isset($row->fulltext))?$row->fulltext:'';
    $text .= (isset($row->introtext))?$row->introtext:'';
    preg_match($regex, $text, $matches);

    to

    $text = '';
    $text .= (isset($row->introtext))?$row->introtext:'';
    $text .= (isset($row->fulltext))?$row->fulltext:'';
    preg_match($regex, $text, $matches);

    Regards

    jujujiju Friend
    #919937

    Hello Ninja! I have applied the change but everything remains the same.
    Capture and attached a link so you can watch.
    Home: http://www.elsubmarinojujuy.com.ar/
    Article: http://www.elsubmarinojujuy.com.ar/deportes/17233-el-lobo-cayo-ante-talleres-jugando-mal-y-enfrenta-una-casi-despedida

    Regards

    Ninja Lead Moderator
    #920899

    That module of you mentioned is JA News Feature module and you can try to change that from modules/mod_janews_featured/helpers/jaimage.php file with the same of my solution

    jujujiju Friend
    #962871

    Hello, again! I made changes to both files and still have the same problem. Could you help me? Thank you very much

    Ninja Lead Moderator
    #962928

    I checked the URL of your site but I only see the article on your site is showing an image, please let me know the article is showing both images and besides that, you don’t forget to me the admin login backend and FTP account of your hosting via private reply. I will help you check further.

    jujujiju Friend
    #962995
    This reply has been marked as private.
    Ninja Lead Moderator
    #963149
    This reply has been marked as private.
    jujujiju Friend
    #964004

    Hello Ninja Lead ! The backend is working perfectly, what is the downside that you have to access? It might be the server?

    Ninja Lead Moderator
    #964116
    This reply has been marked as private.
    jujujiju Friend
    #965492

    Hello Ninja Lead. The server is restricted to access to the administration panel from countries which are not Spanish-speaking. I need to know from which country you come to allow access.

    Sorry for the inconvenience.

    Ninja Lead Moderator
    #965605
    This reply has been marked as private.
    jujujiju Friend
    #965843

    Ready!

    Ninja Lead Moderator
    #965942
    This reply has been marked as private.
    jujujiju Friend
    #966197

    Thank you very much Ninja Lead! Now, you could do the same with the module "JA News Featured"? I have the same problem, also takes the second picture.

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

This topic contains 15 replies, has 2 voices, and was last updated by  Ninja Lead 7 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum