Bywalec
Postów: 310 Pomógł: 8
v9.03.80 Data rejestracji: 15.04.2007 12:34
|
Witam. Właśnie (wkońcu) przeszedłem z v6 na v7 i teraz męcze się z wszystkim :P Ale do rzeczy. Chodzi mi o to żeby tło się rozciągało. Wcześniej w skórce aero2 na v6 miałem tak to zrobione w pliku theme.php:
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Aero 2 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Itanium © 2007 |
| web: http://www.itaniu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#EFEFEF"; //backup
$theme_width = "900"; //!important! - !ne spreminjaj!
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<div style='position: absolute; z-index: 2; width: 100%; height: 100%; overflow: auto'>
<div style='margin: 10px'>
<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='0' height='0'></td>";
echo "<td valign='middle' height='0' style='background-image:url(".THEME."images/)'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."icon.png'></a>"."</td>";
// Banner fild
echo "<td align='center' style='background-image:url(".THEME."images/center.png)'>".""/*med "" vnesite kodo za oglase*/."</td>";
echo "<td align='right' width='0' height='0' style='background-image:url(".THEME."images/center.png)'>";
echo "<td width='0' height='0'></td></tr></table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr>"."<td class= 'navigacija' align='center'>".showsublinks("·","white")."</td>"."</tr>"."<tr>";
echo "<td class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='42' height='29'><img src='".THEME."images/nav_left.png' width='42' height='29'></td>";
echo "<td align='left' width='38%' height='29' style='background-image:url(".THEME."images/nav_center.png)'>";
require_once THEME."owerflow.php";
$noga = "Powered by <a href='http://www.php-fusion.co.uk' target='_blank' class='white'>PHP-Fusion</a> © 2003-2006";
if ($noga == $a) {
echo $noga;
} else {
echo $license;
}
echo "</td>";
echo "<td align='center' width='32%' style='background-image:url(".THEME."images/nav_center.png)'>";
$podpis = "Aero 2 by: <a href='http://www.itanium-power.com' target='_blank' class='white'>Itanium</a>";
if ($podpis == $b) {
echo $podpis;
} else {
echo $license2;
}
echo "</td>";
echo "<td align='right' width='30%' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='42'><img src='".THEME."images/nav_right.png' width='42' height='29'></td></tr></table> </div>
</div>
<div><img src='http://www.lksjutrzenka.info/themes/Jutrzenka/images/background.jpg' alt='' style='width: 100%; height: 100%; position: absolute; left: 0; top: 0; z-index: 1' /></div>
";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'><br>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
echo "<div style='margin-top:5px'><br>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".articleposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}[/code] Kliknij i zaczekaj na załadowanie kodu ...
A teraz w skórce mam taki kod i nie moge sobie z tym poradzić zeby to tam wstawic. :
[code]<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Aero 2 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Itanium © 2007 |
| web: http://www.itaniu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// theme settings
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000000";
$body_bg = "#EFEFEF"; //backup
$theme_width = "900"; //!important! - !ne spreminjaj!
$theme_width_l = "165";
$theme_width_r = "165";
function render_page($license=false) {
global $theme_width,$settings,$locale;
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='".$theme_width."'>";
echo "<tr><td width='21' height='82'><img src='".THEME."images/header_left.png' width='21' height='82'></td>";
echo "<td valign='middle' height='82' style='background-image:url(".THEME."images/center.png)'>";
echo showbanners()."</td>";
echo "<td align='center' style='background-image:url(".THEME."images/center.png)'>".""/*med "" vnesite kodo za oglase*/."</td>";
echo "<td align='right' width='10%' height='82' style='background-image:url(".THEME."images/center.png)'>";
echo "<td width='21' height='82'><img src='".THEME."images/header_right.png' width='21' height='82'></td></tr></table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='".$theme_width."'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top' width='169px'>".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' width='169px'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "<table align='center' width='".$theme_width."' cellspacing='0' cellpadding='0'>";
echo "<tr>"."<td id='subheader' class='navigacija' align='center'>".str_replace("class='first-link'>· <a", "class='first-link'><a", str_replace("<a", "<a class='white'", showsublinks("· ","")))."</td>"."</tr>"."<tr>";
echo "<td class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='".$theme_width."'>";
echo "<tr><td width='42' height='29'><img src='".THEME."images/nav_left.png' width='42' height='29'></td>";
echo "<td align='left' width='38%' height='29' style='background-image:url(".THEME."images/nav_center.png)'>";
if ($license == false) {
echo "Powered by <a class='white' target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2009.";
}
echo "</td>";
echo "<td align='center' width='37%' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "Aero 2 by <a class='white' target='_blank' href='http://www.itanium-power.com'>Itanium</a>. Converted to v7 by <a class='white' target='_blank' href='http://pirasoft.com'>VirusxD</a>.";
echo "</td>";
echo "<td align='right' width='25%' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<strong>".number_format($settings['counter'])." </strong>".($settings['counter'] == 1 ? $locale['global_170']."\n" : $locale['global_171']."\n");
echo "</td>";
echo "<td width='42'><img src='".THEME."images/nav_right.png' width='42' height='29'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".$news."</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".articleposter($info," ·")."</td>";
echo "<td align='right' class='infobar2'>";
echo articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "<table width='169px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main' >".$title."</td>".($collapse ? "<td class='panel-main' style='min-width:10px' align='right'>".panelbutton($state, $boxname)."</td>" : "");
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='169px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Mógłby ktoś pomóc?
Edit: Doszedłem do tego poniekąd. Lecz jest mały błąd i nie wiem jak go usunąć.
W pliku styles.css zmieniłem na taki kod:
font-size:11px;
font-family: Georgia, "Times New Roman", Times, serif;
padding:0px 0px 0px 0px;
margin:15px 10px 0px 10px;
background-image: url("http://www.lksjutrzenka.info/themes/Jutrzenka/images/background.jpg");
background-attachment:fixed;
background-position:absolute; width:100%; height:100%; margin:0px; padding:0px; left:0px; right:0px;z-index:1">;
background-repeat:no-repeat;
Kliknij i zaczekaj na załadowanie kodu ...
I rozciąga lecz nie wiem co blokuje i nie rozciąga się do końca tylko ponawia tło do końca sami zobaczcie:
Edytowane przez Spaik dnia 22.04.2009 17:15:14
|