
Rayden писал(а):Ставь джумлу полуторку

// выводим темы или сообщения (в зависимости от параметров)
echo "<ul class=\"latestnews$moduleclass_sfx\">";
foreach ($posts as $post) {
$ovrlb = "<ul>";
if ($sort_by == 'by_posts') { $id = "p=".$post->post_id."#".$post->post_id ; }
else { $id = "t=".$post->topic_id ; }
//Установка локали для функций сравнения и преобразования строк. Иногда требуется на unix-хостингах
setlocale( LC_CTYPE, "ru_RU.CP1251" );
setlocale( LC_COLLATE, "ru_RU.CP1251" );
$topic_name = trim(stripslashes(ucfirst(strtolower($post->topic_title))));
if (strlen($topic_name) > $length)
{
$topic_name = substr("$topic_name", 0, -(strlen($topic_name)-$length));
$topic_name.='...';
}
$topic_name = trim(stripslashes(ucfirst(strtolower($post->topic_title))));$topic_name = mb_convert_encoding( trim(stripslashes(ucfirst(strtolower($post->topic_title)))), 'CP1251', 'UTF-8');
Alek$ писал(а):Говорят, сырая еще...




// Если не отображаются темы||сообщения, раскомментируйте следующую строчку!!!
$topic_name = $post->topic_title;
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0