text_limit_flash
Найти
После него вставить:
<?php
$tpl->set( '{full-story}', stripslashes( "<div id="news-id-" . $row['id'] . "" style="display:inline;">" . $row['full_story'] . "</div>" ) );
?>
После него вставить:
if ( preg_match( "#{text limit=['"](.+?)['"]}#i", $tpl->copy_template, $matches2 ) ) {
$count= intval($matches2[1]);
#Вырезаем ненужные теги
$row['full_story'] = str_replace( "</p><p>", " ", $row['full_story'] );
#Вырезаем картинки
$row['full_story'] = preg_replace("~<img(.*)>~siU","",$row['full_story']);
#$row['full_story'] = strip_tags( $row['full_story'], "<br>" );
$row['full_story'] = trim(str_replace( "<br>", " ", str_replace( "<br />", " ", str_replace( "n", " ", str_replace( "r", "", $row['full_story'] ) ) ) ));
if( $count AND zv_strlen( $row['full_story'], $config['charset'] ) > $count ) {
$row['full_story'] = zv_substr( $row['full_story'], 0, $count, $config['charset'] );
if( ($temp_dmax = zv_strrpos( $row['full_story'], ' ', $config['charset'] )) ) $row['full_story'] = zv_substr( $row['full_story'], 0, $temp_dmax, $config['charset'] );
}
$tpl->set( $matches2[0], $row['full_story'] );
} else $tpl->set( '{text}', $row['full_story'] );