PHP Fusion Bannerproblem
lima-city → Forum → Programmiersprachen → PHP, MySQL & .htaccess
beispiel
bestimmte pixel
bildschirm
code
dank
darstellen
einstellung
eintragen
festlegen
frage
fusion
header
http
index
info
komplette page
schnelle antwort
setting
setzen
url
-
Hallo alle miteinander,
ich hab folgendes Problem. Und zwar hab ich testweise PHP Fusion installiert inkl. einem Template. Allerdings hab ich ein Problem mit dem Header auf der Seite --> http://paddy-2003.4lima.de
Der Header wird leider je nach Auflösung immer wieder wiederholt bzw. die ganze Seite wird immer an den Bildschirm angepasst.
Habe versucht mich mit PHP auseinander zu setzen, doch leider blicke ich da noch nicht ganz durch. ^^
Ich hab hier mal die theme.php -->
<?php if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; } require_once INCLUDES."theme_functions_include.php"; // theme settings $body_text = "#CE8718"; $body_bg = "#000000"; $theme_width = "100%"; $theme_width_l = "169"; $theme_width_r = "169"; function render_header($header_content) { global $theme_width,$settings; echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 background=\"".THEME."images/HD/XD-Error_HD_02.gif\">\n"; echo " <TR>\n"; echo " <TD width=\"100%\"><table width=\"312\" height=\"148\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; echo " <tr>\n"; echo " <td background=\"".THEME."images/XD-Error_LS_01.gif\" scope=\"row\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"312\" height=\"148\">\n"; echo " <param name=\"movie\" value=\"".THEME."images/XDLogo.swf\" />\n"; echo " <param name=\"quality\" value=\"high\" />\n"; echo " <param name=\"menu\" value=\"false\" />\n"; echo " <embed src=\"".THEME."images/XDLogo.swf\" menu=\"false\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"312\" height=\"148\"></embed>\n"; echo " </object></td>\n"; echo " </tr>\n"; echo " </table></TD>\n"; echo " <TD><IMG SRC=\"".THEME."images/HD/XD-Error_HD_04.gif\" WIDTH=83 HEIGHT=147 ALT=\"\"></TD>\n"; echo " <TD width=\"98\">$theuser</TD>\n"; echo " <TD><table width=\"108\" height=\"147\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; echo " <tr>\n"; echo " <td background=\"".THEME."images/XD-Error_LS_01.gif\" scope=\"row\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"108\" height=\"148\">\n"; echo " <param name=\"movie\" value=\"".THEME."images/XDNav.swf\" />\n"; echo " <param name=\"menu\" value=\"false\" />\n"; echo " <param name=\"quality\" value=\"high\" />\n"; echo " <embed src=\"".THEME."images/XDNav.swf\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"108\" height=\"148\"></embed>\n"; echo " </object></td>\n"; echo " </tr>\n"; echo " </table></TD>\n"; echo " </TR>\n"; echo "</TABLE> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td width=\"20\" background=\"".THEME."images/XD-Error_LS_01.gif\"> </td> <td>\n"; } function render_footer($license=false) { global $theme_width,$locale,$settings; echo "</td> <td width=\"22\" background=\"".THEME."images/XD-Error_LS_03.gif\"> </td> </tr> </table> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_01.gif\" WIDTH=177 HEIGHT=25 ALT=\"\"></TD>\n"; echo "<TD width=\"100%\" background=\"".THEME."images/FT/XD-Error_FT_03.gif\"></TD>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_05.gif\" WIDTH=185 HEIGHT=25 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "</TABLE>\n"; echo "<table width=100% border=0 cellpadding=0 cellspacing=0>\n"; echo "<tr>\n"; echo "<td><TABLE WIDTH=131 BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo "<TD COLSPAN=3><IMG SRC=\"".THEME."images/FT/XD-Error_FT_DL_01.gif\" WIDTH=131 HEIGHT=20 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_DL_02.gif\" WIDTH=12 HEIGHT=78 ALT=\"\"></TD>\n"; echo "<TD width=\"86\" height=\"78\" background=\"".THEME."images/FT/XD-Error_FT_DL_03.gif\"></TD>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_DL_04.gif\" WIDTH=33 HEIGHT=78 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; echo "<TD COLSPAN=3><IMG SRC=\"".THEME."images/FT/XD-Error_FT_DL_05.gif\" WIDTH=131 HEIGHT=15 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "</TABLE></td>\n"; echo "<td width=\"100%\" background=\"".THEME."images/FT/XD-Error_FT_08.gif\"><TABLE WIDTH=98% BORDER=0 align=\"center\" CELLPADDING=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo "<TD><div align=\"center\">\n"; if ($license == false) { echo "<center>Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> © 2003-2006</center><br><center><font class='visits'><b>".$settings['counter']." </b>Unique Visits</font></center>"; } echo "</div></TD>\n"; echo "</TR>\n"; echo "</TABLE></td>\n"; echo "<td><TABLE WIDTH=133 BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo "<TD COLSPAN=3><IMG SRC=\"".THEME."images/FT/XD-Error_FT_CR_01.gif\" WIDTH=133 HEIGHT=73 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_CR_02.gif\" WIDTH=42 HEIGHT=18 ALT=\"\"></TD>\n"; echo "<TD><a href=\"http://www.xtrato.com\"><IMG SRC=\"".THEME."images/FT/XD-Error_FT_CR_03.gif\" ALT=\"\" WIDTH=73 HEIGHT=18 border=\"0\"></a></TD>\n"; echo "<TD><IMG SRC=\"".THEME."images/FT/XD-Error_FT_CR_04.gif\" WIDTH=18 HEIGHT=18 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; echo "<TD COLSPAN=3><IMG SRC=\"".THEME."images/FT/XD-Error_FT_CR_05.gif\" WIDTH=133 HEIGHT=22 ALT=\"\"></TD>\n"; echo "</TR>\n"; echo " </TABLE></td>\n"; } function render_news($subject, $news, $info) { global $locale; echo"<table id=\"Table_01\" width=\"100%\" height=\"99\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_01.jpg\" width=\"59\" height=\"21\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/SH/news_02.jpg\" width=\"100%\" height=\"21\" alt=\"\"></td>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_03.jpg\" width=\"58\" height=\"21\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_04.jpg\" width=\"59\" height=\"22\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/SH/news_05.jpg\" width=\"100%\" height=\"22\" alt=\"\"><b><center><font color=\"#CCCCCC\">$subject</FONT></center></b></td>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_06.jpg\" width=\"58\" height=\"22\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_07.jpg\" width=\"59\" height=\"19\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/SH/news_08.jpg\" width=\"100%\" height=\"19\" alt=\"\"></td>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_09.jpg\" width=\"58\" height=\"19\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td background=\"".THEME."images/SH/news_10.jpg\" width=\"59\" height=\"1\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/SH/news_11.jpg\" width=\"100%\" height=\"1\" alt=\"\">$news<br><br><hr> <img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])." <br><img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")." <a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$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'></a></td>"; echo" <td background=\"".THEME."images/SH/news_12.jpg\" width=\"58\" height=\"1\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_13.jpg\" width=\"59\" height=\"36\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/SH/news_14.jpg\" width=\"100%\" height=\"36\" alt=\"\"></td>"; echo" <td>"; echo" <img src=\"".THEME."images/SH/news_15.jpg\" width=\"58\" height=\"36\" alt=\"\"></td>"; echo" </tr>"; echo"</table>"; } function render_article($subject, $article, $info) { global $locale; echo"<table id=\"Table_01\" width=\"100%\" height=\"72\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/TBL/content_01.jpg\" width=\"21\" height=\"30\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/TBL/content_02.jpg\" width=\"100%\" height=\"30\" alt=\"\"></td>"; echo" <td>"; echo" <img src=\"".THEME."images/TBL/content_03.jpg\" width=\"21\" height=\"30\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td background=\"".THEME."images/TBL/content_04.jpg\" width=\"21\" height=\"15\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/TBL/content_05.jpg\" width=\"100%\" height=\"15\" alt=\"\"><center>$subject</center></br>$article<br><hr><table width='100%' cellpadding='0' cellspacing='0'><tr>"; echo" <td class='infobar'>".newsposter($info)."</td></tr>"; echo" </table></td>"; echo" <td background=\"".THEME."images/TBL/content_06.jpg\" width=\"26\" height=\"15\" alt=\"\"></td>"; echo" </tr>"; echo" <tr>"; echo" <td>"; echo" <img src=\"".THEME."images/TBL/content_07.jpg\" width=\"21\" height=\"27\" alt=\"\"></td>"; echo" <td background=\"".THEME."images/TBL/content_08.jpg\" width=\"100%\" height=\"27\" alt=\"\"></td>"; echo" <td>"; echo" <img src=\"".THEME."images/TBL/content_09.jpg\" width=\"21\" height=\"27\" alt=\"\"></td>"; echo" </tr>"; echo"</table>"; } function opentable($title) { echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"; echo"<tr>"; echo"<td><img name=\"tlc\" src=\"".THEME."images/TBL/content_01.jpg\" width=\"21\" height=\"30\" border=\"0\" alt=\"\"></td> "; echo"<td width=\"100%\" background=\"".THEME."images/TBL/content_02.jpg\"><img name=\"tm\" src=\"themes/Gamer17/images/stu/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>"; echo"<td><img name=\"trc\" src=\"".THEME."images/TBL/content_03.jpg\" width=\"21\" height=\"30\" border=\"0\" alt=\"\"></td>"; echo"</tr>"; echo"<tr>"; echo"<td background=\"".THEME."images/TBL/content_04.jpg\"><img name=\"left\" src=\"".THEME."images/TBL/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>"; echo"<td valign=\"top\" bgcolor=\"#19181D\"><b><center><font color=\"#CCCCCC\">$title</FONT></center></b>"; } function closetable() { echo"</td>"; echo"<td background=\"".THEME."images/TBL/content_06.jpg\"><img name=\"right\" src=\"".THEME."images/TBL/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>"; echo"</tr>"; echo"<tr>"; echo"<td><img name=\"blc\" src=\"".THEME."images/TBL/content_07.jpg\" width=\"21\" height=\"27\" border=\"0\" alt=\"\"></td>"; echo"<td background=\"".THEME."images/TBL/content_08.jpg\"><img name=\"btm\" src=\"themes/Gamer17/images/stu/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>"; echo"<td><img name=\"brc\" src=\"".THEME."images/TBL/content_09.jpg\" width=\"21\" height=\"27\" border=\"0\" alt=\"\"></td>"; echo"</tr></table>"; } function openside($title) { echo"<table width=\"169\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_01.jpg\" width=\"169\" height=\"16\" alt=\"\" /></td>"; echo"</tr>"; echo"<tr>"; echo"<td height=\"22\" background=\"".THEME."images/BLC/XD-Error_blc_02.jpg\"><div align=\"center\"><font face=\"Verdana\" size=\"1\"><font face=\"Verdana\" size=\"1\"><span class=\"style4\">$title</span></font></font></div></td>"; echo"</tr>"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_03.jpg\" width=\"169\" height=\"22\" alt=\"\" /></td>"; echo"</tr>"; echo"<tr>"; echo"<td background=\"".THEME."images/BLC/XD-Error_blc_05.jpg\"><table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">"; echo"<tr>"; echo"<td width=\"13\" height=\"19\" valign=\"top\"><h6> </h6></td>"; echo"<td width=\"141\" valign=\"top\"><h6><span class=\"storytitle style1\"><font face=\"Verdana\" size=\"1\"><span class=\"storytitle style1 style1\"><font class=\"sf\">"; } function closeside() { echo"</font><font face=\"Verdana\" size=\"1\"></font></span></font></span></h6></td>"; echo"<td width=\"11\" valign=\"top\"> </td>"; echo"</tr>"; echo"</table></td>"; echo"</tr>"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_07.jpg\" width=\"169\" height=\"22\" alt=\"\" /></td>"; echo"</tr>"; echo"</table>"; } function opensidex($title,$state="on") { $boxname = str_replace(" ", "", $title); echo"<table width=\"169\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_01.jpg\" width=\"169\" height=\"16\" alt=\"\" /></td>"; echo"</tr>"; echo"<tr>"; echo"<td height=\"22\" background=\"".THEME."images/BLC/XD-Error_blc_02.jpg\"><div align=\"center\"><font face=\"Verdana\" size=\"1\"><font face=\"Verdana\" size=\"1\"><span class=\"style4\">".panelbutton($state,$boxname)."$title</span></font></font></div></td>"; echo"</tr>"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_03.jpg\" width=\"169\" height=\"22\" alt=\"\" /></td>"; echo"</tr>"; echo"<tr>"; echo"<td background=\"".THEME."images/BLC/XD-Error_blc_05.jpg\"><table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">"; echo"<tr>"; echo"<td width=\"13\" height=\"19\" valign=\"top\"><h6> </h6></td>"; echo"<td width=\"141\" valign=\"top\"><h6><span class=\"storytitle style1\"><font face=\"Verdana\" size=\"1\"><span class=\"storytitle style1 style1\"><font class=\"sf\">"; echo"<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n"; } function closesidex() { echo "</div>"; echo"</font><font face=\"Verdana\" size=\"1\"></font></span></font></span></h6></td>"; echo"<td width=\"11\" valign=\"top\"> </td>"; echo"</tr>"; echo"</table></td>"; echo"</tr>"; echo"<tr>"; echo"<td><img src=\"".THEME."images/BLC/XD-Error_blc_07.jpg\" width=\"169\" height=\"22\" alt=\"\" /></td>"; echo"</tr>"; echo"</table>"; } function tablebreak() { echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>"; echo "</td></tr></table>\n"; } ?>
Meine Frage ist also: Wo finde ich die Einstellung, das ich die Seite auf eine bestimmte Pixel Größe festlegen kann?
Also zum Beispiel 1280x800
Oder kann man auch den Header an einer bestimmten Postion anzeigen lassen?
Mit freundlichen Gruß
PADDY -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage
-
$theme_width = "100%";
beeinflusst die breite des themes.
der wert kann entweder in % oder allen anderen in CSS verfügbaren größenangaben sein.
mfg -
Danke erstmal für die schnelle Antwort.
Habe nun festgestellt, das ich für jeden Bereich den Wert festsetzen muss
global $theme_width,$settings; echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 background=\"".THEME."images/HD/XD-Error_HD_02.gif\">\n"; echo " <TR>\n";
Also überall wo Table Width steht, muss ich meine Pixelgröße eintragen...
Da kommt dann die nächste Frage...
Der Header --> http://paddy-2003.4lima.de/themes/XD-Error/images/HD/XD-Error_HD_02.gif
fängt auf der HP ja ganz links an. Ich möchte aber, dass er rechts nach dem Flash erscheint ...
Und die andere Geschichte ist, kann man die komplette Page zentriert darstellen lassen?
@EDIT:
Hab den ganzen Header einfach ins Flash mit eingebunden und scho passt dat auch . . . Die Übergänge noch ein bissle anpassen und dann gehts ^^
Ich danke Dir trotzdem nochmal für die schnelle Antwort :-)
Beitrag zuletzt geändert: 6.4.2010 1:24:05 von paddy-2003 -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage