Flash Header
lima-city → Forum → Programmiersprachen → PHP, MySQL & .htaccess
banner
bestehen
code
dank
einbinden
einstellen
ergebnis
folgenden codes
fusion
header
helfen
hilfe
image
info
jemand
krieg
sagen
setting
sorgen
weissen balken
-
Huhu,
Ich würde gerne für meine Website einen Flash Banner bzw Header einbauen.
Habe schon gegooglet und im php fusion hilfe/support" title="Support">supportforum gesucht, aber nichts funktioniert richtig bzw. ich kriegs irgendwie nicht hin und hoffe, ihr könnt mir helfen
Also versucht habe ich bisher die folgenden Codes in die Theme.php einzubinden, aber ich weis leider nicht wo die genau hin sollen:
echo "<table cellpadding='0' cellspacing='0' border='0' width='1000' id='logo'><tr><td> <object type='application/x-shockwave-flash' data='".THEME."images/logo.swf' width='1000' height='240'> <param name='movie' value='".THEME."images/logo.swf' /><param name='wmode' value='transparent' /></object> </td></tr></table>\n";
und
<center> <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' id='banner_simrace' width='100%' height='80'> <param name='movie' value='".$settings['sitebanner']."'> <param name='quality' value='high'> <param name='bgcolor' value='#000'> <embed name='banner_simrace' src='".$settings['sitebanner']."' quality='high' bgcolor='#000' width='100%' height='80' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'> </embed> </object> </center>
Letzterer sollte wohl dafür sorgen, dass man per Adminmenü->Haupteinstellungen per Bannername den Banner einstellen kann, was aber auch nicht richig funktioniert bei dem Theme (auch nicht bei normalen jpg's :().
Also wenn ich in den Haupteinstellungen den Banner ändere oder einen eigenen unter "banner" im systemadminmenü erstelle, bleibt immer der images/logo.jpg als banner bestehen.
Als Ergebnis bekam ich jedenfalls nur einen weissen Balken durch den gesammten Header und per Admineinstellung ging leider nichts.
Die Theme.php sieht so aus:
<?php if (!defined("IN_FUSION")) { die("Access Denied"); } define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='->' />"); require_once INCLUDES."theme_functions_include.php"; function render_page($license=false) { global $locale, $main_style, $settings, $userdata; echo " <div id='main-page'> <table cellpadding='0' cellspacing='0' border='0' width='100%' class='center'><tr><td> <table cellpadding='0' cellspacing='0' width='100%' id='userbar'><tr><td> <object type='application/x-shockwave-flash' data='".THEME."images/digital_clock.swf' width='350' height='40'> <param name='movie' value='".THEME."images/digital_clock.swf' /><param name='wmode' value='transparent' /> </object></td><td>\n"; if (iMEMBER){ echo "<div class='floatR'>".$locale['global_035']." ".$userdata['user_name']."</div>\n"; }else{ echo "<div class='floatR'><ul><li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li> ".($settings['enable_registration'] ? "<li> | <a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>\n" : ""); echo"</ul></div>\n"; } echo "</td></tr></table>\n"; if ($settings['sitebanner1']) {echo"<table cellpadding='0' cellspacing='0' border='0' id='banner' width='100%'><tr><td> <div>".stripslashes($settings['sitebanner1'])."</div></td></tr></table>\n";} echo "<table cellpadding='0' cellspacing='0' border='0' width='100%' id='p-bkg'><tr><td> <table cellpadding='0' cellspacing='0' border='0' width='100%' id='logostrip'><tr> echo "<table cellpadding='0' cellspacing='0' border='0' width='1000' id='logo'><tr><td> <object type='application/x-shockwave-flash' data='".THEME."images/logo.swf' width='1000' height='240'> <param name='movie' value='".THEME."images/logo.swf' /><param name='wmode' value='transparent' /></object> </td></tr></table>\n"; </tr></table> <table cellpadding='0' cellspacing='0' border='0' width='100%' id='navibkg'><tr><td><center><div id='navi'>".showsublinks(" ")."</div></center></td></tr></table> <table cellpadding='0' cellspacing='0' width='100%' class='main-page $main_style'><tr>\n"; if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; } echo"<td class='main-body' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>\n"; if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; } echo"</tr></table> <table cellpadding='0' cellspacing='0' border='0' width='100%' id='footer' class='center'><tr> <td>".stripslashes($settings['footer']); if (!$license) { echo "<br /><br />\n".showcopyright(); } echo" <br /> Theme conversion by <a href='http://mangee.net'>Mangee</a><br />Theme designed by <a href='http://psd-resources.de/'>Stafis</a> </td></tr></table><div class='p-bkg'> <table cellpadding='0' cellspacing='0' border='0' width='100%' class='spacer'><tr><td><div>".stripslashes($settings['sitebanner2'])."</div></td></tr></table> <table cellpadding='0' cellspacing='0' border='0' width='100%' id='subfooter'><tr> <td><div class=''>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div> <div class=''>".showcounter()."</div> </td></tr></table></div> </td></tr></table></td></tr></table></div>\n"; } function render_news($subject, $news, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%'><tr> <td class='scapmain-left'></td> <td class='scapmain'>".$subject."</td> <td class='scapmain-right'></td> </tr></table> <table width='100%' cellpadding='0' cellspacing='0'><tr> <td class='side-body'>".$news."</td> </tr><tr> <td class='news-footer middle-border center'>\n"; echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']); echo "</td></tr></table> <table cellpadding='0' cellspacing='0' width='100%' class='scapmain-b spacer'><tr> <td><div class='scapmainb'></div></td></tr></table>\n"; } function render_article($subject, $article, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%'><tr> <td class='scapmain-left'></td> <td class='scapmain'>".$subject."</td> <td class='scapmain-right'></td> </tr></table> <table width='100%' cellpadding='0' cellspacing='0'><tr> <td class='side-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td> </tr><tr> <td class='news-footer center'>\n"; echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</td></tr></table> <table cellpadding='0' cellspacing='0' width='100%' class='scapmain-b spacer'><tr> <td><div class='scapmainb'></div></td></tr></table>\n"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%'><tr> <td class='scapmain-left'></td> <td class='scapmain'>".$title."</td> <td class='scapmain-right'></td> </tr></table> <table cellpadding='0' cellspacing='0' width='100%'><tr> <td class='side-body'>\n"; } function closetable() { echo "</td></tr></table> <table cellpadding='0' cellspacing='0' width='100%' class='scapmain-b spacer'><tr> <td><div class='scapmainb'></div></td></tr></table>\n"; } function openside($title, $collapse = false, $state = "on") { global $panel_collapse; $panel_collapse = $collapse; echo "<table cellpadding='0' cellspacing='0' width='100%'><tr> <td class='scapmain-left'></td> <td class='scapmain'>$title</td>\n"; if ($collapse == true) { $boxname = str_replace(" ", "", $title); echo "<td class='scapmain-right'>".panelbutton($state, $boxname)."</td>\n"; } echo "<td class='scapmain-right'></td> </tr></table> <table cellpadding='0' cellspacing='0' width='100%'><tr> <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></tr></table> <table cellpadding='0' cellspacing='0' width='100%' class='scapmain-b spacer'><tr> <td><div class='scapmainb'></div></td> </tr></table>\n"; } ?>
Wäre echt super, wenn mir jemand sagen kann, welchen Code und vor allem wohin ich ihn einbinden soll^^
Danke schonmal für eure Hilfe =)
Fully -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage
-
Ich würde sagen zwischen body und /body und dort ganz oben !
-
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage