Nie wiem jak zrobić aby nad newsami była belka taka jak w innych panelach np. nawigacja. Skórka jest domyślnie tak zrobiona, że tych belek nie ma.
Podejrzewam, że to się będzie robiło w pliku theme.php lecz po kilkunastu nieudanych próbach zwracam się tutaj o pomoc. Adres strony: www.10bk.pl
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $aidlink, $settings, $main_style, $locale, $userdata;
//Header
// echo '<table align="center" width="70%" border="0" cellspacing="0" cellpadding="0" background="'.THEME.'images/cellpic.png"><tr><td width="5"><img src="'.THEME.'images/frame_top_left.png"></td><td valign="top" background="'.THEME.'images/frame_top_mid.png" class="maina"></td><td width="5"><img src="'.THEME.'images/frame_top_right.png"></td></tr><tr><td background="'.THEME.'images/frame_left.png"> </td><td align="left" valign="middle" background="'.THEME.'images/cellpic.png"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>';
// echo "<td class='header' width='".THEME_WIDTH."'>\n".showbanners()."</td>\n";
// echo '</td></tr></table></td><td background="'.THEME.'images/frame_right.png"> </td></tr><tr><td height="4"><img src="'.THEME.'images/frame_foot_left.png" width="22" height="22"></td><td height="4" background="'.THEME.'images/frame_foot_mid.png"></td><td height="4"><img src="'.THEME.'images/frame_foot_right.png" width="22" height="22"></td></tr></table><BR>';
// echo "</tr>\n</table>\n";
// echo "</td>\n</tr>\n</table>\n";
// echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='outer-border' align='center'>\n<tr>\n";
echo '<table align="center" width="70%" border="0" cellspacing="0" cellpadding="0" background="'.THEME.'images/cellpic.png"><tr><td width="5"><img src="'.THEME.'images/frame_top_left.png"></td><td valign="top" background="'.THEME.'images/frame_top_mid.png" class="maina"></td><td width="5"><img src="'.THEME.'images/frame_top_right.png"></td></tr><tr><td background="'.THEME.'images/frame_left.png"> </td><td align="left" valign="middle" background="'.THEME.'images/cellpic.png"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>';
echo "<td class='sub-header'>".showsublinks(" <span class='bullet'>·</span> ","white")."</td>\n";
echo '</td></tr></table></td><td background="'.THEME.'images/frame_right.png"> </td></tr><tr><td height="4"><img src="'.THEME.'images/frame_foot_left.png" width="22" height="22"></td><td height="4" background="'.THEME.'images/frame_foot_mid.png"></td><td height="4"><img src="'.THEME.'images/frame_foot_right.png" width="22" height="22"></td></tr></table><BR>';
//Content
echo "<table cellpadding='0' cellspacing='0' class='border' width='".THEME_WIDTH."' align='center'>\n<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>\n</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo '<table align="center" width="70%" border="0" cellspacing="0" cellpadding="0" background="'.THEME.'images/cellpic.png"><tr><td width="5"><img src="'.THEME.'images/frame_top_left.png"></td><td valign="top" background="'.THEME.'images/frame_top_mid.png" class="maina"></td><td width="5"><img src="'.THEME.'images/frame_top_right.png"></td></tr><tr><td background="'.THEME.'images/frame_left.png"> </td><td align="center" valign="middle" background="'.THEME.'images/cellpic.png"><table width="50%" border="0" cellpadding="0" cellspacing="0"><tr><td>';
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."Tuareg Theme by: <a href='http://www.falkenbjerg.dk/' target='_blank' class='white' title='Theme by Falkenbjerg.dk'>Falkenbjerg.dk (Based on Dark knigt by Whocare)</a><br />\n";
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank' title='' class='white'>PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.\n";
echo "<br />".showcounter()."\n";
echo '</td></tr></table></td><td background="'.THEME.'images/frame_right.png"> </td></tr><tr><td height="4"><img src="'.THEME.'images/frame_foot_left.png" width="22" height="22"></td><td height="4" background="'.THEME.'images/frame_foot_mid.png"></td><td height="4"><img src="'.THEME.'images/frame_foot_right.png" width="22" height="22"></td></tr></table><BR>';
echo "</td></tr></table>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo '<center><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="5"><img src="'.THEME.'images/frame_top_left.png"></td><td valign="top" background="'.THEME.'images/frame_top_mid.png" class="maina"> <B><center>'.$title.'</center></B> </td><td width="5"><img src="'.THEME.'images/frame_top_right.png"></td></tr><tr><td background="'.THEME.'images/frame_left.png"> </td><td align="left" valign="middle" background="'.THEME.'images/cellpic.png"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>';
}
function closetable() {
echo '</td></tr></table></td><td background="'.THEME.'images/frame_right.png"> </td></tr><tr><td height="4"><img src="'.THEME.'images/frame_foot_left.png" width="22" height="22"></td><td height="4" background="'.THEME.'images/frame_foot_mid.png"></td><td height="4"><img src="'.THEME.'images/frame_foot_right.png" width="22" height="22""></td></tr></table></center><BR>';
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="5"><img src="'.THEME.'images/frame_top_left.png"></td><td valign="top" background="'.THEME.'images/frame_top_mid.png" class="maina"><B><center>'.$title.'</center></B> </td><td width="5"><img src="'.THEME.'images/frame_top_right.png"></td></tr><tr><td background="'.THEME.'images/frame_left.png"> </td><td align="left" valign="left" background="'.THEME.'images/cellpic.png"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="sbody">';
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo '</td></tr></table></td><td background="'.THEME.'images/frame_right.png"> </td></tr><tr><td height="4"><img src="'.THEME.'images/frame_foot_left.png" width="22" height="22"></td><td height="4" background="'.THEME.'images/frame_foot_mid.png"></td><td height="4"><img src="'.THEME.'images/frame_foot_right.png" width="22" height="22"></td></tr></table><BR>';
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
PW od moderatora:
- Brak Stopki! - Pieka 08.03 - 17:41
|