![]() |
![]() |
ВходЗдравствуйте, Гость ( Вход | Регистрация )
|
![]() ![]() |
![]() |
![]()
Сообщение
#1
|
|
Я только смотрю... ![]() Группа: Пользователи Сообщений: 1 Регистрация: 31.10.2012 Пользователь №: 13,219 Спасибо сказали: 1 Вставить ник ![]() |
В общем как сделать в АС 5.0 что бы при просмотре файла или статьи не выводилось содержимое поля Текст,а был только Расширенный текст,заранее спасибо.
Методом тыка обнаруженно что нужно(Для статей): Найти в modules/pages/index.php КОД function view() {.... и найти там КОД $result = $db->sql_query("SELECT s.catid, s.name, s.title, s.time, s.hometext, s.bodytext, s.comments, s.counter, s.acomm, s.score, s.ratings, c.title, c.description, c.img, u.user_name FROM ". ... ... list($catid, $uname, $title, $time, $hometext, $bodytext, $comments, $counter, $acomm, $score, $ratings, $ctitle, $cdescription, $cimg, $user_name) = $db->sql_fetchrow($result); Заменить на: КОД $result = $db->sql_query("SELECT s.catid, s.name, s.title, s.time, s.bodytext, s.comments, s.counter, s.acomm, s.score, s.ratings, c.title, c.description, c.img, u.user_name FROM ". ... ... list($catid, $uname, $title, $time, $bodytext, $comments, $counter, $acomm, $score, $ratings, $ctitle, $cdescription, $cimg, $user_name) = $db->sql_fetchrow($result); Аналогично для Files только там не hometext, а description Сообщение отредактировал Wgis: Nov 2 2012, 18:19 |
Wgis, Вас 1 раз(а) поблагодарили за это сообщение: Sunvas | |
|
|
![]() ![]() |
![]() |
Текстовая версия | Сейчас: 25 April 2025 - 19:49 |