23.03.2007, 09:55
Поставил себе тему одну на локали отлично работает, поставил эту же тему в инете на сайте, не отображаються картинки (логотип, меню бар и т.д)
помогите пожалуйста в чем может быть ошибка
/************************************************** **********/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************** **********/
function themeheader() {
global $banners, $name;
echo"<body background=\"themes/Coolbreeze/images/bg.gif\" style=\"background-attachment: fixed\" bgcolor=\"#EEF2F7\" text=\"#34404E\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0\"><br>\n";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#8091A5\" width=\"80\" align=\"center\">\n"
//Beginning bar over the logo
."<tr><td width=\"100%\" bgcolor=\"#A4B2C3\" height=\"11\" valign=\"bottom\">"
//Finished bar over logo
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\" height=\"60\" bgcolor=\"#A4B2C3\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><img border=\"0\" src=\"themes/Coolbreeze/images/logo.jpg\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"
/////////Main Logo
."</td></tr><tr><td colspan=\"2\" width=\"100%\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
<tr><td width=\"150\" img src=\"themes/Coolbreeze/images/pixel.gif\" width=\"150\" height=\"20\"></td><td colspan=\"2\" width=\"100%\" align=\"center\" valign=\"middle\" height=\"5\" bgcolor=\"#000000\" background=\"/themes/Coolbreeze/images/menubar2.gif\">
<font color=\"1F3959\"><b>| <a href=\"index.php\"><font color=\"CDCBA2\"><b>Главная</a></font> | <A href=\"modules.php?name=Downloads\"><font color=\"CDCBA2\"><b>Downloads</a></font> | <a href=\"modules.php?name=Content&pa=showpage&pid=11\"><font color=\"CDCBA2\"><b>Контакты</a></font> | <a
href=\"modules.php?name=Content&pa=showpage&pid=1\"><font color=\"CDCBA2\"><b>Каталог</a></font> | <a
href=\"modules.php?name=Content&pa=showpage&pid=15\"><font color=\"CDCBA2\"><b>Прайс</a></font> | <a
href=\"modules.php?name=Content&pa=showpage&pid=19\"><font color=\"CDCBA2\"><b>Реквизиты</a></font> | <a
</td></tr></table></td></tr>"
/////////
."<tr><td bgcolor=\"#EEF2F7\"><img src=\"themes/Coolbreeze/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr>\n";//Color of background under logo
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"#EEF2F7\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/Coolbreeze/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"150\" bgcolor=\"#EEF2F7\" valign=\"top\">\n";//Background behind blocks
// beginning modification to hide blocks at left in the modules
//blocks(left); - Original Items
if ($name=='Forums') {}
else if ($name=='Members_List') {}
else if ($name=='Private_Messages') {}
else {
blocks(left);
}
// Finished modification
//Multiple example
/*
elseif ($name=='Private_Messages') {}
elseif ($name=='Feedback') {}
else {
blocks(left);
}
*/
echo "</td><td><img src=\"themes/Coolbreeze/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
Блин уже не надо, проблема была с регистрами в пути img src (на локали винда, на хосте линукс)
|