Quote

We're also available for Custom Joomla Development

Hire us now
boillat on Friday, January 12 2018, 04:04 PM

Related Article extended

Hi

I would like the introtext to be the orinal introtext, not the one with no paragraph and style
I thought using nolimit will do the trick, but when putting - as described - putting 0 in no limit doesn't work : it display nothing in introtext

Could you help please?

Jean_philippe Boillat
       
  •  
    Replied by admin on Friday, January 12 2018, 04:34 PM · Hide· #1
    Hi, please open this file with your favorite php editor :
    .../modules/mod_relateditems_xtd/helper.php

    at lines 395 - 404 you will see this code :
    public static function cleanIntrotext($introtext)
    	{
    		$introtext = str_replace('<p>', ' ', $introtext);
    		$introtext = str_replace('</p>', ' ', $introtext);
    		$introtext = strip_tags($introtext, '<a><em><strong>');
    
    		$introtext = trim($introtext);
    
    		return $introtext;
    	}

    try to change those lines to :
    public static function cleanIntrotext($introtext)
    	{
    		//$introtext = str_replace('<p>', ' ', $introtext);
    		//$introtext = str_replace('</p>', ' ', $introtext);
    		//$introtext = strip_tags($introtext, '<a><em><strong>');
    
    		//$introtext = trim($introtext);
    
    		return $introtext;
    	}
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments