Nie wiem czy w dobrym miejscu napisałem, jeżeli w złym dziale proszę o przeniesienie.
Otóż mam problem z moim theme, obejrzałem HTMAT 1 i zabrałem się za kodowanie: tutaj macie mój 1 lay zakodowany: digFansub.pl
Jak już wejdziecie na stronę zauważycie WIELKI błąd, prosiłbym o pomóc i znalezienia tego błędu.
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#FFFFFF";
$body_bg = "#3C3C3C";
$theme_width = "100%";
$theme_width_l = "339";
$theme_width_r = "339";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"FONT-SIZE: 11px; FONT-FAMILY: Arial; COLOR: #FFFFFF\">
<tr>
<td background=\"".THEME."images/index_02.png\" width=\"442\" height=\"24\" style=\"COLOR: #000000; PADDING-LEFT: 5px\">Witaj na <font color=\"#ca0101\">dig</font>Fansub.pl Tam gdzie fikcja staje się rzeczywisto¶ci±...</td>
<td background=\"".THEME."images/index_03.png\" width=\"444\" height=\"24\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">
<tr>
<td background=\"".THEME."images/index_05.png\" width=\"479\" height=\"78\"></td>
<td background=\"".THEME."images/index_06.png\" width=\"400\" height=\"78\" style=\"PADDING-RIGHT: 7px; PADDING-LEFT: 5px\">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #706f6f; FONT-FAMILY: Arial\">
<tr>
<td background=\"".THEME."images/index_07.png\" width=\"111\" height=\"36\"><center>Strona Główna</center></td>
<td background=\"".THEME."images/index_08.png\" width=\"139\" height=\"36\"><center>Anime Download</center></td>
<td background=\"".THEME."images/index_09.png\" width=\"111\" height=\"36\"><center>Anime Online</center></td>
<td background=\"".THEME."images/index_10.png\" width=\"55\" height=\"36\"><center>AMV</center></td>
<td background=\"".THEME."images/index_11.png\" width=\"70\" height=\"36\"><center>Galeria</center></td>
<td background=\"".THEME."images/index_12.png\" width=\"66\" height=\"36\"><center>Forum</center></td>
<td background=\"".THEME."images/index_13.png\" width=\"75\" height=\"36\"><center>Reklama</center></td>
<td background=\"".THEME."images/index_14.png\" width=\"72\" height=\"36\"><center>Kontakt</center></td>
<td background=\"".THEME."images/index_15.png\" width=\"192\" height=\"36\"><center>Wyszukiwarka (skrypt)</center></td>
</tr>
</table>
</td>
</tr>
<table order=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr><td background=\"".THEME."images/index_16.png\" width=\"871\" height=\"28\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #8c8c8c; FONT-FAMILY: Arial\">Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link </td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' >\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr><td background=\"".THEME."images/index_31.png\" width=\"396\" height=\"115\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">Statystyki strony</td>
<td background=\"".THEME."images/index_32.png\" width=\"455\" height=\"115\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">Reklama</td></tr>
</table>
</td>
</tr>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">
<tr><td background=\"".THEME."images/index_33.png\" width=\"891\" height=\"39\"><font style=\"margin-left: 5px\">Copyright (c) 2009 by <font color=\"#ca0101\">dig</font>Fansub.pl Wszelkie prawa zastrzeżone. <br />
<font style=\"margin-left: 5px\">Wszelkie materiały i wypowiedzi zamieszczone w serwisie należ± do ich autorów.</font></td></tr>
</table>
</table>\n";
}
function render_news($subject, $news, $info) {
global $settings,$locale;
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/index_20.png\" width=\"519\" height=\"40\" style=\"PADDING-LEFT: 30px; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">$subject</td>
</tr>
<tr>
<td background=\"".THEME."images/index_23.png\" width=\"499\" height=\"8\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">$news</td>
</tr>
<tr>
<td><img class=\"c8\" alt=\"\" src=\"".THEME."images/index_28.png\"></td>
</tr>
<tr>
<td background=\"".THEME."images/index_29.png\" width=\"529\" height=\"21\" cstyle=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">
<center>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> |\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> |
".$info['news_reads'].$locale['044']."| <a href='print.php?type=N&item_id=".$info['news_id']."'>Drukuj<alt='".$locale['045']."' border='0'></a></center>
</td>
</tr>
</table>
\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table width='100%' align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\">
<tr>
<td background=\"".THEME."images/index_20.png\" width=\"519\" height=\"40\" style=\"PADDING-LEFT: 30px; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">$subject</td>
</tr>
<tr>
<td background=\"".THEME."images/index_23.png\" width=\"499\" height=\"8\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td><img class=\"c8\" alt=\"\" src=\"".THEME."images/index_28.png\"></td>
</tr>
<tr>
<td background=\"".THEME."images/index_29.png\" width=\"529\" height=\"21\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ~\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ~
".$info['news_reads'].$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/index_20.png\" width=\"519\" height=\"40\" style=\"PADDING-LEFT: 30px; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\"><b>$title</b></td>
</tr>
<tr>
<td background=\"".THEME."images/index_23.png\" width=\"499\" height=\"8\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Arial\">\n";
}
function closetable() {
echo "
</tr>
</table>
</td>\n";
}
function openside($title) {
global $p_data;
echo "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/index_19.png\" width=\"299\" height=\"35\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 23px; FONT-WEIGHT: bold; FONT-SIZE: 11px; PADDING-BOTTOM: 7px; COLOR: #ffffff; FONT-FAMILY: Arial\"><b>$title</b></td>
</tr>
<tr>
<td background=\"".THEME."images/kreska.png\" width=\"314\" height=\"9\" style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 11px; COLOR: #ffffff; PADDING-TOP: 5px; FONT-FAMILY: Arial\">\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</tr>
<tr>
<td><img src=\"".THEME."images/index_26.png\" alt=\"\" style=\"width:339px;height:12px;border:0px;\" /></td>
</tr>
</table>\n";
}
tablebreak();
}
function opensidex($title,$open="on") {
global $p_data;
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/panel_01.gif' width='10' height='10' alt=''></td>
<td class='panel_top'><img src='".THEME."images/panel_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/panel_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='panel_left'><img src='".THEME."images/panel_04.gif' width='10' height='1' alt=''></td>
<td class='side-body'><b>$title</b> <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_07.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom' align='center'><img src='".THEME."images/panel_10.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/panel_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_11.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom' align='center'><img src='".THEME."images/panel_13.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/panel_12.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table align=\"center\" width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Będę wdzięczny za pomoc.
PW od moderatora:
- Brak Stopki! - Pieka 08.03 - 19:17
- Zmiana nazwy tematu - Pieka 08.03 - 19:18
Edytowane przez Chemikpil dnia 08.03.2009 19:51:50
|