Wer ist hier? 1 Gäste
theme zentrieren
|
|
Jacky |
Geschrieben am 08.03.2009 00000003 19:02
|
Mitglied ![]() Beiträge: 145 Registriert am: 14.09.08 Fusioneer: 15 years 11 months 2 weeks 17 days 3 hours 27 minutes 42 seconds |
Kann mir jemand helfen mein theme zu zentrieren? Der dicke weiße rand soll auf beiden seiten gleich sein und nicht wie jetzt nur auf einer seite. Bekommen den center tag irgendwei net an die richtige stelle eingefügt. www.powerjugend-mardorf.de Hier meine theme.php [geshi=php]<?php if (!defined("IN_FUSION")) { die("Access Denied"); } require_once INCLUDES."theme_functions_include.php"; define("THEME_BULLET", "<span class='bullet'>·</span>"); define("THEME_WIDTH", "962"); function render_page($license=false) { global $settings, $main_style, $locale; //Header echo "<table width='".THEME_WIDTH."' id='table1' cellspacing='0' cellpadding='0'>\n"; echo "<tr>\n"; echo "<td><img border='0' src='".THEME."images/header.gif' width='962' height='245' alt='header' /></td>\n"; echo "</tr>\n"; echo "</td>\n</tr>\n</table>\n"; //datum anfang $timestamp = time(); $datum = date("d.m.Y H:i:s", $timestamp); //datum ende //header navi anfang echo '<div id="smoothmenu1" class="ddsmoothmenu"> <ul> <li><a href="'.BASEDIR.'news.php">Startseite</a></li> <li><a href="#">Community</a> <ul> <li><a href="'.BASEDIR.'viewpage.php?page_id=14">Was geht am WE??</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=15">Bild der Woche</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=16">Spruch der Woche</a></li> </ul> </li> <li><a href="'.BASEDIR.'photogallery.php">Fotos</a></li> <li><a href="#">Features</a> <ul> <li><a href="'.BASEDIR.'viewpage.php?page_id=45">Videos</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=39">Wetter</a></li> <li><a href="'.BASEDIR.'infusions/witze_datenbank/witze.php">Witze</a></li> <li><a href="http://www.muerder.de/STOP.htm">**** und Gewalt</a></li> <li><a href="'.BASEDIR.'infusions/fsc_lottosystem_panel/fsc_lottosystem.php">Lotto Spielen</a></li> </ul> </li> <li><a href="'.BASEDIR.'infusions/tell_a_friend/tell_a_friend.php">Freunde Einladen!</a></li> <li><a href="#">Spiele</a> <ul> <li><a href="'.BASEDIR.'infusions/varcade/index.php#">Arcade Spiele</a></li> <li><a href="'.BASEDIR.'infusions/ftg_game_menu/game_menu.php">Games Menü</a> </ul> </li> </ul> <br style="clear: left" /> </div>'; echo "$datum"; //header navi ende //Content echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='$main_style'>\n<tr>\n"; if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; } echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>"; if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; } echo "</tr>\n</table>\n"; //Footer echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n"; echo "<td class='sub-header-left'></td>\n"; echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n"; echo "<td align='right' class='sub-header'>".showcounter()."</td>\n"; echo "<td class='sub-header-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n"; echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']); if (!$license) { echo "\n".showcopyright(); } echo "</td>\n</tr>\n</table>\n"; } function render_news($subject, $news, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$subject."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n"; echo "<td class='main-body middle-border'>".$news."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td align='center' class='news-footer middle-border'>\n"; echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']); echo "</td>\n"; echo "</tr><tr>\n"; echo "<td style='height:0px;background-color:#ffa401;'></td>\n"; echo "</tr>\n</table>\n"; } function render_article($subject, $article, $info) { echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$subject."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n"; echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td align='center' class='news-footer'>\n"; echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</td>\n</tr>\n</table>\n"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$title."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='main-body'>\n"; } function closetable() { echo "</td>\n"; echo "</tr><tr>\n"; echo "<td style='height:0px;background-color:#ffa401;'></td>\n"; echo "</tr>\n</table>\n"; } function openside($title, $collapse = false, $state = "on") { global $panel_collapse; $panel_collapse = $collapse; echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='scapmain-left'></td>\n"; echo "<td class='scapmain'>$title</td>\n"; if ($collapse == true) { $boxname = str_replace(" ", "", $title); echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n"; } echo "<td class='scapmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='side-body'>\n"; if ($collapse == true) { echo panelstate($state, $boxname); } } function closeside() { global $panel_collapse; if ($panel_collapse == true) { echo "</div>\n"; } echo "</td>\n</tr>\n</table>\n"; echo "<br/>"; } ?>[/geshi] |
|
|
SC-Ad-Bot | Advertisement |
| |
Gr@n@dE |
Geschrieben am 08.03.2009 00000003 19:07
|
![]() Seiten Administrator ![]() Beiträge: 851 Registriert am: 09.09.08 Fusioneer: 15 years 11 months 3 weeks 21 days 22 hours 25 minutes 8 seconds |
Versuch es mal so: [geshi=php]<?php if (!defined("IN_FUSION")) { die("Access Denied"); } require_once INCLUDES."theme_functions_include.php"; define("THEME_BULLET", "<span class='bullet'>·</span>"); define("THEME_WIDTH", "962"); function render_page($license=false) { global $settings, $main_style, $locale; echo "<div align='center'>"; //Header echo "<table width='".THEME_WIDTH."' id='table1' cellspacing='0' cellpadding='0'>\n"; echo "<tr>\n"; echo "<td><img border='0' src='".THEME."images/header.gif' width='962' height='245' alt='header' /></td>\n"; echo "</tr>\n"; echo "</td>\n</tr>\n</table>\n"; //datum anfang $timestamp = time(); $datum = date("d.m.Y H:i:s", $timestamp); //datum ende //header navi anfang echo '<div id="smoothmenu1" class="ddsmoothmenu"> <ul> <li><a href="'.BASEDIR.'news.php">Startseite</a></li> <li><a href="#">Community</a> <ul> <li><a href="'.BASEDIR.'viewpage.php?page_id=14">Was geht am WE??</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=15">Bild der Woche</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=16">Spruch der Woche</a></li> </ul> </li> <li><a href="'.BASEDIR.'photogallery.php">Fotos</a></li> <li><a href="#">Features</a> <ul> <li><a href="'.BASEDIR.'viewpage.php?page_id=45">Videos</a></li> <li><a href="'.BASEDIR.'viewpage.php?page_id=39">Wetter</a></li> <li><a href="'.BASEDIR.'infusions/witze_datenbank/witze.php">Witze</a></li> <li><a href="http://www.muerder.de/STOP.htm">**** und Gewalt</a></li> <li><a href="'.BASEDIR.'infusions/fsc_lottosystem_panel/fsc_lottosystem.php">Lotto Spielen</a></li> </ul> </li> <li><a href="'.BASEDIR.'infusions/tell_a_friend/tell_a_friend.php">Freunde Einladen!</a></li> <li><a href="#">Spiele</a> <ul> <li><a href="'.BASEDIR.'infusions/varcade/index.php#">Arcade Spiele</a></li> <li><a href="'.BASEDIR.'infusions/ftg_game_menu/game_menu.php">Games Menü</a> </ul> </li> </ul> <br style="clear: left" /> </div>'; echo "$datum"; //header navi ende //Content echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='$main_style'>\n<tr>\n"; if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; } echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>"; if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; } echo "</tr>\n</table>\n"; //Footer echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n"; echo "<td class='sub-header-left'></td>\n"; echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n"; echo "<td align='right' class='sub-header'>".showcounter()."</td>\n"; echo "<td class='sub-header-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n"; echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']); if (!$license) { echo "\n".showcopyright(); } echo "</td>\n</tr>\n</table>\n"; echo "</div>"; } function render_news($subject, $news, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$subject."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n"; echo "<td class='main-body middle-border'>".$news."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td align='center' class='news-footer middle-border'>\n"; echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']); echo "</td>\n"; echo "</tr><tr>\n"; echo "<td style='height:0px;background-color:#ffa401;'></td>\n"; echo "</tr>\n</table>\n"; } function render_article($subject, $article, $info) { echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$subject."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n"; echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td align='center' class='news-footer'>\n"; echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</td>\n</tr>\n</table>\n"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='capmain-left'></td>\n"; echo "<td class='capmain'>".$title."</td>\n"; echo "<td class='capmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='main-body'>\n"; } function closetable() { echo "</td>\n"; echo "</tr><tr>\n"; echo "<td style='height:0px;background-color:#ffa401;'></td>\n"; echo "</tr>\n</table>\n"; } function openside($title, $collapse = false, $state = "on") { global $panel_collapse; $panel_collapse = $collapse; echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='scapmain-left'></td>\n"; echo "<td class='scapmain'>$title</td>\n"; if ($collapse == true) { $boxname = str_replace(" ", "", $title); echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n"; } echo "<td class='scapmain-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n"; echo "<td class='side-body'>\n"; if ($collapse == true) { echo panelstate($state, $boxname); } } function closeside() { global $panel_collapse; if ($panel_collapse == true) { echo "</div>\n"; } echo "</td>\n</tr>\n</table>\n"; echo "<br/>"; } ?>[/geshi] Gruß Ralf
__________________________________ KEIN Support per Mail, ICQ oder PN ! |
|
|
Jacky |
Geschrieben am 08.03.2009 00000003 19:25
|
Mitglied ![]() Beiträge: 145 Registriert am: 14.09.08 Fusioneer: 15 years 11 months 2 weeks 17 days 3 hours 27 minutes 42 seconds |
Danke hat geklappt!!! |
|
Springe ins Forum: |
Ähnliche Themen
Thema | Forum | Antworten | Letzter Beitrag |
---|---|---|---|
Theme | Projekt sucht Entwickler... | 1 | 04.11.2015 00000011 21:33 |
FP Crisp Ice Theme 1.00 | Allgemeine Support Fragen | 5 | 02.04.2015 00000004 08:31 |
Theme größe geändert mit einem fehler | Allgemeine Support Fragen | 2 | 31.03.2015 00000003 08:26 |
Theme im Facebook style | Infusionen | 1 | 08.12.2014 00000012 17:25 |
Theme Schriftfarbe Ändern | Grafik und Design | 4 | 11.10.2013 00000010 17:25 |