Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   News Tabs Module (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=45)
-   -   How to keep intro text formating?? (http://www.youjoomla.com/joomla_support/showthread.php?t=4738)

dirtybird3g 11-10-2009 11:38 PM

How to keep intro text formating??
 
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 ""


All times are GMT -4. The time now is 06:03 PM.

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