Flash Banner statt logo.gif

Begonnen von BlackMaiden, 28 März 2005, 22:59:11

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

BlackMaiden

hallo. ich habe wieder ein problemchen.
ich möchte gerne anstatt des logo.gif einen falsh banner einsetzen, leider komme ich hier nicht wirklich weiter, da ich kein php kann :-[
wäre jemand so lieb und könnte mir sagen, was ich hier umändern muss?


************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks("left");               */
/************************************************************/

function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $admin, $prefix, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" background=\"themes/MFJ_maxi_Icey/images/main-bg.gif\">\n\n";
       echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n"
        ."<tr>\n";
                       echo "<td align=\"center\" valign=\"top\" width=\"65%\"><a href=\"index.php\"><img src=\"themes/MFJ_maxi_Icey/images/logo.gif\" align=\"center\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
                       
        ."</tr></table>\n";
            if (is_admin($admin)) {       
        echo "<td align=\"center\" bgcolor=\"#CACACA\" colspan=\"4\"><br><center><a href=\"admin.php\">Admin</a>\n";
 
  $res=sql_query("select * from ${prefix}_queue", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=submissions\">News: $num</a>\n";  
  $res=sql_query("select * from ${prefix}_links_newlink", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=Links\">Links: $num</a>\n";  
  $res=sql_query("select * from ${prefix}_downloads_newdownload", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=downloads\">Downloads: $num</a>\n";  
  $res=sql_query("select * from ${prefix}_gallery_pictures_newpicture", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=GallAdmin\">Bilder: $num</a>\n";  
  $res=sql_query("select * from ${prefix}_events_queue", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=CalendarAdmin\">Termine: $num</a>\n";  
  $res=sql_query("select * from ${prefix}_nukebook_queue", $dbi);
  $num = sql_num_rows($res, $dbi);
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=NukebookAdmin\">Gästebuch: $num</a>\n";
 
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=who\">Online</a>\n";
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=hreferer\">Referer</a>\n";
  echo "&nbsp;|&nbsp;<a href=\"admin.php?op=logout\">Logout</a>\n\n";
  echo "</font></td>";
} else {
echo "";
}
        echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#F3F4F7\">\n"
        ."<tr>\n"
        ."<td colspan=\"4\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."<tr valign=\"middle\" bgcolor=\"#ffffff\">\n"
    ."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/MFJ_maxi_Icey/images/topnav-left.gif\"></td>\n"
        ."<td width=\"15%\" background=\"themes/MFJ_maxi_Icey/images/topnav-bg.gif\" nowrap><font class=\"content\" color=\"#363636\">\n";
    if ($username == "Anonymous") {
        echo "&nbsp;&nbsp;<font color=\"#ffffff\"><a href=\"modules.php?name=Your_Account\">Login</a></font>\n";
    } else {
        echo "&nbsp;&nbsp;Wilkommen &nbsp;$username!";
    }
    echo "</font></td>\n"
        ."<td align=\"center\" height=\"20\" width=\"70%\" background=\"themes/MFJ_maxi_Icey/images/topnav-bg.gif\"><font class=\"content\">\n"
        ."<A href=\"/\">Startseite</a>\n"
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=Topics\">Themen</a>\n"
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=Downloads\">Downloads</a>\n"
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=eBoard\">Forum</a>\n"
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=Guestbook\">Gästebuch</a>\n"
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=FAQ\">FAQ</a>\n"
       
       
        ."&nbsp;&middot;&nbsp;\n"
        ."<A href=\"modules.php?name=Your_Account&op=logout\">Abmelden</a>\n"
        ."</font>\n"
        ."</td>\n"
        ."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/MFJ_maxi_Icey/images/topnav-left.gif\"></td>\n"
        ."<td align=\"right\" width=\"150\" background=\"themes/MFJ_maxi_Icey/images/topnav-bg.gif\"><font class=\"content\">\n"
        ."\n\n"
        ."<!--   // Array ofmonth Names\n"
        ."var monthNames = new Array( \"Januar\",\"Februar\",\"März\",\"April\",\"Mai\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"Dezember\");\n"
        ."var now = new Date();\n"
        ."thisYear = now.getYear();\n"
        ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
        ."document.write(now.getDate()+ \".  \" + monthNames[now.getMonth()] + \"   \" + thisYear);\n"

        ."// -->\n\n"
        ."</font>&nbsp;</td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td bgcolor=\"#8F9CAC\" colspan=\"5\"><width=\"1\" height=\"3\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td bgcolor=\"#180046\" colspan=\"5\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td bgcolor=\"#180046\" colspan=\"5\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
        ."<!----- Begin Main Content Table ----->\n"
        ."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
        ."<td width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
        ."<td width=\"175\" valign=\"top\">\n";
    blocks("left");
    echo "</td><td width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
        ."<td bgcolor=\"#ffffff\"><width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
        ."<td width=\"95%\">\n";
           include ("themes/MFJ_maxi_Icey/cblock.php");
}



der flash banner code:


  <param name="movie" value="logo.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#FFFFFF">
  <embed name="logo" src="logo.swf" quality="high" bgcolor="#FFFFFF"
    width="759" height="59"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>



:-*

munzur



."<PARAM NAME=movie VALUE=\"themes/munzur/images/logo.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src=\"themes/munzur/images/logo.swf\" quality=high bgcolor=#FFFFFF WIDTH=\"950\" HEIGHT=\"90\" NAME=\"logo\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n"

"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .

BlackMaiden

hi, danke für deine antwort.

mein code wurde oben nicht richtig angezeigt, aber wenn ich ihn auch so wie du schreibst, mit dem punkt davor, klappt es trotzdem nicht, es kommt immer ein parse error.



."<PARAM NAME=movie VALUE=\"/themes/MFJ_maxi_Icey/images/logo.swf\">

<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED

src=\"/themes/MFJ_maxi_Icey/images/logo.swf\" quality=high

bgcolor=#FFFFFF WIDTH=\"759\" HEIGHT=\"59\" NAME=\"logo\" ALIGN=\"\"

TYPE=\"application/x-shockwave-flash\"

PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n"




wo genau muss ich diesen code den platzieren?

wenn ich ihn versuche in diese zeile zu intrigieren oder die zeile komplett damit fülle, kommt der besagte parse error:



                       echo "<td align=\"center\" valign=\"top\" width=\"65%\"><a href=\"index.php\"><img src=\"themes/MFJ_maxi_Icey/images/logo.gif\" align=\"center\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"



munzur

Hi!

Liegt das Flashfile bei dir denn überhaupt hier: themes/MFJ_maxi_Icey/images/logo.swf ?


L.g
"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .

BlackMaiden

hi

ja, tut es.
wärst du so lieb und könntest mir den genauen code hier reinposten, wie das ganze im theme.php auszusehen hat? vielleicht mache ich ja einfach nur einen dummen fehler :-[
p.s. ich kann kein php

munzur

[php]

function themeheader() {
    global $banners;
    echo "<body bgcolor=\"#BFC7D7\" text=\"#000000\" link=\"0000ff\">"
   ."<br>";
    if ($banners) {
   include("banners.php");
   echo "<br>";
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"0056a7\" width=\"95\" align=\"center\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">\n"
   ."<tr><td width=\"100%\" height=\"60\" bgcolor=\"#BFC7D7\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\">\n"
    ."<PARAM NAME=movie VALUE=\"themes/munzur/images/logo.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src=\"themes/munzur/images/logo.swf\" quality=high bgcolor=#FFFFFF WIDTH=\"950\" HEIGHT=\"90\" NAME=\"logo\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n"
   ."</td><td align=\"right\"></td></tr></table></td></tr>\n"
   ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#BFC7D7'>\n"
;


"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .