Показать сообщение отдельно
fod вне форума      Старый изменение шаблона - "новости" #1  
fod
Новенький
Регистрация: 10.05.2006
Сообщения: 3


Пожаловаться на это сообщениеОтветить с цитированием

Посмотреть профиль Отправить персональное сообщение для fod Найти все сообщения от fod Добавить fod в список друзей  
10.05.2006, 13:15

Помогите новичку, plz :)
Что именно нужно отредактировать в theme.php в функции themeheader, чтобы новости показывались в один столбик, а не в два?
Вот как у меня:

function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
if ($banners) {
include("banners.php");
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = "&nbsp;&nbsp;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/WebHosting_01/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/WebHosting_01/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}