Z góry przepraszam wszystkich biegłych w sztuce php ze pytam o takie rzeczy ale dzieki waszej wyrozumialosci sam tez juz wiele zdzialalem na swojej stronie:P
1.Ze swojego thema usunalem cala tabelke w ktorej znajduje sie baner strony razem z gorna nawigacja.Chce tam zaladowac obrazek z mapowaniem i tu pytanie
1.1 czy da sie tam wsadzic mapowanie.?Jesli tak to w jaki sposob.
1.2 Dlaczego kiedy wsadzam w puste miejsce ( gdzie juz niema gornej belki i menu) obrazek banera tak tymczasowo za pomoca echo "<img src='adres'>";
Dlaczego owy baner sie nie wyświetla?
a tu kod mojego theme.php (powycinalem niepotrzebne linie kodu zapewne bardzo nieudolnie :P
<?
// theme settings
$body_text = "#000000";
$body_bg = "#666666";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<img src='http://www.aquilas.rox.pl/images/banners.jpg'>
<tr>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='tbl2-top-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl2-top'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl2-top-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
<td class='header'>".stripslashes($settings['footer'])."</td>
<td class='tbl-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
</tr>
</table>\n";
echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005<br><br>\n";
}
echo "</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-top-left'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
<td width='100%' class='tbl-top'>$subject</td>
<td class='tbl-top-right'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' 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='".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" : "");
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</div>
</td>
<td class='tbl-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-top-left'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
<td width='100%' class='tbl-top'>$subject</td>
<td class='tbl-top-right'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='infobar'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</div>
</td>
<td class='tbl-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='5' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='5' height='6' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-top-left'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
<td width='100%' class='tbl-top'>$title</td>
<td class='tbl-top-right'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='tbl-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-top-left'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
<td width='100%' class='tbl-top'>$title</td>
<td class='tbl-top-right'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='tbl-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></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='tbl-top-left'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
<td class='tbl-top'>$title</td>
<td align='right' class='tbl-top'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='tbl-top-right'><img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' 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='tbl-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='tbl-bot-left'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
<td class='tbl-bot'><img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'></td>
<td class='tbl-bot-right'><img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
2.chcialbym drastycznie zminic wyglad panelu logowania chcialbym zmienic go mniej wiecej w taki sposob [img=http://img300.imageshack.us/img300/6743/logowaniepanelyy4.th.jpg]
jak czegos takiego dokonać? To chyba wszystko co chialbym poki co wiedziec
PS: jesli te rzeczy sa juz gdzies opisane (w co watpie bo spedzilem godzine na szukajce..:P) To nie krzyczcie tylko linki podajcie jak mzoecie:P
Pozdrawiam :)
moja strona www.aquilas.rox.pl
Edytowane przez Vallhalen dnia 10.02.2007 23:40:14
|