Skocz do zawartości


Zdjęcie

[cms] Problem z theme, panele uciekają w ef


  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Madern

Madern

    Początkujący

  • 57 postów

Napisano 25 02 2009 - 19:25

Witam. Mam problem, otóż zakodowałem theme i panele boczne mi uciekają.. osoby z małą rozdzielczośćią mogą tego nie zauważyc.
http://www.gtadownload.na15.pl/test
A i jak zadeklarować by był inny nagłówek do panelu prawego a inny dla lewego. Kod:
CODE-BOX
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#191919";
$theme_width = "1000px";
$theme_width_l = "246";
$theme_width_r = "251";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/g_03.png'); height: 49px; padding-left: 50px; padding-top: 6px; width: 925px\">Witaj na <b>TwojaStrona.pl</b></td>
</tr>
<tr>
<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><img src=\"".THEME."images/g7_05.png\" width=\"750\" height=\"225\" border=\"0\" alt=\"[Rozmiar: 240301 bajtów]\"></td>
<td style=\"background-image: url('".THEME."images/g7_06.png'); height: 225px; padding-left: 5px; padding-right: 30px; width: 190px\">Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - Panel Logowania - </td>
</tr>
</table></td>
</tr>
<tr>
<td><a href=\"/link.html\"><img src=\"".THEME."images/g7_07.png\" width=\"126\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 4990 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_08.png\" width=\"113\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 5576 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_09.png\" width=\"113\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 5609 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_10.png\" width=\"108\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 4838 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_11.png\" width=\"110\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 4765 bajtów]\" ></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_12.png\" width=\"105\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 3956 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_13.png\" width=\"130\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 5913 bajtów]\"></a><a href=\"/link.html\"><img src=\"".THEME."images/g7_14.png\" width=\"170\" height=\"52\" border=\"0\" alt=\"[Rozmiar: 6456 bajtów]\"></a></td>
</tr>
<tr>
<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><img src=\"".THEME."images/g7_15.png\" width=\"975\" height=\"40\" border=\"0\" alt=\"[Rozmiar: 22112 bajtów]\"></td>
</tr>
<tr>
<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td style=\"background-image: url('".THEME."images/g7_16.png'); height: 159px; padding-left: 20px; width: 227px\"><center>\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"\"Ostatnie Mecze\"</center></td>
<td style=\"background-image: url('".THEME."images/g7_17.png'); height: 159px; width: 236px\"><center>\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"\"NAJLEPSZY MECZ\"</center></td>
<td style=\"background-image: url('".THEME."images/g7_18.png'); height: 159px; width: 492px\"><center><img src=\"".THEME."images/gtafilmy2buttonlg6.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"[Rozmiar: 4756 bajtów]\"><br><br>

<img src=\"".THEME."images/gtafilmy2buttonlg6.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"[Rozmiar: 4756 bajtów]\">
</center></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";

echo "<td><img src=\"".THEME."images/g7_32.png\" width=\"975\" height=\"49\" border=\"0\" alt=\"[Rozmiar: 22255 bajtów]\"></td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

global $settings;


echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/g7_21.png'); font-family: 'arial black'; font-size: 14px; height: 49px; padding-left: 40px; width: 437px\">$subject</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/g7_24.png'); padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 457px\">$news<br>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='http://www.forum.tweaks.pl/".THEME.' images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
<td align='right' class='infobar'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='http://www.forum.tweaks.pl/".THEME.' images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src=\"".THEME."images/g7_31.png\" width=\"477\" height=\"16\" border=\"0\" alt=\"[Rozmiar: 193 bajtów]\"></td>
</tr>
</table></td>\n";

}

function render_article($subject, $article, $info) {

echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/g7_21.png'); font-family: 'arial black'; font-size: 14px; height: 49px; padding-left: 40px; width: 437px\">$subject</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/g7_24.png'); padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 457px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='http://www.forum.tweaks.pl/".THEME.' images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
<td align='right' class='infobar'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='http://www.forum.tweaks.pl/".THEME.' images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src=\"".THEME."images/g7_31.png\" width=\"477\" height=\"16\" border=\"0\" alt=\"[Rozmiar: 193 bajtów]\"></td>
</tr>
</table></td>\n";

}

function opentable($title) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/g7_21.png'); font-family: 'arial black'; font-size: 14px; height: 49px; padding-left: 40px; width: 437px\">$title</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/g7_24.png'); padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 457px\">\n";

}

function closetable() {

echo "</tr>
<tr>
<td><img src=\"".THEME."images/g7_31.png\" width=\"477\" height=\"16\" border=\"0\" alt=\"[Rozmiar: 193 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/g7_22.png'); font-family: arial; font-size: 14px; height: 49px; padding-left: 35px; width: 216px\">$title</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/g7_25.png'); padding-left: 10px; width: 241px\">\n";

}

function closeside() {

echo "</tr>
<tr>
<td><img src=\"".THEME."images/g7_30.png\" width=\"251\" height=\"24\" border=\"0\" alt=\"[Rozmiar: 206 bajtów]\"></td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$open="on") {

$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"java script:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='http://www.forum.tweaks.pl/".THEME.' images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "</div>
<td class='border-right'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='http://www.forum.tweaks.pl/".THEME.' images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";

}
?>


  • 0

Zobacz więcej tematów z tagiem: IPB IP.Board



Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych