Autor mongfevned
Datum 07.08.2009 14:18
Beiträge:

Hi!

Wiedermal hab ich eine Frage. Ich verwende das Theme pxlartist (umgebaut). Ich habe heute ein SWF als banner Rotation eingebaut und in der theme.php definiert. Solange ich auf der Startseite bleibe wirds normal angezeigt - gehe ich auf eine andere seite (forum, gästebuch etc) verschwindet das swf aus dem header und nix wird mehr angezeigt. (Die website: www.mnsg.at)

hier mal die codes:

original:

function themeheader() {
 global $opnConfig;

 echo '<body>' . _OPN_HTML_NL;
 echo '<div class="centertag"><table width="980" class="maintable" cellspacing="0" cellpadding="0"><tr>' . _OPN_HTML_NL
  . '<td><img src="' . $opnConfig['opn_url'] . '/themes/pxlartist/images/header.jpg" width="980" height="200" alt="www.pxlartist.de" /></td>'
  . '</tr><tr><td class="maintable2">' . _OPN_HTML_NL
  . '<table class="tabletransp8" cellpadding="0" cellspacing="0">'
  . '<tr><td>' . _OPN_HTML_NL;

 makenav_box_build();

 echo '</td></tr></table></td></tr></table>' . _OPN_HTML_NL;

 $opnConfig['opnOutput'] -> show_banner();

 echo '<table width="980" class="maintable" cellspacing="0" cellpadding="0"><tr>';

 if ($opnConfig['opnOption']['show_lblock'] == 1) {
  echo '<td width="200" valign="top" class="tabletransp5">';
  make_box ('left', 'side');
  echo '</td><td width="2"><img src="' . $opnConfig['opn_url'] . '/themes/pxlartist/images/space.gif" width="2" height="1" class="imgtag" alt="" />'
   . '</td>';
 }
 echo '<td width="100%" valign="top" class="tabletransp2">';

 if ($opnConfig['opnOption']['show_middleblock'] == 1) {
  make_box ('left', 'middle');
 }
}


geändert:

function themeheader() {
 global $opnConfig;

 echo '<body>' . _OPN_HTML_NL;
 echo '<div class="centertag"><table width="980" class="maintable" cellspacing="0" cellpadding="0"><tr>' . _OPN_HTML_NL
  . '<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
        id="header" width="980" height="200">
        <param name="movie" value="header.swf">
<param name="quality" value="high">
<param NAME="wmode" VALUE="transparent">
<embed src="header.swf"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
          name="header" width="980" height="200"
</embed>
</object>
</td>'
  . '</tr><tr><td class="maintable2">' . _OPN_HTML_NL
  . '<table class="tabletransp8" cellpadding="0" cellspacing="0">'
  . '<tr><td>' . _OPN_HTML_NL;

 makenav_box_build();

 echo '</td></tr></table></td></tr></table>' . _OPN_HTML_NL;

 $opnConfig['opnOutput'] -> show_banner();

 echo '<table width="980" class="maintable" cellspacing="0" cellpadding="0"><tr>';

 if ($opnConfig['opnOption']['show_lblock'] == 1) {
  echo '<td width="200" valign="top" class="tabletransp5">';
  make_box ('left', 'side');
  echo '</td><td width="2"><img src="' . $opnConfig['opn_url'] . '/themes/pxlartist/images/space.gif" width="2" height="1" class="imgtag" alt="" />'
   . '</td>';
 }
 echo '<td width="100%" valign="top" class="tabletransp2">';

 if ($opnConfig['opnOption']['show_middleblock'] == 1) {
  make_box ('left', 'middle');
 }
}



wo hab ich da den fehler drin?



danke schonmal und liebe grüße, mong



Autor Gast
Datum 07.08.2009 16:06
Beiträge: Servus

Wenn ich das richtig sehe, dann findet er das SWF nicht.

Gib doch mal in der theme.php den ganzen Pfad zu deiner header SWF ein.

Also komplett mit......



<param name="movie" value="http://www.mnsg.at/header.swf">
<param name="quality" value="high">
<param NAME="wmode" VALUE="transparent">
<embed src="http://www.mnsg.at/header.swf"......



Flash





Autor mongfevned
Datum 07.08.2009 17:01
Beiträge: vielen dank, das war es

lg, mong




Diese Seite drucken
Diese Seite schließen

Dieser Artikel kommt von: OpenPHPNuke - das Open Source CMS

http://www.openphpnuke.info/