![]() |
изменение шаблона - "новости"
Помогите новичку, 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 = " <a href=\"modules.php?name=Your_Account\">Create an account"; } else { $theuser = " 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; } |
Что значит в один столбик? themeheader по мойму вообще за шляпу темы отвечает.
|
У всех прошу прощения. Заработался.
Шесть непрерывных часов ковыряния нюки не прошли даром. Просто тупо перепутал функции themeindex и themeheader. Задача была как в этом топике: http://forum.mynuke.ru/showpost.php?p=892&postcount=1 Тему можно закрывать. |
Часовой пояс GMT +4, время: 17:29. |
Copyright © 2005 by Soniks