hello all here.,
i run a postnuke site and want to enter a theme a bit.
on phpnuke and postnuke-themes there are allways three columns: each theme has got a three column based look:
left block :: center :: right block
so my interest is to change the theme so that the right blocks do not show up at all - and the center is bigger - is that doable; here i post the code of the theme
many thanks for each and any input here -.
thx
bernard_hinault
<?php
// File: $Id: theme.php,v 1.14 2004/04/22 12:37:47 drak Exp $ $Name: HEAD $
// ----------------------------------------------------------------------
// PostNuke Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// [url]http://www.postnuke.com/[/url]
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - [url]http://phpnuke.org/[/url]
// Thatware - [url]http://thatware.org/[/url]
// ----------------------------------------------------------------------
// LICENSE
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// To read the license please visit [url]http://www.gnu.org/copyleft/gpl.html[/url]
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file: Display a low bandwidth theme.
// ----------------------------------------------------------------------
$bgcolor1 = "#ffffff";
$bgcolor2 = "#cccccc";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#eeeeee";
$bgcolor5 = "#000000";
$textcolor1 = "#ffffff";
$textcolor2 = "#000000";
$postnuke_theme = true;
function OpenTable()
{
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2]\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}
function OpenTable2()
{
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2];text-align:center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table><br />\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table><br />\n";
}
function themeheader()
{
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
echo "</head>";
echo "<body>";
if(pnModAvailable('Banners'))
{
pnBannerDisplay();
}
echo "<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"width:100%\">\n" .
"<tr>\n" .
"<td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"width:100%;background-color:$GLOBALS[bgcolor1]\">\n" .
"<tr>\n" .
"<td>\n" .
"<a href=\"index.php\"><img src=\"" . WHERE_IS_PERSO . "images/logo.gif\" alt=\"" . _WELCOMETO . " $sitename\" /></a>\n" .
"</td><td align=\"right\">" .
'<form action="modules.php" method="post">' .
'<div>' .
'<input type="hidden" name="name" value="Search" />' .
'<input type="hidden" name="file" value="index" />' .
'<input type="hidden" name="op" value="modload" />' .
'<input type="hidden" name="action" value="search" />' .
'<input type="hidden" name="overview" value="1" />' .
'<input type="hidden" name="active_stories" value="1" />' .
'<input type="hidden" name="bool" value="AND" />' .
'<input type="hidden" name="stories_cat" value="" />' .
'<input type="hidden" name="stories_topics" value="" />' .
'<div style="text-align:right">' .
'<span class="pn-normal">' . _SEARCH . ' </span>' .
"<input class=\"pn-text\" name=\"q\" type=\"text\" value=\"\" /> \n" .
'</div>' .
'</div>' .
'</form>' .
"</td></tr></table>\n</td></tr>\n<tr><td valign=\"top\" style=\"width:100%;background-color:$GLOBALS[bgcolor1]\">" .
"<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" style=\"width:100%\">
<tr><td valign=\"top\" style=\"width:150px;background-color:$GLOBALS[bgcolor1]\">";
blocks('left');
echo "<img src=\"images/global/pix.gif\" width=\"100%\" height=\"1\" alt=\"\" />
</td>
<td> </td>
<td valign=\"top\">";
if ($GLOBALS['index'] == 1) {
blocks('centre');
}
}
function themefooter()
{
if ($GLOBALS['index'] == 1) {
echo "</td>
<td> </td>
<td valign=\"top\" style=\"width:150px;background-color:$GLOBALS[bgcolor1]\">";
blocks('right');
}
echo "</td></tr></table>
</td></tr></table>
<div style=\"text-align:center\">";
footmsg();
echo "</div>";
}
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5]\" width=\"100%\"><tr><td>\n" .
"<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<strong>$preformat[catandtitle]</strong><br />\n" .
"<span class=\"pn-normal\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[longdatetime]\n";
echo "<br /><a href=\"$links[searchtopic]\">$info[topicname]</a> \n" .
"</span>\n</td></tr>\n" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<span class=\"pn-normal\">$info[hometext]\n<br /><br />$preformat[notes]\n<br /><br /></span>\n" .
"</td></tr>\n" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1];text-align:right\">\n" .
"<span class=\"pn-sub\">$preformat[more]</span>\n" .
"</td></tr></table>\n" .
"</td></tr></table>\n" .
"<br />";
}
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
echo"
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5];width:100%\"><tr><td>\n
<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width:100%\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
<span class=\"pn-title\">$preformat[catandtitle]</span><br />\n
<span class=\"pn-normal\"><span class=\"pn-sub\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[briefdatetime]</span></span>\n";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo " <span class=\"pn-normal\"> [ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">" . _EDIT . "</a> ]";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo " [ <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">" . _DELETE . "</a> ]</span>";
}
}
echo "\n<br />
<span class=\"pn-normal\"><a href=\"$links[searchtopic]\">$info[topicname]</a> </span>\n
</td></tr>\n<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
<span class=\"pn-normal\">$preformat[fulltext]</span>\n
</td></tr></table>\n</td></tr></table><br />\n";
}
function themesidebox($block)
{
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" style=\"width:100%;background-color:$GLOBALS[bgcolor5]\">" .
"<tr><td>" .
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\">$block[title]</td></tr>" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-normal\">$block[content]</td></tr>" .
"</table>" .
"</td></tr>" .
"</table><br />";
}
?>
which phrase i have to change to get the wanted behaviour? Many thanks for your input. Look forward to hear from you!!