Wielkie dzięki za pomoc. Zrozumiałem kod i parę rzeczy sam sobie dopasowałem.
Jeszcze raz wielkie dzięki! :)
Wiadomość doklejona:
Witam ponownie, jednak niezbyt zrozumiałem kod, bo coś namieszałem.
Podając ścieżkę do logo w `Głównych ustawieniach` w Panelu Administracyjnym na stronie nie ma żadnych zmian. Tak jakby w ogóle nie było kodu, który odpowiada za wyświetlanie loga. Próbowałem porównać oryginalny plik theme.php z tym, którego sam modyfikowałem, nie mam pojęcia co zrobiłem, że logo się nie wyświetla.
Prosiłbym o przejrzenie zmodyfikowanego pliku theme.php i sprawdzenie gdzie czegoś za dużo usunąłem.
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "</tr>\n</table>\n";
//Header <img src='images/projekt-logo2.png'>
//Content
echo "<table cellpadding='0' cellspacing='0' width='80%' align='center' 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
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='80%' align='center'>\n<tr>\n"; echo "<td align='left'><img src='".THEME."/images/subheader-left.png'></td>\n";
echo "<td align='center' class='sub-header' width='100%'>GameManiacs2 Theme by <a href='http://art4fusion.com'>Art4Fusion.com</a></td>\n";
echo "<td align='right'><img src='".THEME."/images/subheader-right.png'></td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td><center>Powered by <a href='http://php-fusion.co.uk'>PHP-Fusion</a> copyright 2002 - 2008 by Nick Jones.<br>
Released as free software without warranties under GNU Affero GPL v3.</center></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/cap-left.png'></td>\n";
echo "<td class='capmain' width='100%'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/cap-right.png'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$news."</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><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' 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='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td><img src='".THEME."/images/side-left.png' align='left'></td>\n";
echo "<td class='scapmain' align='center' width='100%'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td><img src='".THEME."/images/side-right.png' align='right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\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"; echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png'></td>
</tr></table>\n";
}
?>
To wpisałem sam:
//Header <img src='images/projekt-logo2.png'>
Edytowane przez hehe dnia 26.04.2010 14:35:43
|