1. Stepien
  2. Commercial Templates
  3. Thursday, 22 August 2019
  4.  Subscribe via email
I used Ariana's news module to display news without any links to articles.
How to make to display html formated intro text?
I need to display brake lines.
References
  1. https://projectjob.pl
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try deleting the following on line 137 from ../templates/j51_news/html/mod_j51news/default.php ...

$introb = strip_tags($item->introtext);


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran

Thank You for pointing the place for modifications.
I changed that line (137):
-------
$introb = strip_tags($item->introtext);
-------
to:
-------
$introb = strip_tags($item->introtext, '<br>');
-------
The second parameter, after comma, specify tags which shouldn't be stripped.
I allowed <br> only - it's perfect for me, because I don't want to give to much control for the operator.
It is work now.
Thank You
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Excellent... thank you for the update.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!