Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

How to keep intro text formating??

11-10-2009, 11:38 PM
# 1 (permalink)
dirtybird3g
Right now all the intro text shows up within the module as bold and strong. I would like to keep the formatting I set up within the articles. Mainly, it seems to strip out any line breaks and I would like to keep them.

Solved: I figured it out myself. In order to keep the formatting you need to add the format tags you want to use to the following line of code...

mod_tab_news.php Line 335

Code:

$content_intro=substr(strip_tags($rows2[0]->introtext,"<b><strong><p></p>"),0,$char_count).".....";
For instance, this will strip all format tags except "bold", "strong", and "paragraph breaks" Any tags you want allowed just add in between the ""
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password