Witam mam swa pytania pierwszy do tyczy obramowanie w themie Fallout o co mi dokładnie chodzi zanzaczyłem na rysunku niżej(białe linie) jak je usunąc kiedyś to zrobiłem niechcący ale teraz nie wiem jak mam to zrobić bardzo prosiłbym o pomoc.
No i drugie pytanie jak zrobić żeby panele też zaznaczyłem które miały taki sam rozmiar w odtęp między następym panelem był taki sam jak w theme Azara. Ktoś mi kiedyś mówił że to funkcja tablebreak zmienia odtęp między panelami ale ona zmienia odstep między newsami. Poniżej daje rysunek oraz plik theme i style zgóry dziękuje
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fallout Theme Theme for PHP-Fusion v6.x |
| BASED ON "X3" THEME |
|---------------------------------------------|
| author: Therror |
| web: http://www.therror.ovh.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #aaa solid;'>
<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>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " ·\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<center>Powered by <a href='http://php-fusion.pl' target='_blank'>Php-Fusion</a> v".$settings['version']." © 2006</center><br>
<center><b>Fallout BY</B> <a href='mailto:http://therror.ovh.org'>Therror</a></center><br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<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> |\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleft'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
<td class='capmain'>$title</td>
<td class='capright'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
a { color:#fff; text-decoration:none; }
a:hover { color:#fff; text-decoration:underline; }
a.side { color:#fff; text-decoration:none; }
a:hover.side { color:#fff; text-decoration:underline; }
a.white { color:#fff; text-decoration:none; }
a:hover.white { color:#fff; text-decoration:underline; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
color:#fff;
font-size:10px;
margin:10px;
background-image: url(images/bg.jpg);
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; border:#fff 1px solid; }
hr.side-hr { height:2px; border-bottom:#000 1px solid; border-top:#fff 1px solid; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#fff; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#fff;background-image: url(images/menugora.gif);
padding:4px;
border-top:#000 1px solid;
border-bottom:#000 1px solid;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#fff;background-image:url(images/stopka.PNG);
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#d7a550;background-image:url(images/login.gif);
height:19px;
border:1px #000 solid;margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#fff;background-color:#000;
border:1px #fff solid;
}
.main-body { font-size:10px; color:#e74a4a; background-color:#7a0700; padding:3px 4px 3px 4px;border-style:bold; }
.side-body { font-size:9px; background-image:url(images/boki.jpg); padding:4px 4px 6px 4px; }
.main-bg { background-image:url(images/tlo.PNG);; padding:4px; }
.border {
border-width:0px 1px 1px 1px;border-color:#000;border-style:solid;
}
.side-border-left { background-image:url(images/ban.jpg); border-right:0px background-image: url(images/bg.jpg) solid; padding:4px; }
.side-border-right { background-image:url(images/tlopod.PNG); border-left:0px background-image: url(images/bg.jpg) solid; padding:4px; }
.news-footer {
font-size:9px;
color:#e74a4a;background-image:url(images/rymy.gif);
padding:2px 2px 2px 2px;
}
.barmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;font-weight:bold;
color:#000;background-color:#000;
padding:0px 2px 0px 2px;
}
.barleft { width:3px; height:19px; background-image: url(images/bg.jpg); }
.barright { width:3px; height:19px; background-image: url(images/bg.jpg); }
.capmain {
{font-weight:bold;
font-size:12px;
color:#e74a4a;;background-image:url(images/capmain.gif);
padding:4px;
}
.capmainbig {
color: #e74a4a;font-size: 11px; font-weight : bold;
background-color: #e74a4a; height: 25px;
color:#e74a4a;background-image:url(images/capmainbig.gif);
padding:4px;
}
.capleftbig { width:5px; height:37px; background-image:url(images/capleftbig.gif); }
.caprightbig { width:5px; height:37px; background-image:url(images/caprightbig.gif); }
.capleft { width:5px; height:23px; background-image:url(images/capleft.gif); }
.capright { width:5px; height:23px; background-image:url(images/capright.gif); }
.scapmain {
color: #e74a4a;font-size: 11px; font-weight : bold;
background-color: #e74a4a; height: 25px;
color:#e74a4a; background-image:url(images/scapmain.gif);
height:27px;
padding:0px 2px 2px 2px;
}
.scapleft { width:35px; height:27px; background-image:url(images/scapleft.gif); }
.scapright { width:17px; height:27px; background-image:url(images/scapright.gif); }
.tbl-border { background-color:#000; }
.tbl { font-size:10px; padding:3px 4px 3px 4px; }
.tbl1 { font-size:10px; color:#fff; background-color:#000; padding:4px; }
.tbl2 { font-size:10px; color:#fff; background-color:#000; padding:4px; }
.forum-caption {
font-size:12px;font-weight:bold;
color:#d7a550;background-image:url(images/capmain.gif);
height:23px;
padding:0px 4px 2px 4px;
}
.quote {
color:#d7a550;background-color:#000;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #fff solid;
}
.poll { height:12px; border:1px #fff solid; }
.comment-name { font-weight:bold; color:#fff; }
.shoutboxname { font-weight:bold; color:#fff; }
.shoutbox { color:#e74a4a; }
.shoutboxdate { font-size:9px; color:#fff; }
.small { font-size:9px; font-weight:normal; color:#000;}
.small2 { font-size:9px; font-weight:normal; color:#000; }
.side-small { font-size:9px; font-weight:normal; color:#000; }
.side-label { background-color:#000; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #000; filter: gray; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }
|