Przedszkolak
Postów: 12
Data rejestracji: 03.02.2008 17:49
|
Witam.
Trzy dni poszukiwań i przeczytania multum postów, które w sumie nie wiele miały wspólnego z tym co ja chcę zrobić, mianowicie: nie mogę sobie poradzić z rozbiciem tła strony i forum w skórce Darken.
Strona główna www.wfeh.webd.pl jest ok, natomiast na forum http://www.wfeh.w.../index.php chciałbym, aby tłem było foto które jest w katalogu thema - images/tlo.gif
Po wstawieniu w pliku css thema, tło zmienia się i na stronie głównej i na forum :/
Czy podpowie mi ktoś co do pisać i w którym miejscu w pliku css i theme?
Mój plik css:
a { color:#777; text-decoration:none; }
a:hover { color:#999; text-decoration:underline; }
a.side { color:#777; text-decoration:none; }
a:hover.side { color:#999; text-decoration:underline; }
a.white { color:#ccc; text-decoration:none; }
a:hover.white { color:#ccc; text-decoration:underline; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
margin:10px;
color: #888888;
background-color: #000000;
}
form { margin:0px 0px 0px 0px; }
hr { height:2px; border-bottom:#333 1px solid; border-top:#000 1px solid; }
hr.side-hr { height:2px; border-bottom:#333 1px solid; border-top:#000 1px solid; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:12px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#aaa; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:12px;
color:#ccc; background-color:#000;
padding:4px 4px 6px 4px;
}
.white-header ul{
margin: 0;
padding: 0;
}
.white-header ul li{ display: inline; }
.white-header ul li.first-link .bullet{ display: none; }
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#eee; background-color:#000;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#aaa; background-color:#222;
height:19px;
border:1px #333 solid; margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:12px;
color:#aaa; background-color:#222;
border:1px #333 solid;
}
.main-body {
font-size:12px;
color:#ccc;background-color:#000;
padding:4px 4px 5px 4px;
}
.side-body {
font-size:12px;
color:#ccc;
padding:8px;
}
.main-bg { background-color:#000; padding:0px 0px 5px 0px; }
.border { border:0px #333 solid; }
.side-border-left {
padding:0px 10px 0px 0px;
width: 170px;
}
.side-border-right {
padding:0px 0px 0px 10px;
width: 170px;
}
.news-footer {
font-size:9px;
color:#ccc;background-color:#000;
padding:3px 4px 4px 4px;
}
.barmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#aaa;
padding:4px 4px 4px 4px;
}
.capmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:13px;
color:#cc0000;background-color:#000;
padding:4px 4px 2px 4px;
}
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#cc0000;background-color:#000;
padding:4px 4px 1px 4px;
}
.tbl-border { background-color:#333; }
.tbl { font-size:12px; padding:4px; }
.tbl1 { font-size:12px; color:#ccc; background-color:#000; padding:4px; }
.tbl2 { font-size:12px; color:#ccc; background-color:#222; padding:4px; }
.forum-caption {
font-size:13px;
color:#cc0000;background-color:#000;
height:20px;
padding:0px 4px 2px 4px;
}
.quote {
color:#aaa;background-color:#222;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #444 solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#bbb; }
.shoutboxname { font-weight:bold; color:#ccc; }
.shoutbox { color:#888; }
.shoutboxdate { font-size:9px; color:#999; }
.small { font-size:11px; font-weight:normal; }
.small2 { font-size:11px; font-weight:normal; color:#777; }
.side-small { font-size:10px; font-weight:normal; color:#777; }
.side-label { background-color:#222; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #ccc; }
.gallery:hover img { border: 1px solid red; }
img.activegallery { border: 1px solid green; }
#main {width: 100%;}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #ccc;
background-color: #222;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #ccc;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #222;
background-color: #ccc;
}
* html #navigation ul li{
height: 1%;
}
.pagenav { height: 20px; }
.pagenav span {
color: #777;
background-color: #f0f0f0;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
}
.pagenav a {
color: #000;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #ccc;
background-color: #444;
text-decoration: none;
}
.center, *[align="center"] {margin: 0 auto;}
.admin-message {
border: 1px solid #666;
padding: 8px;
margin-bottom: 8px;
}
.bbcode { border: 1px solid #ccc; }
.tablebreak { margin-bottom: 8px; }
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
Mój plik theme:
<?php
/*
Darken v1.0 theme for PHP-Fusion v7.00+
Author: Nick "Digitanium" Jones (http://www.php-fusion.co.uk/)
Conversion to v7 by: Kenneth Boldt (http://php-fusion.boldt.me/)
Released under the Affero GPLv3
*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "</center><img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$settings,$locale;
echo "<table align='center' cellspacing='0' cellpadding='0' id='main'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><center>".showbanners()."</center></td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='white-header'>".showsublinks(" <span class='bullet'>·</span> ", "white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br />\n";
echo "Darken theme originally by <a href='http://www.php-fusion.co.uk' target='_blank'>Digitanium</a>. Converted to PHP-Fusion v7 by <a href='http://php-fusion.boldt.me' target='_blank'>Kenneth</a>.<br /><br />";
if ($license == false) {
echo showcopyright()."<br /><br />";
}
echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'>".
newsposter($info, THEME_BULLET).newsopts($info, THEME_BULLET).itemoptions("N",$info['news_id'])."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='right' class='news-footer'>".
articleposter($info, THEME_BULLET).articleopts($info, THEME_BULLET).itemoptions("A",$info['article_id'])."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
".($collapse ? "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>" : "")."
</tr>
<tr>
<td colspan='2' class='side-body'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
?>
Edytowane przez Pieka dnia 03.01.2010 15:03:41
|