Вывод текста последних сообщений с лимитом символов

Автор mijsvit, 15 марта 2008, 04:32:47

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

mijsvit

Помогите пожалуйста добавить вывод текста сообщения в этот код:

<?php/*** SMLastPost - A Simple Machines Last Post Mambo Module* @version 1.2* @package SMLastPost* @copyright (C) 2004 by Ben - All rights reserved!**/  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );  global $txt;  $limit  = $params->def( 'limit', 5 );  $forumlink  = $params->def( 'forumlink', '1' );  $datetime  = $params->def( 'datetime', '1' );  $poster  = $params->def( 'poster', '1' );  $exclude  = $params->def( 'exclude', '8,9' );  $moduleclass_sfx 	= $params->get( 'moduleclass_sfx', '' );$array = ssi_recentPosts($limit, array($exclude), 'array');	foreach ($array as $post) {    echo '<table>';                if ($forumlink){	echo	'      <tr><td style="width: 100%; text-align: left; vertical-align: top;" nowrap="nowrap" colspan="2">					В розділі : ', $post['board']['link'], '				</td></tr>        ';				}	echo '<tr><td style="width: 100%; text-align: left; vertical-align: top;">					<a href="', $post['href'], '">', $post['subject'], '</a>';			if ($poster){	echo '&nbsp; ', $txt[525], ' ', $post['poster']['link'], '';	echo '', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.from' . $post['newtime'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '';	echo '</td>';				}			if ($datetime){	echo	'<td nowrap="nowrap" style="text-align: right;">					', $post['time'], '      ',$post['msg'],'				</td>';				}	echo '</tr>		</table>';}?>
>>Украинская локализация [Karma Description Mod] <<