The problem I have here is I have installed a fantastic theme but for some reason I can't center the logo at the top ie:
<----------------------- logo -----------------------------> < --weird space-->
and i want the logo centered nicely without the space. i'm thinking perhaps the space is a banner. i've not worked with nuke before and i want to use the banners in the end but just not next to the logo like this, right at the bottom would be good for now.
here's the code in the themes.php file it's not as easy to understand as my board code for some reason. i'm sure it's something very simple i'm just not understanding so please excuse my ignorance
Code
<?php
/************************************************************/
/* Theme Name: $thename (v1.0) */
/* Theme Developer: Adam Allix (http://www.aallix.com) */
/* Last Updated: 02/November/2002 */
/************************************************************/
/* PORTED TO PostNuke .72+ 9/29/2002 */
/* by Jan Hübener http://www.nukethemes.de */
/* 500+ themes, translations, modules, forum ... */
/* Please report bugs or send new themes to jan@passions.de */
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$thename = "aallixWhite";
$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#D1D1D1";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#FFFFFF";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$postnuke_theme = true;
themes_get_language();
/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to */
/* properly close our tables. The difference is that */
/* OpenTable has a 100% width and OpenTable2 has a width */
/* according with the table content */
/************************************************************/
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" class=\"forumline\"><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;
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";
}
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks('left'); */
/************************************************************/
function themeheader() {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $thename;
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
$startpage = pnConfigGetVar('startpage');
$currentlang = pnConfigGetVar('language');
$type = pnVarCleanFromInput('type');
if (!pnUserLoggedIn()) { $username = pnConfigGetVar('anonymous'); } else { $username = pnUserGetVar('uname'); }
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#666666\" vlink=\"#666666\" alink=\"#666666\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\">\n";
echo "\n"
."<!----- Logo Area ----->\n"
."<table cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td width=\"100%\" bgcolor=\"#FFFFFF\" align=\"center\" valign=\"top\">\n"
."<br />\n"
."<table bgcolor=\"#FFFFFF\" cellpadding=\"0\" cellspacing=\"1\" width=\"99%\" class=\"forumline\">\n"
."<tr bordercolor=\"#FFFFFF\">\n"
."<td bgcolor=\"#FFFFFF\" class=\"row1\" valign=\"middle\" width=\"280\" height=\"70\">\n"
."<img src=\"themes/$thename/images/logo.gif\" border=\"none\">\n"
."</td>\n"
."<td bgcolor=\"#FFFFFF\" align=\"right\" width=\"500\" height=\"70\"><center>\n";
pnBannerDisplay();
echo "\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td background=\"/themes/$thename/images/cellpic01.gif\" class=\"catHead\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"left\" colspan=\"2\">\n"
."<span class=\"cattitle\"><b><center>\n"
."<a href=\"/index.php\">Home</a> ::\n"
."<a href=\"/modules.php?name=Career\">Career</a> ::\n"
."<a href=\"/modules.php?name=Downloads\">Downloads</a> ::\n"
."<a href=\"/forum\">Forums</a> ::\n"
."<a href=\"/modules.php?name=Newsletter\">Newsletter</a> ::\n"
."<a href=\"/modules.php?name=Search\">Search</a> ::\n"
."<a href=\"/modules.php?name=Topics\">Topics</a> ::\n"
."<a href=\"/modules.php?name=Web_Links\">Web Links</a> ::\n"
."<a href=\"/modules.php?name=Whois\">Whois</a>\n"
."</span>\n"
."</td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td height=\"28\" bgcolor=\"#FFFFFF\" valign=\"middle\" colspan=\"2\">\n"
."<center><span class=\"mainmenu\">
<a href=\"/forum/memberlist.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_members.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Memberlist\" hspace=\"3\" />Memberlist</a>
<a href=\"/forum/groupcp.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_groups.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Usergroups\" hspace=\"3\" />Usergroups</a>\n"
."<span class=\"mainmenu\">
<a href=\"/forum/profile.php?mode=editprofile\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_profile.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Profile\" hspace=\"3\" />Profile</a>
<a href=\"/forum/privmsg.php?folder=inbox\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_message.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login to check your private messages\" hspace=\"3\" />Private Messages</a>
<a href=\"/forum/login.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_login.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login\" hspace=\"3\" />Login</a> </span>
<a href=\"/forum/profile.php?mode=register\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_register.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Register\" hspace=\"3\" />Register</a></span>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td colspan=\"6\">\n"
."<!----- Begin of Main Content Table ----->\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFF\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td valign=\"top\">\n"
."<table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"150\" valign=\"top\">\n";
blocks('left');
echo "</td><td width=\"100%\" align=\"center\" valign=\"top\">\n";
if ($index == 1) { blocks('centre'); }
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks('right'); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index;
if ($index == 1) {
echo "</td><td valign=\"top\" width=\"150\">\n";
blocks('right');
}
echo "</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\">\n"
."<tr>\n"
."<td align=\"center\">\n"
."<table bgcolor=\"#E7E7E7\" cellpadding=\"0\" cellspacing=\"1\" width=\"99%\" class=\"forumline\">\n"
."<tr align=\"center\">\n"
."<td width=\"100%\" colspan=\"3\" background=\"/themes/$thename/images/cellpic01.gif\" class=\"catHead\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"center\">\n"
."<span=\"mainmenu\"></span>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td align=\"center\" bgcolor=\"#FFFFFF\">\n"
."<font class=\"option\" color=\"#000000\"></font>\n";
footmsg();
echo "</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');
echo "<table bgcolor=\"#E7E7E7\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" class=\"forumline\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7E7E7\" width=\"100%\">\n"
."<tr>\n"
."<td>\n\n"
."<!----- Story Box Title ----->\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" background=\"/themes/$thename/images/cellpic01.gif\" height=\"28\" bgcolor=\"#D1D1D1\" width=\"100%\">\n"
."<tr>\n"
."<td align=\"center\">\n"
."<font class=\"option\" color=\"#000000\"><b>$preformat[catandtitle]</b></font>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td>\n"
."<!----- Story Box Content ----->\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td bgcolor=\"FFFFFF\">\n"
."<font color=\"#000000\"><b><a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>\n";
echo "$preformat[hometext]<br><br>$preformat[notes]\n";
echo "</td></tr></table></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" background=\"/themes/$thename/images/cellpic01.gif\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td align=\"center\" height=\"28\">\n"
."<font size=\"1\">"._POSTEDBY." <a href=\"user.php?op=userinfo&uname=$info[informant]\">$info[informant]</a> "._ON." info[briefdatetime] ($info[counter] "._READS.")<br></font>\n"
."<font class=\"content\">$preformat[more]</font>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n\n\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#FFFFFF\" width=\"100%\" class=\"forumline\">
<tr><td>\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\"><tr><td align=\"left\" background=\"/themes/$thename/images/cellpic01.gif\">\n"
."<font class=\"option\" color=\"#000000\"><b>$preformat[catandtitle]</b></font><br>\n"
."<font class=\"content\">"._POSTEDBY." <a href=\"user.php?op=userinfo&uname=$info[informant]\">$info[informant]</a> "._ON." info[briefdatetime] ($info[counter] "._READS.")";
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"pn-sub\"> [ <a href=\"admin.php?module=ns-addstory&op=EditStory&sid=$info[sid]\">"._EDIT."</a>";
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo "| <a href=\"admin.php?module=ns-addstory&op=RemoveStory&sid=$info[sid]\">"._DELETE."</a>";
}
echo " ]</span><br /><br />\n";
}
echo "</td></tr>";
echo "<tr><td>";
echo "<a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
echo "$preformat[fulltext]";
echo "</td></tr></table></td></tr></table><br>\n\n\n";
}
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($block) {
global $block_side, $thename;
if (empty($block['position'])) {
$block['position'] = "a";
}
if (($block['position'] == 'l') || ($block['position'] == 'r')) {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<!----- Side Box ----->\n"
."<table bgcolor=\"#374646\" cellpadding=\"2\" cellspacing=\"1\" width=\"150\" class=\"forumline\">\n"
."<tr>\n"
."<td background=\"/themes/$thename/images/cellpic01.gif\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"left\">\n"
."<font class=\"content\" color=\"#000000\">$block[title]</font>\n"
."</td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#FFFFFF\">\n"
."$block[content]\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n\n\n";
}
if ($block['position'] == 'c') {
echo "<font class=\"pn-normal\">$block[content]</font>";
}
}
?>
/************************************************************/
/* Theme Name: $thename (v1.0) */
/* Theme Developer: Adam Allix (http://www.aallix.com) */
/* Last Updated: 02/November/2002 */
/************************************************************/
/* PORTED TO PostNuke .72+ 9/29/2002 */
/* by Jan Hübener http://www.nukethemes.de */
/* 500+ themes, translations, modules, forum ... */
/* Please report bugs or send new themes to jan@passions.de */
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$thename = "aallixWhite";
$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#D1D1D1";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#FFFFFF";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$postnuke_theme = true;
themes_get_language();
/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to */
/* properly close our tables. The difference is that */
/* OpenTable has a 100% width and OpenTable2 has a width */
/* according with the table content */
/************************************************************/
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" class=\"forumline\"><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;
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";
}
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks('left'); */
/************************************************************/
function themeheader() {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $thename;
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
$startpage = pnConfigGetVar('startpage');
$currentlang = pnConfigGetVar('language');
$type = pnVarCleanFromInput('type');
if (!pnUserLoggedIn()) { $username = pnConfigGetVar('anonymous'); } else { $username = pnUserGetVar('uname'); }
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#666666\" vlink=\"#666666\" alink=\"#666666\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\">\n";
echo "\n"
."<!----- Logo Area ----->\n"
."<table cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td width=\"100%\" bgcolor=\"#FFFFFF\" align=\"center\" valign=\"top\">\n"
."<br />\n"
."<table bgcolor=\"#FFFFFF\" cellpadding=\"0\" cellspacing=\"1\" width=\"99%\" class=\"forumline\">\n"
."<tr bordercolor=\"#FFFFFF\">\n"
."<td bgcolor=\"#FFFFFF\" class=\"row1\" valign=\"middle\" width=\"280\" height=\"70\">\n"
."<img src=\"themes/$thename/images/logo.gif\" border=\"none\">\n"
."</td>\n"
."<td bgcolor=\"#FFFFFF\" align=\"right\" width=\"500\" height=\"70\"><center>\n";
pnBannerDisplay();
echo "\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td background=\"/themes/$thename/images/cellpic01.gif\" class=\"catHead\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"left\" colspan=\"2\">\n"
."<span class=\"cattitle\"><b><center>\n"
."<a href=\"/index.php\">Home</a> ::\n"
."<a href=\"/modules.php?name=Career\">Career</a> ::\n"
."<a href=\"/modules.php?name=Downloads\">Downloads</a> ::\n"
."<a href=\"/forum\">Forums</a> ::\n"
."<a href=\"/modules.php?name=Newsletter\">Newsletter</a> ::\n"
."<a href=\"/modules.php?name=Search\">Search</a> ::\n"
."<a href=\"/modules.php?name=Topics\">Topics</a> ::\n"
."<a href=\"/modules.php?name=Web_Links\">Web Links</a> ::\n"
."<a href=\"/modules.php?name=Whois\">Whois</a>\n"
."</span>\n"
."</td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td height=\"28\" bgcolor=\"#FFFFFF\" valign=\"middle\" colspan=\"2\">\n"
."<center><span class=\"mainmenu\">
<a href=\"/forum/memberlist.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_members.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Memberlist\" hspace=\"3\" />Memberlist</a>
<a href=\"/forum/groupcp.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_groups.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Usergroups\" hspace=\"3\" />Usergroups</a>\n"
."<span class=\"mainmenu\">
<a href=\"/forum/profile.php?mode=editprofile\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_profile.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Profile\" hspace=\"3\" />Profile</a>
<a href=\"/forum/privmsg.php?folder=inbox\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_message.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login to check your private messages\" hspace=\"3\" />Private Messages</a>
<a href=\"/forum/login.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_login.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login\" hspace=\"3\" />Login</a> </span>
<a href=\"/forum/profile.php?mode=register\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_register.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Register\" hspace=\"3\" />Register</a></span>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td colspan=\"6\">\n"
."<!----- Begin of Main Content Table ----->\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFF\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td valign=\"top\">\n"
."<table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"150\" valign=\"top\">\n";
blocks('left');
echo "</td><td width=\"100%\" align=\"center\" valign=\"top\">\n";
if ($index == 1) { blocks('centre'); }
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks('right'); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index;
if ($index == 1) {
echo "</td><td valign=\"top\" width=\"150\">\n";
blocks('right');
}
echo "</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\">\n"
."<tr>\n"
."<td align=\"center\">\n"
."<table bgcolor=\"#E7E7E7\" cellpadding=\"0\" cellspacing=\"1\" width=\"99%\" class=\"forumline\">\n"
."<tr align=\"center\">\n"
."<td width=\"100%\" colspan=\"3\" background=\"/themes/$thename/images/cellpic01.gif\" class=\"catHead\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"center\">\n"
."<span=\"mainmenu\"></span>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td align=\"center\" bgcolor=\"#FFFFFF\">\n"
."<font class=\"option\" color=\"#000000\"></font>\n";
footmsg();
echo "</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');
echo "<table bgcolor=\"#E7E7E7\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" class=\"forumline\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7E7E7\" width=\"100%\">\n"
."<tr>\n"
."<td>\n\n"
."<!----- Story Box Title ----->\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" background=\"/themes/$thename/images/cellpic01.gif\" height=\"28\" bgcolor=\"#D1D1D1\" width=\"100%\">\n"
."<tr>\n"
."<td align=\"center\">\n"
."<font class=\"option\" color=\"#000000\"><b>$preformat[catandtitle]</b></font>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td>\n"
."<!----- Story Box Content ----->\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td bgcolor=\"FFFFFF\">\n"
."<font color=\"#000000\"><b><a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>\n";
echo "$preformat[hometext]<br><br>$preformat[notes]\n";
echo "</td></tr></table></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td>\n"
."<table border=\"0\" background=\"/themes/$thename/images/cellpic01.gif\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">\n"
."<tr>\n"
."<td align=\"center\" height=\"28\">\n"
."<font size=\"1\">"._POSTEDBY." <a href=\"user.php?op=userinfo&uname=$info[informant]\">$info[informant]</a> "._ON." info[briefdatetime] ($info[counter] "._READS.")<br></font>\n"
."<font class=\"content\">$preformat[more]</font>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n\n\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#FFFFFF\" width=\"100%\" class=\"forumline\">
<tr><td>\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\"><tr><td align=\"left\" background=\"/themes/$thename/images/cellpic01.gif\">\n"
."<font class=\"option\" color=\"#000000\"><b>$preformat[catandtitle]</b></font><br>\n"
."<font class=\"content\">"._POSTEDBY." <a href=\"user.php?op=userinfo&uname=$info[informant]\">$info[informant]</a> "._ON." info[briefdatetime] ($info[counter] "._READS.")";
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"pn-sub\"> [ <a href=\"admin.php?module=ns-addstory&op=EditStory&sid=$info[sid]\">"._EDIT."</a>";
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo "| <a href=\"admin.php?module=ns-addstory&op=RemoveStory&sid=$info[sid]\">"._DELETE."</a>";
}
echo " ]</span><br /><br />\n";
}
echo "</td></tr>";
echo "<tr><td>";
echo "<a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
echo "$preformat[fulltext]";
echo "</td></tr></table></td></tr></table><br>\n\n\n";
}
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($block) {
global $block_side, $thename;
if (empty($block['position'])) {
$block['position'] = "a";
}
if (($block['position'] == 'l') || ($block['position'] == 'r')) {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<!----- Side Box ----->\n"
."<table bgcolor=\"#374646\" cellpadding=\"2\" cellspacing=\"1\" width=\"150\" class=\"forumline\">\n"
."<tr>\n"
."<td background=\"/themes/$thename/images/cellpic01.gif\" height=\"28\" bgcolor=\"#D1D1D1\" align=\"left\">\n"
."<font class=\"content\" color=\"#000000\">$block[title]</font>\n"
."</td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#FFFFFF\">\n"
."$block[content]\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n\n\n";
}
if ($block['position'] == 'c') {
echo "<font class=\"pn-normal\">$block[content]</font>";
}
}
?>
can anyone help??? i'd really appreciate it :)
