View Single Post
  #4 (permalink)  
Old 03-14-2003, 11:29 PM
Martin Martin is offline
Senior Member
 
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
Back up your file first, then replace all the code from your post with this. Put your swf file in your theme's images folder. Find the code I added and change the name of the swf file to yours. (find file-name.swf in my code)
Code:
function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body bgcolor=\"#DEDEE6\" text=\"\" link=\"\" vlink=\"\" alink=\"\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n"
   ."<table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" border=\"0\" bgcolor=\"#9999cc\"><tr><td align=\"right\">\n";
    if ($banners) {
   include("banners.php");
    }
    echo "</td></tr></table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#DEDEE6\"><tr>\n"
   ."<td bgcolor=\"#DEDEE6\"><IMG src=\"themes/BlueBump/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td></tr></table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#BCBCCB\">\n"
   ."<tr>\n"
   ."<td align=\"center\"><embed src=\"themes/BlueBump/images/head.swf\" quality=\"high\" width=\"100%\" height=\"95\"></embed></td>\</table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#7373A4\" background=\"themes/BlueBump/images/headerline.gif\" height=\"30\">\n"
   ."<tr valign=\"middle\"><td><IMG src=\"themes/BlueBump/images/pixel.gif\" width=\"24\" height=\"30\" border=\"0\" hspace=\"0\"></td><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"themes/BlueBump/images/toplight_bg.gif\"><tr><td width=\"4\" height=\"30\"><img src=\"themes/BlueBump/images/toplight_left.gif\" width=\"4\" height=\"30\"></td>\n"
   ."<td nowrap class=\"artsubhead\" align=\"left\">\n";
    if ($username == "Anonymous") {
   echo "<a href=\"user.php\">Login/Create</a> an account\n | ";
    } else {
   echo " Welcome $username! | <a href=\"user.php?op=logout\">logout</a> | ";
    }
    echo "<script type=\"text/javascript\">\n"
        ."<!--   // Array ofmonth Names\n"
        ."var monthNames = new Array( \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n"
        ."var now = new Date();\n"
        ."thisYear = now.getYear();\n"
        ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
        ."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear) ;\n"
        ."// -->\n"
        ."</script></td><td width=\"4\" height=\"30\"><img src=\"themes/BlueBump/images/toplight_right.gif\" width=\"4\" height=\"30\"></td></tr></table>\n"
   ."<td align=\"left\" height=\"30\" width=\"70%\"><IMG src=\"themes/BlueBump/images/pixel.gif\" width=\"24\" height=\"30\" border=\"0\" hspace=\"0\"><A href=\"/\"><IMG src=\"themes/BlueBump/images/home.gif\" width=\"24\" height=\"30\" alt=\"Home\" border=\"0\" hspace=\"5\"></a><A href=\"topics.php\"><IMG src=\"themes/BlueBump/images/themes.gif\" width=\"24\" height=\"30\" alt=\"Topics\" border=\"0\" hspace=\"5\"></a><A href=\"download.php\"><IMG src=\"themes/BlueBump/images/downloads.gif\" width=\"24\" height=\"30\" alt=\"Downloads\" border=\"0\" hspace=\"5\"><A href=\"user.php\"><IMG src=\"themes/BlueBump/images/account.gif\" width=\"24\" height=\"30\" alt=\"Your Account\" border=\"0\" hspace=\"5\"></a><A href=\"submit.php\"><IMG src=\"themes/BlueBump/images/submitnews.gif\" width=\"24\" height=\"30\" alt=\"Submit News\" border=\"0\" hspace=\"5\"></a><A href=\"top.php\"><IMG src=\"themes/BlueBump/images/topten.gif\" width=\"24\" height=\"30\" alt=\"Top 10\" border=\"0\" hspace=\"5\"></a></td>\n"
        ."<td align=\"right\" width=\"10%\"></td>\n"
        ."</tr>\n"
        ."</table><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"\" align=\"center\" background=\"themes/BlueBump/images/under_hl.gif\" height=\"15\"><tr>\n"
   ."<td><IMG src=\"themes/BlueBump/images/under_hl.gif\" height=\"15\" alt=\"\" border=\"0\" hspace=\"0\"></td></tr></table>\n"
   ."\n"
   ."<table width=\"95%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#DEDEE6\" align=\"center\"><tr valign=\"top\">\n"
   ."<td bgcolor=\"#DEDEE6\" width=\"150\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/BlueBump/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
If this doesnt work let us know and maybe someone else can help.
Reply With Quote