Would someone who understands this better than me take a look at the code and see if they can make sense of it. I'm not sure what you need, but here is the header code. Keep in mind that I am modifying existing code. There could be something wrong with the table structure that I am not able to figure out.
Code
function themeheader()
{
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
echo "</head>\n"
."<body bgcolor=\"#000000\" text=\"#ffffff\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0><br>\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\" height=\"11\" valign=\"bottom\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$GLOBALS[bgcolor1]\">\n"
."<tr><td bgcolor=\"$GLOBALS[bgcolor1]\"><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr>\n";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$GLOBALS[bgcolor1]\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"130\" bgcolor=\"$GLOBALS[bgcolor1]\" valign=\"top\">\n";
blocks('left');
echo "</td><td><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
if(pnModAvailable('Banners'))
{
echo"<center>";
pnBannerDisplay();
echo"</center><br>";
}
/*
if ($GLOBALS['index'] == 1) {
blocks('centre');
}
*/
}
{
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
echo "</head>\n"
."<body bgcolor=\"#000000\" text=\"#ffffff\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0><br>\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\" height=\"11\" valign=\"bottom\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$GLOBALS[bgcolor1]\">\n"
."<tr><td bgcolor=\"$GLOBALS[bgcolor1]\"><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr>\n";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$GLOBALS[bgcolor1]\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"130\" bgcolor=\"$GLOBALS[bgcolor1]\" valign=\"top\">\n";
blocks('left');
echo "</td><td><img src=\"themes/$GLOBALS[thename]/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
if(pnModAvailable('Banners'))
{
echo"<center>";
pnBannerDisplay();
echo"</center><br>";
}
/*
if ($GLOBALS['index'] == 1) {
blocks('centre');
}
*/
}
The banner shows up correctly right above the news, but I want the center block to also show up. I had to rem it out because it was breaking everything.
Any help would be greatly apprecaited.
Atomm Nihilo
GamersRadio.com/post (the site I am working on)
