- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- February 2003
- Status:
- offline
- last visit:
- 01.07.04
- Posts:
- 39
Alright, here's the deal...
I wrote my own theme based on PostNukeBlue. It works perfect in all modules except one. When viewing an article w/comments it displays the right block 'Related Link' BETWEEN the article and the comments. I don't even see how this is possible unless that module is broken.
Here is some code from the theme:
Code
function themeheader(){
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
$type = pnVarCleanFromInput('type');
include("themes/$GLOBALS[thename]/header.html");
echo "
<TABLE width='150' bgcolor='#c0c0c0' border='0' cellspacing='1' cellpadding='2'>
\n";
blocks('left');
echo "
</TABLE>
</TD>
<TD align='center' valign='top' width='100%' bgcolor='#800000'>
\n";
//echo pnBannerDisplay();
if($GLOBALS['index'] == 1){ blocks('centre'); }
}
function themefooter(){
$slogan = pnConfigGetVar('slogan');
if($GLOBALS['index'] == 1){
echo "
</TD>
<TD align='left' valign='top' bgcolor='#000000'>
<TABLE width='175' bgcolor='#c0c0c0' border='0' cellspacing='1' cellpadding='2'>
\n";
blocks('right');
echo "
</TABLE>
\n";
}
include("themes/$GLOBALS[thename]/footer.html");
}
header.html ends with an openingtag and footer.html starts with a closing tag. Basically, it constructs two, or three, cells for a row in the master table. I've been through it repeatedly and cannot find anything wrong with it. No misspellings, no logic errors. And yet, the stupid title and content rows for the 'Related Links' block appear between the article and the comments.
Here's the link for viewing:
http://www.skeletalh…ead&order=0&thold=0
I made the main cell dark red so I could more easily determine cell boundaries. -
- rank:
-
Freshman
- registered:
- February 2003
- Status:
- offline
- last visit:
- 01.07.04
- Posts:
- 39
I moved theand
tags into the leftblock.html and rightblock.html files and it works now, with a little tweaking, and that fixed it. Though it's not totally what I wanted, I can live with it. -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 09.11.08
- Posts:
- 13413
Check either the themearticle function, or the themearticle templates in themes/yourtheme/
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Freshman
- registered:
- December 2004
- Status:
- offline
- last visit:
- 03.08.05
- Posts:
- 15
I also have the same problem. I created a custom theme based on the PostNukeBlue Xanthia theme and, when viewing articles, the right blocks (PostCalender, Other Stories, Category Menu) displays below the left block. This problem also appears on the PostNuke and PostNukeSilver themes. The problem also appears in the PostNukeBlue updated by the maintainer of NukeWrapper (forgot his name) but not in non PostNuke* themes. The thethemearticle function seems to be just a stub so where/how do I look to implement a fix? In the mean time, I removed the right-block call from master.htm.
Code
// Legacy Function: Displays the Article Page when "Read More" is clicked
// why did they not remove all of these deprecated variables ??
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated,
$_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated,
$info, $links, $preformat) {
global $engine;
$engine->do_themearticle($info, $links, $preformat);
}
