|
08.02.2007, 19:33
Итак, про комментарии:
открываем файл modules/News/article.php
в нем в самом конце находим код:
PHP код:
if (((empty($mode) OR ($mode != "nocomments")) OR ($acomm == 0)) OR ($articlecomm == 1)) {
include("modules/News/comments.php");
}
и вырезаем его целиком.
Далее находим следующий код:
PHP код:
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
themearticle($aaid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
echo "</td><td> </td><td valign=\"top\">\n";
это где-то в середине скрипта.
и сразу после строчки
PHP код:
themearticle($aaid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
вставляем наш вырезанный ранее кусок текста.
должно получиться нечно такое:
PHP код:
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
themearticle($aaid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
if (((empty($mode) OR ($mode != "nocomments")) OR ($acomm == 0)) OR ($articlecomm == 1)) {
include("modules/News/comments.php");
}
echo "</td><td> </td><td valign=\"top\">\n";
Все! Сохраняем наш файл и наслаждаемся результатом! :)
Удачи!
|
|