Witam, mam problem. Otóż chcę obok logo strony (w skórce header) umiejscowić po prawej stronie reklamę. Próbowałem własnymi sposobami lecz nie udało się osiągnąć zamierzonego efektu.
Oto kod theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "·");
define("THEME_WIDTH", "990");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
//Menu
echo "<table cellpadding='0' cellspacing='0' class='menu' align='center' width='920'>\n<tr>\n";
echo "<td class='menu-link'><a href='".BASEDIR."news.php'>Strona Główna</a></td>\n";
echo "<td class='menu-link'><a href='".FORUM."index.php'>Forum</a></td>\n";
echo "<td class='menu-link'><a href='".BASEDIR."search.php'>Szukajka</a></td>\n";
echo "<td class='menu-link'><a href='".BASEDIR."partnerzy.php'>Partnerzy</a></td>\n";
echo "<td class='menu-link'><a href='".BASEDIR."dotacja.php'>Dotacja</a></td>\n";
echo "<td class='menu-link'><a href='".BASEDIR."weblinks.php'>Linki</a></td>\n";
echo "<td class='menu-link'><a href='".BASEDIR."contact.php'>Kontakt</a></td>\n";
echo "<td class='menu-link'><a href='".INFUSIONS."announcements/announcements.php'>Ogłoszenia</a></td>\n";
echo "</tr>\n</table>\n";
//Header
echo "<table cellpadding='0' cellspacing='0' class='header' align='center' width='".THEME_WIDTH."'>\n<tr>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' align='center' width='".THEME_WIDTH."' class='$main_style'>\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 !NO DELETE COPY!
echo "<table cellpadding='0' align='center' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
echo "<td class='footer'>Powered by <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2010 by Nick Jones.<br>Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'>GNU Affero GPL</a> v3.
<a href='http://www.php-fusion.pl/' target='_blank' title='Polski Oficjalny Support PHP-Fusion'><img src='http://www.php-fusion.pl/images/buttons/phpfusionpl_antipixel_1.png' alt='PHP-Fusion PL' width='95' height='15' border='0'></a> <a href='http://polish-208112908113.spampoison.com'><img src='http://pics5.inxhost.com/images/sticker.gif' border='0' width='80' height='15'/></a></td>";
echo "</tr>\n</table>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='705'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n</table>\n";
echo "<table width='705' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'><i>".parseubb($news)."</i></td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='705' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n</table>\n";
echo "<table width='705' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($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 "<table cellpadding='0' cellspacing='0' width='705'>\n<tr>\n";
echo "<td class='capmain' >".$title."</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='705' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='258'>\n<tr>\n";
echo "<td class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Dziękuję za pomoc.
BRAK STOPKI = BRAK POMOCY NA SUPPORCIE.PRZECZYTAJ:
Regulamin Supportu Nie pomagam na PW!!!
|