Przedszkolak
Postów: 11
Data rejestracji: 20.02.2007 14:19
|
Mam błąd z newsami, dodatkowymi stronami, artykułami itp. ze w Firefoxie wyświetlają się poprawnie, a w Operze i IE nie. Przeglądałem kilka razy plik theme.php, ale błędu nie znalazłem.
Firefox:
http://img232.ima...564ak6.jpg
Opera, IE
http://img354.ima...834ia2.jpg
Kod theme.php
$body_text = "#cccccc";
$body_bg = "#373737";
$theme_width = "825";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<center><table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='center' width='60%' background='".THEME."images/logo_bg.gif' height='128' class='logo-styl'><img src='".THEME."images/logo.gif' class='logo-o'></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='0' bgcolor='#373737' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='825' height='150'><tr>";
echo" <tr><td background='".THEME."#373737' width='825' height='15'></td></tr>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='825' height='135'>";
echo "<tr><td background='".THEME."images/stopka1.jpg' valign='middle' width='320'></td>";
echo "<td background='".THEME."images/stopka2.jpg' valign='middle' align='center' width='299' class='kupka'>";
if ($license == false) {
echo "Powered by <a href='http://www.extreme-fusion.pl' target='blank' class='kupka'><b>Extreme-Fusion</b></a><br> © 2005-2007<br> +<br> <a href='http://www.php-fusion.pl' target='_blank' class='kupka'><b>php-fusion</b></a> © 2003-2007<br>
<br> BlackF Theme by: <a href='http://www.fusion-mc.pl' target='blank' class='kupka'><b>Fusion-MC</b></a>";
}
echo "</td>";
echo "<td background='".THEME."images/stopka3.jpg' align='center' width='206'><span class='stats'><b>".$settings['counter']."</b></span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table style='border: 1px solid #202020; border-bottom: none; border-top: none;' cellspacing='0' width='632' cellpadding='0' align='right'><tr>";
echo "<td background='".THEME."images/news.jpg' height='25' style='border-bottom: 1px solid #202020'><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='head-title'>$subject</font></td>";
echo "</tr></table></center>";
echo "<table width='632' cellpadding='0' cellspacing='0' class='news' align='right'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table><center>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table style='border: 1px solid #202020; border-top: none;' cellspacing='0' width='632' cellpadding='0' align='right'><tr>";
echo "<td background='".THEME."images/news.jpg' height='25'><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='632' cellpadding='0' cellspacing='0' class='border' align='right'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body' style='border-image: 1px solid black;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table width='632' cellpadding='0' cellspacing='0' style='border: 1px solid #202020; border-top: none;' align='right'>";
echo "<tr><td background='".THEME."images/news.jpg' height='25' align='left'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='632' cellpadding='0' cellspacing='0' class='border' align='right'><tr>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table style='border: 1px solid #202020; border-top: none;' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td height='25' width='100%' background='".THEME."images/button2.gif'>";
echo "<img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$title</font><img src='".THEME."images/arrowb.gif' alt='' hspace='3'>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."#313131'>";
echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td></tr></table></center>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr></tr></table>\n";
}
?>[/quote]
Kod styles.css
[quote]body {
font-family:Verdana,Tahoma,Sans-Serif;
font-size:15px;
padding:0px 0px 0px 0px;
margin:10px;
scrollbar-3dlight-color:#505050;
scrollbar-arrow-color:#ff6600;
scrollbar-darkshadow-color:#323232;
scrollbar-face-color:#2d2d2d;
scrollbar-highlight-color:#2d2d2d;
scrollbar-shadow-color:#2d2d2d;
scrollbar-track-color:#3c3c3c;
}
.kupka {color: #BCC0C9; font-size: 13px; font-weight: bold;}
.shout-border {border: 1px solid #202020;}
img.kopa {border: 1px solid black;}
.stopa-o {border: 1px solid #202020; padding:3px 2px 0px 2px;}
.logo-o {border: 1px solid #202020;}
.logo-styl {border: 1 px solid #202020;}
.bodyline {background: #373737;color:#D7DCE9;border: 0px solid #202020;}
a {color:#a0a0a0; text-decoration:none;font-size:11px;}
a:hover {color:#ff6600; text-decoration:none;}
a.side {color:#a0a0a0; text-decoration:none;font-size:11px;}
a:hover.side {color:#ff6600; text-decoration:none;}
a.white {color:#BCC0C9; text-decoration:none;font-size:11px;font-weight:bold;}
a:hover.white {color:#9BAE75; text-decoration:none;}
.tekst {color:#a0a0a0; text-decoration:none;font-size:11px;}
form {margin:0px 0px 0px 0px;}
hr {border:1px #2d2d2d solid; border-bottom:1px #646464 solid;}
hr.side-hr {border:1px #2d2d2d solid; border-bottom:1px #646464 solid;}
td {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px;}
pre {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px;}
.alt {color:#ADA899;}
.white-header {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#EFEFEF;background-color:#999386;
padding:4px; border-top:#191928 1px solid; border-bottom:#191928 1px solid;}
.cellpic {font-size:11px;font-weight:bold; color:#dbdbdb; padding:0px 8px 0px 8px;
background-image:url(images/cellpic_nav.gif);background-repeat:repeat-x;}
.footer {font-size:11px;font-weight:normal; color:#DBDBDB; padding:3px 0px 0px 0px;
background-image:url(images/bot_bar_back.gif);background-repeat:repeat-x;}
.stats {background: none; COLOR: #ff6600; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica; TEXT-DECORATION: none}
.full-header {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#EFEFEF;background-color:#999386;}
.button {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#ff6600;background-image:url(images/button.gif);border:1px #202020 solid;margin-top:5px;}
.textbox {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#b4b4b4;background-color:#505050;border:1px solid;border-color:#282828 #5f5f5f #5f5f5f #282828;}
.main-body {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#a0a0a0; background-color:#3D3D3D; padding:3px 4px 3px 4px;}
.side-body {background-color:#3D3D3D;font-size:11px; color:#a0a0a0; padding:4px 4px 6px 4px;}
.side-body2 {background-image:url(images/log.gif);font-size:11px; color:#a0a0a0; padding:4px 4px 6px 4px;}
.main-bg {background-color:#373737;}
.border {border-width:0px 1px 1px 1px;border-color:#202020;border-style:solid;}
.news {border-width:0px 1px 1px 1px;border-color:#202020;border-style:solid;}
.news-footer {font-size:11px;font-weight:normal; color:#a0a0a0;background-color:#363636; padding:4px 4px 4px 4px; border-top: 1px solid #202020;}
.capmain {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px;font-weight:bold;
border-width:1px 1px 1px 1px;border-color:#191928;border-style:solid;
color:#B78E00; height:24px; padding:2px 2px 2px 2px;}
.copyrights {background: none; COLOR: #FFFDF0; FONT-SIZE: 11px; FONT-WEIGHT: normal; FONT-FAMILY: Arial, Helvetica; TEXT-DECORATION: none}
.title {background: none; COLOR: #a0a0a0; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica; TEXT-DECORATION: none}
.block-title {BACKGROUND: none; COLOR: #CCCCCC; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica}
.head-title {background: none; COLOR: #CCCCCC; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica; TEXT-DECORATION: nonFONT-SIZE: 11pxkground: none; COLOR: #CCCCCC; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica; TEXT-DECORATION: none;}
img {border: 0px;}
.capleft {width:2px;height:20px;}
.capright {width:2px;height:20px;}
.scapmain {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px;font-weight:bold; color:#a0a0a0; height:19px; padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;border-color:#202020 #202020 #202020 #202020;border-style:solid;}
.tbl-border {background-color:#202020;}
.tbl {font-size:11px; padding:3px 4px 3px 4px;}
.tbl1 {font-size:11px; color:#a0a0a0; background-color:#3D3D3D; padding:4px;}
.tbl2 {font-size:11px; color:#a0a0a0; background-color:#505050; padding:4px;}
.tbl3 {font-family:Verdana,Tahoma,Sans-Serif; font-size:11px; color:#b4b4b4;background-color:#505050;border:1px solid;border-color:#282828 #5f5f5f #5f5f5f #282828;margin-top:5px;}
.forum-caption {font-size:11px;font-weight:bold; color:#c3c1b3;background-color:#373737; height:24px; padding:0px 4px 2px 4px;
background-image:url(images/cellpic.gif);background-repeat:repeat-x;border-width:1px 1px 1px 1px;border-color:#373737 #373737 #373737 #373737;border-style:solid;}
.quote {color:#b4b4b4;background-color:#505050; padding:4px; margin:5px 0px 5px 0px; border:1px solid; border-color:#282828 #5f5f5f #5f5f5f #282828;}
.poll {height:11px; border:1px #202020 solid;}
.comment-name {font-weight:bold; color:#E7E4DA;}
.shoutboxname {font-weight:bold; color:#ffddaa;}
.shoutbox {color:#CFCFCF;}
.shoutboxdate {font-size:9px; color:#a0a0a0;}
.small {font-size:11px; font-weight:normal;}
.small2 {font-size:11px; font-weight:normal; color:#ADA899;}
.side-small {font-size:11px; font-weight:normal; color:#fff;}
.side-label {background-color:3c3c3c; font-weight:normal; color:#a0a0a0; padding:2px;}
.gallery {padding: 16px 0px 8px 0px;}
.gallery img {border: 0px solid #202020; filter: gray;}
.gallery:hover img {border: 0px solid #ff6600; filter: none;}
img.activegallery {border: 0px solid #202020; filter: none;}
.forumline {border:1px #202020 solid;}
.forumcat {font-size:11px; font-weight:bold; color:#C3C1B3;}
P.S. Mam EP IV
Edytowane przez Pieka dnia 17.03.2007 22:01:46
|