Na tej podstronie mam problem z rozszerzeniem strony (jak widać): http://www.katarz...page_id=22
Nie wiem w którym miejscu mam zmienić w theme.php by dobrze się wyświetlało.
Dzięki z góry za pomoc. Wklejam kod z theme.php mojego. Jak szybko liczy się linie?
Bo w notatniku jak używam w Unreal Commander lub na dysku pokazuje mi wszystko w jednej kupie a nie w liniach przejrzyście.
<?php
// theme settings
$body_text = "#D7DCE9";
$body_bg = "#010102";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<body background='".THEME."images/bkg.gif'>";
echo "<table border='0' align='center' width='950' cellspacing='1' cellpadding='0' bgcolor='#1A3858'>";
echo "<tr><td width='100%' height='87' bgcolor='#003151'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr>";
echo "<td height='22' align='right' background='".THEME."images/top_bar_back.gif'>";
echo "<font class='clock'>".ucwords(showdate($settings['subheaderdate'], time()))."</font></td>";
echo "</tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='950'>";
echo "<tr><td width='100%'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='950'>";
echo "<tr><td width='100%' height='87' bgcolor='#7D746B'>";
echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align='left'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/logo.jpg' width='950' height='87' hspace='0' title='".$settings[sitename]."'></a></td><td align='right'>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='1%' background='".THEME."images/navbar.gif'>";
echo "<img height='41' src='".THEME."images/spacer.gif' width='1'></td>";
echo "<td width='100%' background='".THEME."images/navbar.gif'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='100%'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td>";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\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>\n";
echo "</tr></table></td><td align='right' width='45%'> </td>";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#003151' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='center'>".stripslashes($settings['footer'])."</td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<td class='footer' valign='middle' width='39%'><div align='left'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005</div></td>";
echo "<td class='footer' align='middle' width='39%'><div align='left'>";
echo "Lykun Theme Design by: <a target='_blank' href='http://phpfusion.org'><img src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a></td></div>";
echo "<td class='footer' width='22%'><div align='right'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></div></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#173A50'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/header_news.gif' width='100%' height='24'><img src='".THEME."images/bullet_l.gif' hspace='2'>";
echo "<font class='storytitle'><b>$subject</b></font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>$news</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#0D2C3F' align='left'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='4'></center> <font class='content'>";
echo "".($info['news_ext'] == "y" ? "<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']." ";
echo "<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>";
echo "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#173A50'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/header_news.gif' width='100%' height='24'><img src='".THEME."images/bullet_l.gif' hspace='2'>";
echo "<font class='storytitle'><b>$subject</b></font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#0D2C3F' align='left'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])." ";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='4'></center> <font class='content'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo "".$info['article_reads'].$locale['044']." ";
echo "<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>";
echo "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<td class='capmain' width='100%'>$title</td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='110%' cellpadding='0' cellspacing='0' align='center'><tr><td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' style='border: 0px solid #383A3B' width='100%' background='".THEME."images/header.gif' height=24>";
echo "<tr><td width='7'><img src='".THEME."images/bullet_l.gif'></td>";
echo "<td valign=center><font class='boxtitle'>$title</font>";
echo "<td valign='top'><img align='right' src='".THEME."images/bullet_r.gif'>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#3B5981'>";
echo "<table border='0' cellpadding='3' cellspacing='1' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/back1.gif' bgcolor='#455B6C'>";
}
function closeside() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='2'>";
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 0px solid #383A3B' width='100%' background='".THEME."images/header.gif' height=24>";
echo "<tr><td width='7'><img src='".THEME."images/bullet_l.gif'></td>";
echo "<td valign=center><font class='boxtitle'>$title</font></td>";
echo "<td valign='top'><img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#3B5981'>";
echo "<table border='0' cellpadding='3' cellspacing='1' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/back1.gif' bgcolor='#455B6C'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='2'>";
echo "</td></tr></table>\n";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'>";
echo "</td></tr></table>\n";
}
?>
Wiadomość doklejona:
Już sama sobie poradziłam, nie potrzebnie wpisałam 110% wcześniej w theme.php
Edytowane przez Lara_Perkins dnia 11.12.2009 17:08:16
|