Hi,

We are building a new website as a news platform, where we aggregate content from three websites. This means that we are using APIs to list all the news from three Joomla websites on one platform. The only issue we are facing is that the URL of the intro image is not working. Although the URL image is present in the article, the URL belongs to one of the three websites. How can I make this work without transferring the image to my own website?

    Hi jbmusic,
    I don't have permission to access your backend, give me the URL to access, I will check and help you resolve it.

      This message is visible to Moderators only
      hidden content

        Hi jbmusic,
        I have updated the ‎/templates/ja_blockk/html/mod_jacontentlisting/elements/media.php file , line 62:

        From this code:

        	<?php if(!preg_match("/http/i",$item_image->image_intro,$matches)):
        		$img_intro = Uri::root() . $item_image->image_intro;
        		if ($adapter === 'easyblog' && isset($item_image->img_src)
        			&& $item_image->img_src === 'amazon'){
        			$img_intro = $other_img_src . $item_image->image_intro ;
        		}
        	endif; ?>

        With this code:

        <?php 
        $img_intro = '';
        
        // Check if $item_image->image_intro is not empty
        if (!empty($item_image->image_intro)) {
            // Assign $item_image->image_intro to $img_intro
            $img_intro = $item_image->image_intro;
        } ?>

        This works! thanks for your help... post can be closed..

        Write a Reply...
        You need to Login to view replies.