Чтобы изменить цвет текста описания, определите класс css для него
<!-- BEGIN switch_topic_desc -->
<span class="какой-то класс с нужными атрибутами">{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span>
<!-- END switch_topic_desc -->
<!-- BEGIN switch_topic_desc -->
<span class="какой-то класс с нужными атрибутами">{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span>
<!-- END switch_topic_desc -->
Код: Выделить всё
// Check subject
if (!empty($subject))
{
$subject = htmlspecialchars(trim($subject));
}
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
}
Код: Выделить всё
// Check subject
if (!empty($subject))
{
$subject = htmlspecialchars(trim($subject));
}
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
}
// Check topic_desc
if (!empty($topic_desc))
{
$topic_desc = htmlspecialchars(trim($topic_desc));
}
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['L_TOPIC_DESCRIPTION'] : $lang['L_TOPIC_DESCRIPTION'];
}
Код: Выделить всё
#
#-----[ FIND ]------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$poll_length
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, &$topic_desc
и єто тоже сделал....Splurov писал(а):Открываем viewtopic.php
находим строчку (привожу не полностью - только начало):В строке послеКод: Выделить всё
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id
добавляемКод: Выделить всё
t.topic_last_post_id
Затем ищемКод: Выделить всё
, t.topic_desc
После добавляемКод: Выделить всё
$topic_id = intval($forum_topic_data['topic_id']);
Потом ищем строкуКод: Выделить всё
if ( !empty($forum_topic_data['topic_desc'])) { $topic_desc = smilies_pass($forum_topic_data['topic_desc']); } else { $topic_desc = ''; }
после неё добавляемКод: Выделить всё
'REPLY_IMG' => $reply_img,
Если я нигде не ошибся, то в шаблоне viewtopic_body.tpl появится новые переменные {L_DESCRIPTION} и {TOPIC_DESCRIPTION}, которые соответственно значят "Описание темы" ну и само описание :-)Код: Выделить всё
'TOPIC_DESCRIPTION' => $topic_desc, 'L_DESCRIPTION' => $lang['Description'],
если я их самостоятельно туда не писал.... :shock:в шаблоне viewtopic_body.tpl появится новые переменные {L_DESCRIPTION} и {TOPIC_DESCRIPTION},