Miércoles, 01 Octubre 2014 20:24
beggarly

no carriage return

Filters news by the current section and category

no carriage return

Postby TimVG » Wed Feb 25, 2009 11:30 pm

hi

is there a bug?
no carriage return appears in the news (both <br> and </p>),
but it does in the article.

you can have à look here : http://donbosco.tennis.free.fr/joomla

thanks for help

regards,
tim
TimVG
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Feb 06, 2009 10:18 am

Re: no carriage return

Postby chus » Thu Mar 05, 2009 8:28 pm

Hi,

it's not a bug. In helper.php you will see (line 260)
Code: Select all
$fn_text = trim( strip_tags(  $fn_text ) );

It deletes all html tags in order to avoid any mess up when shortening the text, but you can delete that line at your own risk.

Best Regards!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: no carriage return

Postby TimVG » Thu Mar 05, 2009 10:26 pm

:o
"own risk"
... i understand why ! ;)

it was worst, too bad

doesn't mind, there won't have any returns...

tim
TimVG
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Feb 06, 2009 10:18 am

Re: no carriage return

Postby batmonkey » Tue Nov 17, 2009 7:49 pm

This worked for me... I'm sure there's an easier way to do it, but I'm not exactly a coder...
Code: Select all
$fn_text= str_replace("</p>","0x13",$fn_text);
$fn_text= str_replace("<br>","0x13",$fn_text);
$fn_text= str_replace("<br />","0x13",$fn_text);
$fn_text= str_replace("</div>","0x13",$fn_text);
$fn_text= str_replace("</li>","0x13",$fn_text);   
$fn_text = trim( strip_tags(  $fn_text ) );
$fn_text= str_replace("0x13","<br>",$fn_text);


Example:

http://wildpoets.com

..edited to clean it up a bit - seems like this version catches more of the returns...
batmonkey
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Tue Nov 17, 2009 7:46 pm


Return to Filtered News



Who is online

Users browsing this forum: No registered users and 1 guest

cron