Początkujący
Postów: 119 Ostrzeżeń: 1
Data rejestracji: 04.02.2006 09:07
Złamana licencja
|
ale ja nie mam zamiaru zmieniać theme'sa można coś z tym zrobić?
oto kod mojego theme'sa
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='29' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td width='60%' style='background-image:url(".THEME."images/logo_bg.gif)' height='80'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr><td></td></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='4' bgcolor='#333333' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='footer'>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table>";
echo "<div align='center'>";
echo "<table width='$theme_width' cellpadding='3' cellspacing='0' width='100%'>";
echo "<tr><td align='center' class='footer2'>";
echo "<b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."<br<br>\n" : $locale['141']."<br><br>\n");
if ($license == false)
echo "</td></tr></table></tr></center></div>\n";
echo "<td width='29' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='panel-header'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><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' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='panel-header'>$subject</td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($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' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'>";
echo "<td class='panel-header'>$title</td>";
echo "</tr>";
echo "<tr><td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='panel-header'>$title";
echo "</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='panel-header'>";
echo "<img align='left' vspace='2' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
A to kod styles
body {
margin: 0px;
padding: 0px;
font-family: Verdana,Arial,Sans-serif;
font-size: 10px;
}
a {color:#364869; text-decoration:none; font-family: Verdana,Arial,Sans-serif;FONT-WEIGHT: bold;font-size:10px;}
a:hover {color:#437BE5; text-decoration:none;}
a.side {color:#364869; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.side {color:#437BE5; text-decoration:none;}
a.white {color:#FFFFFF; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.white {color:#000000; text-decoration:none;}
a.nav-left {color:#F5D13F; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.nav-left {color:#000000; text-decoration:none;}
a.nav-right {color:#FF9D03; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.nav-right {color:#000000; text-decoration:none;}
sup { position: relative; top: 1px; font-family: verdana; font-style: normal; font-weight: bold; font-size: 65%; vertical-align: top;}
.shadow {border-bottom: 1px solid #ffffff; background-image: url(images/bg_main2.gif); background-repeat: repeat-x;}
.main {
background-image: url(images/bg_main.gif); background-repeat: repeat-x;
}
.logonav {border-top: 1px solid #c1c1c1; border-bottom: 1px solid #c1c1c1;
background-image: url(images/bg1.gif); background-repeat: repeat-x;
}
.tabnav {border-top: 1px solid #ffffff;
background-image: url(images/bg2.gif); background-repeat: repeat-x;
}
.subnavl { background-color: #83B629; padding: .4em; padding-left: 1em; border-top: 4px solid #70A0F8; border-bottom: 1px solid #70A0F8; background-image: url(images/nav2_bg.gif); background-repeat: repeat-x;color: #3A6D05}
.subnav { background-color: #83B629; padding-right: 1em; border-top: 4px solid #70A0F8; border-bottom: 1px solid #70A0F8; background-image: url(images/nav2_bg.gif); background-repeat: repeat-x;
}
.shade { border-top: 1px solid #ffffff;
background-image: url(images/bg3.gif); background-repeat: repeat-x;
}
.tabl { padding-right: 4px; background-image: url(images/tab_l.gif); background-repeat: no-repeat;}
.tabc { color: #ffffff; padding-top: .3em; background-image: url(images/tab_c.gif); background-repeat: repeat-x;}
.tabr { padding-right: 8px; background-image: url(images/tab_r.gif); background-repeat: no-repeat;}
h5 {
margin: 0px;
font-size: .85em;
font-weight: normal;
}
.panel-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:9px;
font-weight:bold;
height:18px;
color:#ffffff;
background-color:#DEDEDE;
background-image:url(images/cellpic2.gif);
padding:3px 5px 5px 5px;
}
.side-body {
background-color:#DEDEDE;
font-size:11px; font-family:Tahoma,Verdana,Arial,Sans-Serif;
color:#0A0C11;
padding:4px 4px 6px 4px;
}
/* General page style */
.bodyline {background: #333333;color:#000000;border:1px solid #CECECE;}
form {margin:0px 0px 0px 0px;}
hr {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
hr.side-hr {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
td {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;}
pre {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt {color:#1C1C1C;}
.white-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#444;background-color:#999386;
padding:4px; border-top:#C5CAD4 1px solid; border-bottom:#C5CAD4 1px solid;}
.full-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#fff;background-color:#999386;}
.button {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#B8BEC5;
border:1px #7C8999 solid;margin-top:2px;}
.textbox {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#E9E9E9;
border:1px #7C8999 solid;}
.visits {color:#364869; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
.main-body {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; color:#000; background-color:#E4E6EA; padding:3px 4px 3px 4px;}
.main-bg {background-color:#333333;}
.border {
border-top: solid #C5CAD4;
border-top-width: 0px;
border-left: solid #C5CAD4;
border-left-width: 1px;
border-right: solid #C5CAD4;
border-right-width:1px;
border-bottom: solid #C5CAD4;
border-bottom-width:1px;
}
.border2 {
border-top: solid #C5CAD4;
border-top-width: 1px;
border-left: solid #C5CAD4;
border-left-width: 1px;
border-right: solid #C5CAD4;
border-right-width:1px;
border-bottom: solid #C5CAD4;
border-bottom-width:0px;
}
td.lefttd {
background-repeat: repeat-y;
background-image: url(images/leftside.gif);
}
td.righttd {
background-image: url(images/rightside.gif);
background-repeat: repeat-y;
}
.date {
background: none;
color: #C6C9CA;
font-size: 10px;
font-weight: bold;
font-family: Verdana, Helvetica; text-decoration: none
}
.news-footer {font-size:9px;font-weight:bold; color:#142000;background-color:#E2E3E0; padding:4px 4px 4px 4px;}
.capmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
border-width:1px 1px 1px 1px;border-color:#C5CAD4;border-style:solid;
color:#B78E00; height:24px; padding:2px 2px 2px 2px;}
.copyrights {background: none; COLOR: #FFFDF0; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {background: none; COLOR: #F4F1BF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title {background: none; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}
.head-title {background-color: }
.date {background-color: }
img {border: 0px;}
.capleft {width:2px;height:20px;}
.capright {width:2px;height:20px;}
.scapmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold; color:#000; height:19px; padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;border-color:#C5CAD4 #C5CAD4 #C5CAD4 #C5CAD4;border-style:solid;}
.tbl-border {
background-color:#C5CAD4;
}
.tbl {
font-size:11px;
padding:3px 4px 3px 4px;
}
.tbl1 {
font-size:11px;
color:#000;
background-color:#DEDEDE;
padding:4px;
}
.tbl2 {
font-size:11px;
color:#000;
background-color:#E5E5E5;
padding:4px;
}
/* Forum header*/
.forum-caption {font-size:10px;font-weight:bold; color:#000000;background-color:#EDEEEC; height:20px; padding:0px 4px 2px 4px;
background-image:url(images/cellpic.gif);background-repeat:repeat-x;border-width:1px 1px 1px 1px;border-color:#E9EBE7 #E9EBE7 #E9EBE7 #E9EBE7;border-style:solid;}
/* Quote blocks */
.quote {color:#2F2F2F;background-color:#fafafa; padding:2px; margin:0px 20px 0px 20px; border:1px #C5CAD4 solid;}
/* Voting Poll */
.poll {height:10px; border:1px #A7ADB8 solid;}
.comment-name {font-weight:bold; color:#ddcc88;}
/* This is for the Shoutbox */
.shoutboxname {font-weight:bold; color:#ffddaa;}
.shoutbox {color:#06070A;}
.shoutboxdate {font-size:9px; color:#1C1C1C;}
.small {font-size:10px; font-weight:normal;}
.small2 {font-size:9px; font-weight:normal; color:#1C1C1C;}
.side-small {font-size:10px; font-weight:normal; color:#000;}
.side-label {background-color:none; font-weight:normal; color:#447DE8; padding:2px;}
/* This is for the Photo Gallery */
.gallery {padding: 16px 0px 8px 0px;}
.gallery img {border: 1px solid #C5CAD4; filter: gray;}
.gallery:hover img {border: 1px solid #4E79F3; filter: none;}
img.activegallery {border: 1px solid #C5CAD4; filter: none;}
.outer-border {
color: #000;
background-color : #275bb8;
border-color : #88a2d6 #284276 #284276 #88a2d6;
border-width : 1px;
border-style : solid;
}
.inner-border {
color: #000;
background-color : #eee;
border-color : #284276 #88a2d6 #88a2d6 #284276;
border-width : 1px;
border-style : solid;
}
.sub-header {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
color : #444;
background-color : #eee;
border-top : 1px solid #bbb;
border-bottom : 1px solid #bbb;
padding : 5px;
}
.full-header {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
color : #000;
background-color : #000;
padding : 5px;
}
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #fff;
background-color : #444;
padding : 4px 10px 4px 10px;
}
a.admin {
color : #FF8C00;
text-decoration : none;
}
a:hover.admin {
color: #FF8C00;
text-decoration: underline;
}
a.superadmin {
color: Red;
text-decoration: none;
}
a:hover.superadmin {
color: Red;
text-decoration: underline;
}
a.moderator {
color: #32CD32;
text-decoration: none;
}
a:hover.moderator {
color: #32CD32;
text-decoration: underline;
}
Męcze się z tym i męcze w interner explorer i operze wszystko jest git tylko w mozilli nie :( |