Вход

View Full Version : как убрать блоки слева и справа на форуме?


Musik
08.02.2008, 18:09
Скока я мучался никак не могу убрать. вроде читал как, но ничего не получалось. Все время потом возникала белая страница. Помогите плиз правильно прописать. ВЫкладываю часть темы. Что и куда надо добавить?

/************************************************************/


function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<!----- Copyright (c) Somara Sem (http://www.pixelmayhem.com) PLEASE DO NOT REMOVE THIS NOTICE ----->\n\n\n\n\n\n\n"
."<body bgcolor=\"#6699CC\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
if ($banners) {
include("banners.php");
}
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" width=\"70%\">\n"
."<img height=\"110\" alt=\"\" hspace=\"0\" src=\"themes/Red-White-Blue/images/corner-top-left.gif\" width=\"90\" align=\"left\">\n"
."<a href=\"index.php\"><img src=\"themes/Red-White-Blue/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
."<td bgcolor=\"#ffffff\"><IMG src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"0\" height=\"0\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."<td bgcolor=\"#ffffff\" align=\"right\">\n"
."<a href=\"index.php\"><img src=\"themes/Red-White-Blue/images/evro.gif\" align=\"right\" alt=\""._WELCOMETO." $sitename\" border=\"1\"></a></td>\n"


."<td bgcolor=\"#ffffff\" valign=\"top\"><img height=\"90\" alt=\"\" hspace=\"0\" src=\"themes/Red-White-Blue/images/corner-top-right.gif\" width=\"90\" align=\"right\"></td>\n"
."</tr></table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n"
."<tr>\n"
."<td bgcolor=\"#000000\" colspan=\"4\"><IMG src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr valign=\"middle\" bgcolor=\"#ED1C24\">\n"
."<td width=\"10%\" nowrap><font class=\"content\" color=\"#363636\"><b>\n";
if ($username == "Anonymous") {
echo "&nbsp;&nbsp;<b><font color=\"#363636\"><a href=\"modules.php?name=Your_Account\" class=\"topnav\">Регистрация | Вход</a></font></b>\n";
} else {
echo "&nbsp;&nbsp;Welcome $username! &nbsp;&nbsp;<a class=\"topnav\" href=\"modules.php?name=Your_Account&op=logout\">Выход</a>";
}
echo "</b></font></td>\n"
."<td align=\"center\" height=\"40\" width=\"70%\"><font class=\"topnav\"><B>\n"
."<A href=\"index.php\" class=\"topnav\">Главная</a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"modules.php?name=Topics\" class=\"topnav\">Темы</a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"modules.php?name=Downloads\" class=\"topnav\">Файлы</a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"modules.php?name=Your_Account\" class=\"topnav\">Ваша страничка</a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"modules.php?name=Submit_News\" class=\"topnav\">Добавить новость</a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"modules.php?name=Top\" class=\"topnav\">Top 10</a>\n"
."</B></font>\n"
."</td>\n"
."<a href=\"http://10.20.231.27\"><img border=\"0\" src=\"themes/Red-White-Blue/images/bann.gif\" alt=\"EA по-русски\" width=\"1260\" height=\"30\"></a></td>\n"
."<td align=\"right\" width=\"15%\"><font class=\"content\"><b>\n"
."<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script></b></font></td>\n"
."<td>&nbsp;</td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#003366\" colspan=\"4\"><IMG src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"1\" height=\"4\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."</table>\n"


// Begin main content table
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
."<td><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"1\" height=\"20\" border=\"0\" alt=\"\"></td></tr></table>\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
."<td><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"150\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"5\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}

/************************************************************/


function themefooter() {
global $index;
if ($index == 0) {
echo "</td><td><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"5\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
blocks(right);
}
echo "</td><td><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=14 height=1 border=0 alt=\"\">\n"
."</td></tr></table>\n"

."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ED1C24\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#000000\"><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
."</tr>\n"
."<tr valign=\"top\" bgcolor=\"#ED1C24\">\n"
."<td align=\"center\" valign=\"middle\" bgcolor=\"#ED1C24\" width=\"100%\" height=\"50\"><b>\n"
."<a href=\"http://10.20.231.27\"><img border=\"0\" src=\"themes/Red-White-Blue/images/stroka.gif\" alt=\"EA по-русски\" width=\"1260\" height=\"60\"></a></td>\n"

."<A href=\"/\" class=\"topnav\"></a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"topics.php\" class=\"topnav\"></a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"download.php\" class=\"topnav\"></a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"user.php\" class=\"topnav\"></a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"submit.php\" class=\"topnav\"></a>\n"
."&nbsp;&middot;&nbsp;\n"
."<A href=\"top.php\" class=\"topnav\"></a>\n"

."</b></td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#000000\"><img src=\"themes/Red-White-Blue/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
."</tr>\n"
."</table>\n"

."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n"
."<tr align=\"center\">\n"
."<td width=\"100%\" colspan=\"3\">\n";
footmsg();
echo "</td>\n"
."</tr><tr>\n"
."<td><IMG height=\"30\" alt=\"\" hspace=\"0\" src=\"themes/Red-White-Blue/images/corner-bottom-left.gif\" width=\"30\" align=\"left\"></td>\n"
."<td width=\"100%\">&nbsp;</td>\n"
."<td><IMG height=\"30\" alt=\"\" hspace=\"0\" src=\"themes/Red-White-Blue/images/corner-bottom-right.gif\" width=\"30\" align=\"right\"></td>\n"
."</tr></table>\n";
}

/************************************************************/

Musik
08.02.2008, 20:37
Извиняюсь проблему решил ))). Оказывается есть еще мозги. Сделал, получилось :lol: . Тока возник другой вопрос. Вот у меня есть Модуль News_line. Как в этом модуле убрать правые блоки. то есть когда открывается страница, чтобы были бы тока левые блоки, а правых бы не было.

Soniks
11.02.2008, 11:00
Musik $index =1; и учитесь пользоваться поиском по форуму