Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del BG!

Parašė RuP3r· 2008 Bal. 19 08:04:56
#1

Kaip padaryti kad butu saite bg vienas nes pas mane kai eini zemyn ju daug as noriu kad eini apacion ir bg eina su tavim
theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#6aa311";
$body_bg = "#000000";
$theme_width = "950";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width;

echo "<table class='forumline' align='center' width='950' cellspacing='0' cellpadding='0'><tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'><tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'><tr><td class='header' width='100%'><table align=center width=950 height=299 background='".THEME."images/header_01.jpg' border=0 cellspacing=0 cellpadding=0></div>
</td>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_02.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_03.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_04.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_05.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_06.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_07.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style='padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;'><img src='".THEME."images/header_08.jpg' border='0'></a>
<script type='text/javascript'>LKT_init();</script></td></tr></table></td></tr></table><table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</td>
</tr>
</table>
<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #c1d2ec 1px; border-left: solid #c1d2ec 1px;'>
<td width='20%' height='40' class='white' align='left'><b><a href='http://php-fusion.co.uk' target='_blank'></a></b></td>
<td width='40%' class='white' align='center'><b><center>Copyright &copy; 2008</center></b></td><td width='26%' class='white' align='right'><b><a href=''></a></b></td><div align='center'></tr></table></td></tr></table></div>\n";

}

function render_news($subject, $news, $info) {

echo "<table border='0' style=': 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'>
<tr><td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'><a name='news_".$info['news_id']."' id='news_".$info['news_id']."'></a>$subject</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr><td><table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='main-body'>$news</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table border='0' cellspacing='1' width='100%' cellpadding='3'>
<tr><td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'>$subject</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr><td><table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #c1d2ec'>
<tr><td bgcolor='#ffffff' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr><td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'>
<tr><td height='27' width='100%' background='".THEME."images/cellpic3.gif'><font class='block-title'>$title</font></td></tr>
<tr><td bgcolor='#ffffff' class='side-body' width='100%'>\n";

}

function closeside() {

echo "</td></tr></table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'>
<tr>
<td height='27' width='100%' background='".THEME."images/cellpic3.gif'><font class='block-title'>$title</font></td>
<td height='27' width='120%' background='".THEME."images/cellpic3.gif'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>



Parašė MaFetas· 2008 Bal. 19 08:04:53
#2

Redaguok styles.css
body { } skiltyje pridėk šitą:
background-repeat: no-repeat;



Parašė Ptycka· 2008 Bal. 19 08:04:54
#3

Naudokis search.php tokiu temu buvo pilna rakinu tema.