Początkujący
Postów: 156 Pomógł: 2 Ostrzeżeń: 2
Data rejestracji: 05.11.2006 02:05
|
Witam męczę się i męczę i nie wiem za chiny jak to zdefiniować :/ Chciałbym dodać grafikę tylko w miejsce w którym jest napis Wygenerowano w .. sekund (zastąpić domyślny obrazek o rozmiarach 1007x 148 px )jak go poprostu podmienię to się powtarza jako tło całej strony (logiczne bo tak jest zdefiniowane w stylach ) a ja ten swoj obrazek chciałbym wyswietlic tylko raz w tamtym miejscu a wszedzie indziej niech jest ten domyślny :)
Wiem już że w pliku theme.php jest sekcja div subfooter więc pewnie wystarczy ją jakoś odpowiednio wykorzystać, podpisać odpowiednią sekcję w stylach i będzie grało ale jak to zrobić :/
Dodałem do styli coś takiego:
#smok{
width: 1007px;
background-image : url(images/smok.jpg);
background-repeat : no-repeat;
background-position : top center;
margin-left:auto;
margin-right:auto;
}
Kliknij i zaczekaj na załadowanie kodu ...
W theme.php linijkę:
<td><div id='subfooter'>
<div class=''>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>
Kliknij i zaczekaj na załadowanie kodu ...
zmieniłem na:
<td><div id='smok'>
<div class=''>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>
Kliknij i zaczekaj na załadowanie kodu ...
Ale pewnie to w taki sposób nie może działac i oczywiście nie działało :(
Czy ktoś może mnie oświecić i powiedziec jak to będzie we właściwej formie?
Dodaje poniżej plik theme.php:
<?php
/* WOW_Gold Converter: http://mangee.net Designer: http://psd-resour... */
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='->' />");
function render_page($license=false) {
global $locale, $main_style, $settings, $userdata;
echo " <div id='main-page'>
<table cellpadding='0' cellspacing='0' border='0' width='1007' class='center'><tr><td>
<table cellpadding='0' cellspacing='0' border='0' width='1007'><tr><td><div>".stripslashes($settings['sitebanner1'])."</div></td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='1007' id='userbar' class='center'><tr><td><div class='floatL'>".showsubdate()."</div>\n";
if (iMEMBER){
echo "<div class='floatR'>Witaj ".$userdata['user_name']."</div>\n";
}else{
echo "<div class='floatR'>Witaj Guest</div>\n";
}
echo "</td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='1007' class='center'><tr><td>\n";
echo "<object type='image' data='".THEME."images/logo.GIF' width='1007' height='242'>
</object></td>
</tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='1007'><tr><td id='navi'>".showsublinks(" ")."</td></tr></table>
<table cellpadding='0' cellspacing='0' width='1007' class='$main_style'><tr>
<td width='20'></td>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo"<td class='main-body' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>\n";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo"<td width='20'></td>
</tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='1007' class='spacer'><tr>
<td><div id='footer'>".(!$license ? "<div class=''>".showcopyright()."<br /> Theme conversion by <a href='http://mangee.net/'>Mangee</a><br />Theme designed by <a href='http://psd-resources.de/'>Stafis</a><br />Oryginalny theme wow-gold edytowany przez <a href='http://84.10.97.65/~fusion/profile.php?lookup=2'>Kati</a></div>" : "")."
<div class=''>".stripslashes($settings['footer'])."</div>
</div></td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='1007' class='spacer'><tr><td><div>".stripslashes($settings['sitebanner2'])."</div></td></tr></table>
<table cellpadding='0' cellspacing='0' width='1007'><tr>
<td><div id='subfooter'>
<div class=''>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>
<div class=''>".showcounter()."</div>
</div></td></tr></table>
</td></tr></table></div>\n";
}
function render_news($subject, $news, $info) {
opentable($subject);
echo "<div>".$news."</div>
<div class='news-footer'>".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>\n";
closetable();
}
function render_article($subject, $article, $info) {
opentable($subject);
echo "<div>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='news-footer'>".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id'])."</div>\n";
closetable();
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='B-top'>".$title."</td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%' class='spacer'><tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='B-top'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='B-top' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "</tr></table>
<table cellpadding='0' cellspacing='0' width='100%' class='spacer'><tr>
<td class='B-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td></tr></table>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
i styles.css:
table.center{margin-left:auto; margin-right:auto;}
.B-top {
color: #d37b08;
font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
text-transform: uppercase;
font-size: 1.15em;
line-height: 1em;
font-weight: 500;
margin: 0;
}
.B-body {
color: #d37b08;
padding: 1px 1px;
margin-bottom: 0.8em;
border-top: medium ridge #ddce4f;
}
/*new above*/
#userbar {
line-height: 63px;
overflow: hidden;
height: 63px;
background-image : url(images/navi.jpg);
background-repeat : no-repeat;
background-position : top center;
}
#navigation ul, #navigation li {margin: 0; line-height: inherit;}
#links a{
color: #d37b08;
text-transform: uppercase;
font-family: "Trebuchet MS", Verdana, Arial, Sans, sans-serif;
font-size: 1.05em;
height: 50px;
padding: 0em 0.5em;
padding-left: 0;
}
#links a:hover{
color: #DF6014;
}
#main-page{
width: 1007px;
background-image : url(images/p-bkg.jpg);
background-repeat : repeat-y;
background-position : top center;
margin-left:auto;
margin-right:auto;
}
#navi {
background-image : url(images/navi.jpg);
background-repeat : no-repeat;
background-position : top center;
height : 63px;
margin-top : 0;
padding-left: 203px;
}
#navi ul {
margin : 0;
padding : 0 0 0 0;
}
#navi li {
overflow: hidden;
background-image : none;
float : left;
margin : 0;
height : 63px;
padding-top:4px;
line-height : 30px;
white-space : nowrap;
}
#navi li a {
display: block;
width: 100px;
height: 30px;
margin-top : 0;
font-size : 9px;
font-family : Arial;
font-weight : bold;
color: #AF531C;
text-decoration: none;
background-image : url(images/button.jpg);
background-repeat : no-repeat;
background-position : top center;
background-position: 0 0;
text-align: center;
}
#navi li a:hover {
width: 100px;
height: 30px;
background-position: -100px 0;
color: #DF6014;
}
.floatL{
padding-left: 40px;
float: left;
}
.floatR{
padding-right: 40px;
float: right;
}
#footer {
text-align : center;
color: #d37b08;
padding-top: 100px;
height : 200px;
background-image : url(images/footer.jpg);
background-repeat : no-repeat;
background-position : top center;
clear: both;
margin: 0 auto;
}
#footer a{color: #AF531C;}
#footer a:hover {color: #DF6014; text-decoration: underline;}
#subfooter {
width: 50%;
color: #D37B08;
text-align : center;
border: 1px solid #ddce4f;
margin: 1.5em auto;
padding: 1em;
font-size: 0.8em;
}
/*new above*/
a {
color: #AF531C;
text-decoration: none;
}
a:hover {
color: #DF6014;
text-decoration: underline;
}
a.side {
color: #AF531C;
text-decoration: none;
}
a:hover.side {
color: #DF6014;
text-decoration: underline;
}
a.white, li.white a {
color: #FFF;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #FFF;
text-decoration: underline;
}
body {
margin : auto;
background-color: #0f0f0f;
color: #d37b08;
}
hr {
height: 1px;
border: 1px solid #ddce4f;
}
hr.side-hr {
height: 1px;
border: 1px solid #ddce4f;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #04688d;
}
.spacer {
margin-bottom: 25px;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
text-align: center;
color: #D37B08;
background: #0f0f0f;
border: 1px solid #ddce4f;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
text-decoration: underline;}
form {
margin: 0px;
}
.bbcode {
border-bottom: 1px solid #515151;
border-right: 1px solid #515151;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
background: #303030;
font-size: 1em;
margin-top: 0.1em;
}
input, .textbox, .button, .quote {
color: white;
border-bottom: 1px solid #515151;
border-right: 1px solid #515151;
border-top: 1px solid #000000;
border-left: 1px solid #303030;
background: #303030;
font-size: 13px;
margin-top: 0.1em;
padding: 0.25em;
}
.main-body {
border: 1px solid #ddce4f;
background: #0f0f0f;
padding: 4px;
font-size: 11px;
color: #D37B08;
}
.center-body {
font-size: 11px;
color: #D37B08;
background: #0f0f0f;
border-left: 1px solid #ddce4f;
border-right: 1px solid #ddce4f;
}
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color: #D37B08;
padding: 10px 10px 10px 0;
width: 162px;
}
.side-border-right {
color: #D37B08;
padding: 10px 0 10px 10px;
width: 162px;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-size: 10px;
color: #D37B08;
background: #0f0f0f;
border: 1px solid #ddce4f;
padding: 3px 4px 4px 4px;
}
.main-bg {
color: #D37B08;
background-color: #0f0f0f;
padding: 10px 0 5px 0;
}
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #ddce4f;
}
.tbl {
font-size: 11px;
color: #D37B08;
background: #0f0f0f;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #D37B08;
background: #0f0f0f;
border: 1px solid #ddce4f;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #D37B08;
background: #0f0f0f;
border: 1px solid #ddce4f;
padding: 4px;
}
.forum-caption {
font-size: 11px;
font-weight: bold;
text-decoration: underline;
color: #DF6014;
background: #0f0f0f;
padding: 2px 4px 4px 4px;
}
.poll {
height: 11px;
border: 1px solid #ddce4f;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
.shoutboxname {
font-weight: bold;
color: #D37B08;
}
.shoutbox {
color: #FFF;
}
.shoutboxdate {
font-size: 10px;
color: #D37B08;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: white;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #d37b08;
}
.side-label {
color: #d37b08;;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
#navigation h2 {
font-size: 10px;
font-weight: normal;
background: #0f0f0f;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #AF531C;
padding: 2px;
text-decoration: none;
}
#navigation a:hover {
color: #df6014;
background: #303030;
}
.pagenav {
padding: 4px;
}
.pagenav span {
color: #DF6014;
background: #303030;
border: 1px solid #ddce4f;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #017ebb;
background: #303030;
border: 1px solid #ddce4f;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #FFF;
background: #303030;
margin: 2px;
text-decoration: none;
}
Kliknij i zaczekaj na załadowanie kodu ...
PW od moderatora:
- Przeniesienie tematu - Pieka 17.12 - 21:16
- Odświeżenie Tematu - Pieka 19.12 - 07:30
- Odświeżenie Tematu - Pieka 02.01 - 19:02
Edytowane przez Pieka dnia 17.12.2008 21:22:40
Na odpowiedz nalezy czekać cierpliwie....
|