Mam pewien problem, chyba tkwi on w kodowaniu ;D
Ornientuje się w w php fusion ale postanowiłem poprzerabiać troche szablon (dodać panel logowania w innym miejscu)no i się powiodło stronka nie jest skończona ale wygląda w miare ładnie. Problem w tym, że gdy dam np Edycja profilu, bądź artykuły, to prawy panel przesuwa się poza szablon... spowodowane jest to pewnie przez to, że środek jest za szeroki :P no ale cóź, nie mam pojęcia gdzie błąd. Pewnie ktoś kto się bardziej orientuje go znajdzie więc:
http://i34.tinypi...1m58o2.jpg LINK DO SCREENA
Nie wiem czy się przyda wam style.css ale jak coś to dodam.
SZABLON MAROONDARK:
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#232323";
$theme_width = "980px";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings,$userdata,$aidlink,$loginerror;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='560' height='170' align='left' style='background-color: #0096FF; background-image:url(".THEME."images/logo.png);background-repeat: no-repeat; background-position: left; padding: 7px;'></td>";
echo "<td width='220' height='170' align='right' style='background-color: #0096FF'>";
echo "<div align='center'>";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></center><br>\n";
} else {
echo "<center><img src='".INFUSIONS."user_info_panel/images/brak.gif' width='50' hight='50'></center><br>\n";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Twoje Wiadomości</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Lista Użytkowników</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php".$aidlink."' class='side'> Administracja</a><br>\n";
}{echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>
<input type='password' name='user_pass' class='textbox' value='hasło' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button2'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>rejestracja</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>lost password</a>
</div>\n";
}
closesidel();
echo "</div>";
echo "</td>";
echo "</tr></td></tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='pasek' width='100%' align='center' style='height: 42px;'>
".showsublinks("·","top_links")."
</td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' colspan='3' class='footer'>";
echo stripslashes($settings['footer'])."</td></tr>";
echo "<tr><td align='left' class='footer' width='30%'>\n";
echo "Powered by <a href='http://www.php-fusion.co.uk' class='white'>";
echo "PHP-Fusion</a> v".$settings['version']."</td>
<td align='center' class='footer' width='40%'>MaroonDark theme by ";
echo "<a href='http://www.php-invent.com' class='white'>k3p7</a></td>
<td align='right' class='footer' width='30%'>".showcounter()."</td></tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain-left'><img src='".THEME."images/blank.gif' width='4' height='35' alt='' style='display:block'></td>
<td class='capmain' width='100%'>$subject</td>
<td class='capmain-right'><img src='".THEME."images/blank.gif' width='6' height='35' alt='' style='display:block'></td>
</tr>
<tr>
<td class='capmain-bodyl'><img src='".THEME."images/blank.gif' width='4' alt='' style='display:block'></td>
<td class='capmain-body' width='100%'>$news</td>
<td class='capmain-bodyr'><img src='".THEME."images/blank.gif' width='6' alt='' style='display:block'></td>
</tr>
<tr>
<td class='capmain-body2' colspan='3'>
<div align='center'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</div></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain-left'><img src='".THEME."images/blank.gif' width='4' height='35' alt='' style='display:block'></td>
<td class='capmain' width='100%'>$subject</td>
<td class='capmain-right'><img src='".THEME."images/blank.gif' width='4' height='35' alt='' style='display:block'></td>
</tr>
<tr>
<td class='capmain-bodyl'><img src='".THEME."images/blank.gif' width='4' alt='' style='display:block'></td>
<td class='capmain-body' width='100%'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td class='capmain-bodyr'><img src='".THEME."images/blank.gif' width='4' alt='' style='display:block'></td>
</tr>
<tr>
<td align='center' class='news-footer' colspan='3'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0'>
<tr>
<tr><td class='capmain-left'><img src='".THEME."images/blank.gif' width='4' height='35' alt='' style='display:block'></td>
<td class='capmain' width='100%'><center>$title</center></td>
<td class='capmain-right'><img src='".THEME."images/blank.gif' width='4' height='35' alt='' style='display:block'></td>
</tr>
<tr>
<td class='capmain-bodyl'><img src='".THEME."images/blank.gif' width='4' alt='' style='display:block'></td>
<td class='capmain-body' colspan='3'>
<td class='capmain-bodyr'><img src='".THEME."images/blank.gif' width='4' alt='' style='display:block'></td>\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td class='capmain-body2' colspan='3'>$title</center></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel' width='100%' height='44'><center>$title</center></td>
</tr>
<tr>
<td class='scapmain-body' colspan='3'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td class='panel3' width='100%'><img src='".THEME."images/blank.gif' width='34' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='130' class='border'>
<tr>
<td class='side-body'></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
KOD JEST OGROMNY ALE Nie jestem w stanie określić w którym miejscu jest błąd ;]
PW od moderatora:
- Zmiana nazwy tematu - ICEK 12.11 - 17:07
- Ogólna Uwaga - ICEK 12.11 - 17:08
- Przeniesienie tematu - Pieka 12.11 - 18:50
Edytowane przez Pieka dnia 12.11.2008 19:26:31
|