Here is a pic of it:

I tried implementing the way it told to using AutoTheme but i got the center block on all pages. Then i fidled with the theme.cfg and changed settings from true->false and false->true. All i got from that was errors, the same thing i had happening and no center block at all. I searched these forums and got no information on them. So, then i tried converting theme to normal post-nuke theme system and i have some bugs that i dont know how to fix and i would appreciate some help.
Here is my site:
http://jbandit.net/
As you can see at my site, there is this semi border thingy on the sides of it. That is from my old theme that i used as a base to convert this one. I think the problem is due theme.php. I tried fiddling with that and all i got was errors and stuff.
Here is the theme.php:
Code
<?php
/************************************************************/
/* Theme Colors */
/************************************************************/
$bgcolor1 = "#ffffff";
$bgcolor2 = "#cccccc";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#ffffff";
$textcolor1 = "#666666";
$textcolor2 = "#cccccc";
/************************************************************/
/* Theme as Postnuke Theme */
/************************************************************/
$postnuke_theme = true;
$thename = "jbandit";
themes_get_language();
/************************************************************/
/* Tables */
/************************************************************/
function OpenTable()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table>\n";
}
/*****************************************************************************************/
/* Theme Header Start */
/*****************************************************************************************/
function themeheader() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;
$sitename = pnConfigGetVar('sitename');
include("header.htm");
echo"<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr> \n"
."<td width=\"12\" background=\"themes/Pixame_Style/images/left_space.gif\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"12\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
blocks('left');
echo"</td>\n"
."<td width=\"5\" valign=\"top\" bgcolor=\"#FFFFFF\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"5\" height=\"1\"></td>\n"
."<td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
if ($GLOBALS['index'] == 1){
blocks('centre');
}
}
/*****************************************************************************************/
/* Theme Header End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Theme Footer Start */
/*****************************************************************************************/
function themefooter() {
if ($GLOBALS['index'] == 1){
echo"</td>\n"
."<td width=\"5\" valign=\"top\" bgcolor=\"#FFFFFF\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"5\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
blocks('right');
}
echo"</td>\n"
."<td width=\"12\" background=\"themes/Pixame_Style/images/right_space.gif\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"12\" height=\"1\"></td>\n"
."</tr>\n"
."</table>\n";
include("footer.htm");
}
/*****************************************************************************************/
/* Theme Footer End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Article Block Start */
/*****************************************************************************************/
/************************************************************/
/* Story Block Start */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
include("story.htm");
}
/************************************************************/
/* Story Block End */
/************************************************************/
/************************************************************/
/* Article Block (Read More - Comments) Start */
/************************************************************/
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
include("article.htm");
}
/************************************************************/
/* Article Block (Read More - Comments) End */
/************************************************************/
/*****************************************************************************************/
/* Article Block End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Left Block + Right Block + Center Block Start */
/*****************************************************************************************/
function themesidebox($block) {
if (empty($block['position'])) {
$block['position'] = "a";
}
if($block['position'] == 'l') {
/************************************************************/
/* Left Block Start */
/************************************************************/
include("left_block.htm");
}
/************************************************************/
/* Left Block End */
/************************************************************/
/************************************************************/
/* Right Block Start */
/************************************************************/
if($block['position'] == 'r') {
include("right_block.htm");
}
/************************************************************/
/* Right Block End */
/************************************************************/
/************************************************************/
/* Center Block Start */
/************************************************************/
if($block['position'] == 'c') {
include("center_block.htm");
}
/************************************************************/
/* Center Block End */
/************************************************************/
/*****************************************************************************************/
/* Left Block + Right Block + Center Block End */
/*****************************************************************************************/
}
?>
/************************************************************/
/* Theme Colors */
/************************************************************/
$bgcolor1 = "#ffffff";
$bgcolor2 = "#cccccc";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#ffffff";
$textcolor1 = "#666666";
$textcolor2 = "#cccccc";
/************************************************************/
/* Theme as Postnuke Theme */
/************************************************************/
$postnuke_theme = true;
$thename = "jbandit";
themes_get_language();
/************************************************************/
/* Tables */
/************************************************************/
function OpenTable()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table>\n";
}
/*****************************************************************************************/
/* Theme Header Start */
/*****************************************************************************************/
function themeheader() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;
$sitename = pnConfigGetVar('sitename');
include("header.htm");
echo"<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr> \n"
."<td width=\"12\" background=\"themes/Pixame_Style/images/left_space.gif\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"12\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
blocks('left');
echo"</td>\n"
."<td width=\"5\" valign=\"top\" bgcolor=\"#FFFFFF\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"5\" height=\"1\"></td>\n"
."<td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
if ($GLOBALS['index'] == 1){
blocks('centre');
}
}
/*****************************************************************************************/
/* Theme Header End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Theme Footer Start */
/*****************************************************************************************/
function themefooter() {
if ($GLOBALS['index'] == 1){
echo"</td>\n"
."<td width=\"5\" valign=\"top\" bgcolor=\"#FFFFFF\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"5\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
blocks('right');
}
echo"</td>\n"
."<td width=\"12\" background=\"themes/Pixame_Style/images/right_space.gif\"><img src=\"themes/Pixame_Style/images/pixel.gif\" width=\"12\" height=\"1\"></td>\n"
."</tr>\n"
."</table>\n";
include("footer.htm");
}
/*****************************************************************************************/
/* Theme Footer End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Article Block Start */
/*****************************************************************************************/
/************************************************************/
/* Story Block Start */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
include("story.htm");
}
/************************************************************/
/* Story Block End */
/************************************************************/
/************************************************************/
/* Article Block (Read More - Comments) Start */
/************************************************************/
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
include("article.htm");
}
/************************************************************/
/* Article Block (Read More - Comments) End */
/************************************************************/
/*****************************************************************************************/
/* Article Block End */
/*****************************************************************************************/
/*****************************************************************************************/
/* Left Block + Right Block + Center Block Start */
/*****************************************************************************************/
function themesidebox($block) {
if (empty($block['position'])) {
$block['position'] = "a";
}
if($block['position'] == 'l') {
/************************************************************/
/* Left Block Start */
/************************************************************/
include("left_block.htm");
}
/************************************************************/
/* Left Block End */
/************************************************************/
/************************************************************/
/* Right Block Start */
/************************************************************/
if($block['position'] == 'r') {
include("right_block.htm");
}
/************************************************************/
/* Right Block End */
/************************************************************/
/************************************************************/
/* Center Block Start */
/************************************************************/
if($block['position'] == 'c') {
include("center_block.htm");
}
/************************************************************/
/* Center Block End */
/************************************************************/
/*****************************************************************************************/
/* Left Block + Right Block + Center Block End */
/*****************************************************************************************/
}
?>
Does any body know what to change in that?
Another bug (which occured in my last theme, as well) is that in my forums or downloads and there is a big picture that is shown and it runs off the page. It makes my site look butt ugly. It goes past my header, so, there is only white. How could i fix this?
I would really appreciate some help. Especially after all that writing.
