Oh heck..here's how to do it.
Open the theme.php for your theme
Look under the Function themeheader. You should see a couple lines like this
|
Code:
|
if ($banners == 1) {
include("banners.php");} |
CUT those lines and PASTE them right below this in the Function themeheader.
MAKE a backup of your original theme.php file in case you mess up.
Your entire Function themeheader in your theme.php should now look something like this
|
Code:
|
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#31404E\" text=\"#FFFFCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
$topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
} else {
$theuser = "Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/DarkBlue/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/DarkBlue/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
if ($banners == 1) {
include("banners.php");}
} |
mikem