- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- August 2007
- Status:
- offline
- last visit:
- 20.08.07
- Posts:
- 2
Hello people! Does anybody knows how to add a right column for right blocks in PostNukeBlue theme? Here is the part of theme.php
Quote
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "Amoxicillin";
if ($banners == 1) {
include("banners.php");
}
$topics_list = "\n";
$topics_list .= "All Topics\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 .= "$topics\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = " Create an account";
} else {
$theuser = " Welcome $username!";
}
$tmpl_file = "themes/PostNukeBlue/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/PostNukeBlue/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
the function for right blocks is blocks(right); -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
Oh boy... close that file without any changes...
Mess with this one: ../themes/pnblue/templates/master.htm
Code
<table width="<!--[$pagewidth]-->" border="0" cellpadding="0" cellspacing="0" id="main">
<tr>
<td width="42" align="left" valign="top" bgcolor="#FFFFFF"><img src="<!--[$imagepath]-->/Left-Postnuke.png" width="42" height="440" alt="" /></td>
<td id="LeftCol" width="<!--[$lcolwidth]-->" valign="top" >
<!-- Left column start -->
<!--[$leftblocks]--><!--[* blockposition name=left *]-->
<!-- Left column end -->
</td>
<td id="CenterCol" valign="top">
<!-- Center block start -->
<!--[$maincontent]-->
<!-- Center block end -->
</td>
<td id="RightCol" valign="top" width="<!--[$rcolwidth]-->">
<!-- Right column -->
<!--[$rightblocks]--><!--[* blockposition name=right *]-->
<!-- Right column end -->
</td>
</tr>
</table>
Seems there is a right column in this theme... so it is done already for you... Add something to the column in the Admin area using 'blocks'.
--
David Pahl
Zikula Support Team -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
Lesh
Hello people! Does anybody knows how to add a right column for right blocks in PostNukeBlue theme?
Lesh
This theme is made for phpNUKE... There was no such file master.php i this theme folder
PostNukeBlue is a phpNuke theme? You may need to explain better, I am now confused.
--
David Pahl
Zikula Support Team -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
Hmmm... I guess after reading your first post again, and actually looking at the code. I realize that it is indeed not a PostNuke file, I just assumed it was the theme.php for a PN Theme.
Really though, this is not a phpNuke support site... Why not use a phpNuke support site. It would probably be more beneficial and less confusing...
By the way, coding templates in PHP, that doesn't look like much fun.
--
David Pahl
Zikula Support Team -
- rank:
-
Helper
- registered:
- May 2004
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 237
PostNukeBlue is delivered by default together with PostNuke 0.764, and already comes with ready made left and right collums. There is no reason at all to deal with anything else than the original.
Greetings,
Chris
--
development is life. code.zikula.org
an operating system must operate. sidux.com
