close× Call Us +49 (1805) 01 29 59

Heiseclan
Thread Author: DjSchmod
Thread ID: 2405
Thread Info
Es gibt 7 Beiträge zu diesem Thema, und es wurde 2161 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Swf als Header
DjSchmod
Hallo ich versuche schon seit ein paar stunden eine swf datei als header einzubetten aber mir gelingt es nicht darum wende ich mich an euch wäre super wenn mir einer helfen könnte der code der zu sehen ist der ursprüngliche code

//Header
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
   echo "<td class='full-header'></td>\n";
   echo "</tr>\n</table>\n";


und das war mein werk

//Header
   echo "<div align='center'>
      <object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='1000' height='200'>
      <param name='movie' value='http://www.seite.de/themes/Game.E/images/head.swf'>
      <param name='quality' value='High'>
      <param name='wmode' value='transparent'>
      <embed src='http://www.seite.de/themes/Game.E/images/head.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='obj1' width='1000' height='200' quality='High' wmode='transparent'></object>


Danke schonmal im vorraus
 
SC-Ad-Bot
 
jan

<a href="http://www.phpfusion-supportclub.de/" title="PHPFusion-SupportClub" alt="PHPFusion-SupportClub" target="_blank"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="468" height="60"> <param name="movie" value="http://www.phpfusion-supportclub.de/images/linkus/banner1.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed src="http://www.phpfusion-supportclub.de/images/linkus/banner1.swf" quality="high" wmode="transparent" width="468" height="60" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed></object></a>


das der werbe code für ein flash (swf) datei von unserem link us.

ersetze die links durch deine und es müsste klappen.

Lg Jan
www.agitelo.de/sig.png
 
DjMicha1985
Da kleine hilfe



//Header
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
<td><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://active.macromedia.com/flash10/cabs/swflash.cab#version=10,0,0,0'
id='banner_simrace' width='100%' height='100'>
<param name='movie' value='".IMAGES."".$settings['sitebanner']."'>
<param name='quality' value='high'>
<param name='wmode' value='transparent'>
<param name='bgcolor' value=''>
<embed name='banner_simrace' src='".IMAGES."".$settings['sitebanner']."' quality='high' '
width='540%' height='80'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' wmode='transparent'>
</embed>
</object></td>";
   echo "</tr>\n</table>\n";
?>


muss denn in die Theme.php. Dann im admin einfach flashheader reinschreiben. Hab mal rot gemacht was in deiner Theme stehen müsste.

Edit:// Ups Jan war schneller, musst dir halt eins aussuchen
Bearbeitet von DjMicha1985 am 10.02.2010 00000002 21:50
 
DjSchmod
Also danke erstma aber beides geht nicht oder ich mache was falsch

ich schreibe euch mal die theme.php mit rein hier


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "1000");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";

function thesublinks($sep="&middot;",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}            
$i++;
}
}
if ($i != 0) { return $res; } else { return "&nbsp;"; }
}
function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
   echo "<td class='full-header'></td>\n";
   echo "</tr>\n</table>\n";
   
//sublinks css
   echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td>";
   echo "<div id='altlinkler'>";
   echo "<ul><li>".thesublinks("</li>\n<li>");
   echo "</li></ul><div class='clear-both'>&nbsp;</div></div>";
   echo "</td></tr></table>\n";
   
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' 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."' align='center'>\n<tr>\n";
   echo "<td align='left' class='bottom-footer'><br />".stripslashes($settings['footer']);
   if (!$license) { echo "GreenGarden by <a href='http://www.phpfusionstyle.com/news.php'>PHPfusionStyle.com</a>
<br />\n".showcopyright(); }
   echo "<br /><br />\n";
   echo "</td>\n";
   echo "</tr>\n</table>\n";

}

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

   echo "<br /><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='right' class='news-footer'>\n";
   echo newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";
   

}


function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleopts($info,"&middot;").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'>".$title."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {
   echo "</td>\n</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%' class='border'>\n<tr>\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 "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
}
?>
 
DjMicha1985
hab da wo was vergessen zu erwähnen. Das swf muss im images-ordner sein
 
DjSchmod
ja da ist die datei drin
 
DjMicha1985
Und nochmal


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "1000");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";

function thesublinks($sep="&middot;",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}           
$i++;
}
}
if ($i != 0) { return $res; } else { return "&nbsp;"; }
}
function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header
      echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
<td><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://active.macromedia.com/flash10/cabs/swflash.cab#version=10,0,0,0'
id='banner_simrace' width='100%' height='100'>
<param name='movie' value='".$settings['sitebanner']."'>
<param name='quality' value='high'>
<param name='wmode' value='transparent'>
<param name='bgcolor' value=''>
<embed name='banner_simrace' src='".$settings['sitebanner']."' quality='high' '
width='540%' height='80'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' wmode='transparent'>
</embed>
</object></td>";
   echo "</tr>\n</table>\n";
   
//sublinks css
   echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td>";
   echo "<div id='altlinkler'>";
   echo "<ul><li>".thesublinks("</li>\n<li>");
   echo "</li></ul><div class='clear-both'>&nbsp;</div></div>";
   echo "</td></tr></table>\n";
   
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' 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."' align='center'>\n<tr>\n";
   echo "<td align='left' class='bottom-footer'><br />".stripslashes($settings['footer']);
   if (!$license) { echo "GreenGarden by <a href='http://www.phpfusionstyle.com/news.php'>PHPfusionStyle.com</a>
<br />\n".showcopyright(); }
   echo "<br /><br />\n";
   echo "</td>\n";
   echo "</tr>\n</table>\n";

}

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

   echo "<br /><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='right' class='news-footer'>\n";
   echo newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";
   

}


function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleopts($info,"&middot;").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'>".$title."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {
   echo "</td>\n</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%' class='border'>\n<tr>\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 "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
}
?>

Bearbeitet von DjMicha1985 am 10.02.2010 00000002 22:16
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
Navigation im Header Allgemeine Support Fragen 6 08.08.2013 00000008 04:20
Header link? Allgemeine Support Fragen 3 27.06.2013 00000006 04:23
header wechseln hilfe? Allgemeine Support Fragen 2 26.06.2013 00000006 13:45
mein erstellter header Grafik und Design 8 27.12.2012 00000012 19:08
Header zentrieren Grafik und Design 8 03.04.2012 00000004 18:57