View Single Post
  #3 (permalink)  
Old 03-14-2003, 11:12 PM
Evil Evil is offline
Junior Member
 
Join Date: Dec 2002
Posts: 54
Well i dont no where to put it i guess i tried but could not figure it out. here is the header info that is in the theme.php file..

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>\n"
	."<a href=\"index.php\"><img src=\"themes/BlueBump/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
	."<td align=\"center\" class=\"menuehead\">\n"
	."<center><form action=\"search.php\" method=\"post\">"._SEARCH." \n"
	."<input type=\"text\" name=\"query\" size=\"14\"></form></center></td>\n"
	."<td align=\"center\" class=\"menuehead\">\n"
	."<center><form action=\"search.php\" method=\"get\">"._TOPICS." \n";
    $toplist = mysql_query("select topicid, topictext from $prefix"._topics." order by topictext");
    echo "<select name=\"topic\"onChange='submit()'>\n"
	."<option value=\"\">"._ALLTOPICS."</option>\n";
    while(list($topicid, $topics) = mysql_fetch_row($toplist)) {
    if ($topicid==$topic) { $sel = "selected "; }
	echo "<option $sel value=\"$topicid\">$topics</option>\n";
	$sel = "";
    }

    echo "</select></form></center></td>\n"
	."</tr></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";
Reply With Quote