Przedszkolak
Postów: 52
Data rejestracji: 02.06.2008 22:31
|
Witam.
Mam logo, które jest identycznych rozmiarów jak logo przykładowe tematu "SO" by Jantom. Problem polega na tym, że pasek, który jest tłem dla sublinksów, jest nieco przesunięty (zaczyna się wcześniej niż góra). Oprócz tego przy pierwszym wczytaniu strony część napisów w menu użytkownika wbudowanym w logo jest w innym miejscu, niż powinna. Przy drugim wczytaniu strony (odświeżeniu) są już na swoim miejscu. Mimo wszystko jest to dla mnie kłopot, gdyż psuje estetykę strony.
Strona znajduje się pod adresem: www.conquerpostac...
Screeny pokazujące problemy z logiem:
A oto mój plik theme:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| SO Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Jantom's Studio - Jantom © 2006-2007|
| web: http://jantomsstu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
| Please, do not remove this information |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
//ustawienia strony/page settings
$body_text = "black";
$body_bg = "#e5ddc9";
$theme_width = "898";
$theme_width_l = "180px";
$theme_width_r = "180px";
function render_header($header_content) {
global $db_prefix,$userdata,$locale,$aidlink,$settings;
echo"<center><div id='naglow1'>";
//User panel in header - start
if (!iMEMBER){
if (file_exists(THEME."locale/".$settings['locale'].".php")) {
include THEME."locale/".$settings['locale'].".php";
} else {
include THEME."locale/English.php";
}
echo "<div id='naglow2-log'>
<div id='register'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' style='width:100px'><br><div style='width:100%; height:15px'></div>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>".$locale['063']."
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'><br>
<a href='".BASEDIR."lostpassword.php' class='sub'>".$locale['so01']."</a>";
if ($settings['enable_registration']) {
echo " <a href='".BASEDIR."register.php' class='sub'>".$locale['so00']."</a>";
}
echo "<input type='submit' name='login' value='".$locale['064']."' class='button'>";
echo"</form>";
} else {
echo"<div id='naglow2'>
<DIV id='witaj'>".$locale['024'].": ".$userdata['user_name']."<br><center>";
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' ALT='avatar' style='margin:0 auto'>" : "<img src='".THEME."images/noav.jpg' ALT='NoAvatar image'>")."
</center></div>
<div id='witaj_p2'><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>";
}
//User panel in header - end
echo"</div></div></div><div id='subheader'><span style='padding-left:35px'>".showsublinks(" o ")."</SPAN></div>
<table cellspacing='0' cellpadding='0' id='content'><tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr></table>
<div id='footer'>
<span id='powered'>
SO Theme by <a HREF='http://www.jantom.ovh.org' target='blank'>Jantom</A><br>
Powered by <a HREF='http://www.php-fusion.co.uk' target='_blank'><img SRC='".THEME."images/fusion.gif' alt='PHP-Fusion' width='80' height='15' border='0'></A>
</span>
<span id='licznik'>".showcounter()."</span>
".stripslashes($settings['footer'])."
</DIV>
</CENTER>";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>
<div class='main-body'>$news</div>
<div class='news-footer'>".openform("N",$info['news_id']).newsposter($info," ").newsopts($info,"·").closeform("N",$info['news_id'])."</DIV>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'>$subject</div>
<div class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='news-footer'>".openform("A",$info['article_id']).articleposter($info," ").articleopts($info,"·").closeform("A",$info['article_id'])."</div>\n";
}
function opentable($title) {
echo "<div class='capmain'>$title</div>\n
<div class='side-body'>\n";
}
function closetable() {
echo "</div>";
}
function openside($title) {
echo "<div class='boki'>$title</div>
<div class='side-body'>\n";
}
function closeside() {
echo "</div>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<div class='boki'>$title <div class='roller'>".panelbutton($state,$boxname)."</div></div>
<div id='box_$boxname' style='clear:both;'".($state=="off"?" style='text-align:left;'":"").">
<div class='side-body'>\n";
}
function closesidex() {
echo "</div></div>\n";
tablebreak();
}
function tablebreak() {
echo "<div style='width:100%; height:5px'>\n</div>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Gdyby czegoś było jeszcze potrzeba, proszę pisać. |