Website for reference: http://stellaculinary.com. Drupal 6.

I created a new block region after finding this drupal.org thread, and then reading this how-to-guide.

Everything went great, except I can't get the block region to show up in between my body content and comments because it looks like the content and comments are printed together. Here are some screen shots of the code placement. Right now, the "Test Block" shows up either beneath the comment submit button, or above the content headline.

http://StellaCulinary.com/pics/help/adding-a-block/adding-a-block.001.jpg

http://StellaCulinary.com/pics/help/adding-a-block/adding-a-block.002.jpg

http://StellaCulinary.com/pics/help/adding-a-block/adding-a-block.003.jpg

Here's the code for my page.tpl.php file:

<?php // $Id: page.tpl.php,v 1.15.4.7 2008/12/23 03:40:02 designerbrent Exp $ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" 
                    xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" 
                    lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
<title><?php print $head_title ?></title>
<meta http-equiv="content-language" content="<?php print $language->language ?>" />
<?php print $meta; ?><?php print $head; ?><?php print $styles; ?>
<!--[if lte IE 7]>
    <link rel="stylesheet" href="<?php print $path; ?>css/ie.css" type="text/css" media="screen, projection">
  	<link href="<?php print $path; ?>css/ie.css" rel="stylesheet"  type="text/css"  media="screen, projection" />
  <![endif]-->
<!--[if lte IE 6]>
  	<link href="<?php print $path; ?>css/ie6.css" rel="stylesheet"  type="text/css"  media="screen, projection" />
  <![endif]-->
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
</head>
<body id="main" class="<?php print $body_classes; ?>">
<div id="page"  style="position:relative; z-index:1">
	<div id="navigation" class="clearfix"  style="position:relative; z-index:2">
		<div id="navigaton-top"  class="clearfix" style="positon:relative">
			<div id="logo-floater">
				<a href="/" title="Home">
					<img src="/sites/all/themes/stella2/images/logo2.jpg" alt="Stella Cullinary"/>
				</a>
			</div>
			<?php print $user_actions; // from stella_preprocess_page() ?>
			<div id="header-right" style="position:relative">
				<?php if ($header_right) { print $header_right; } ?> 
			</div> 
		</div>
		<div class="navigation-inner clearfix" style="position:relative; z-index:5; width:976px">
			<?php if (isset($primary_links)) : ?>
			<?php print theme_nice_menus_primary_links(); ?>
			<?php endif; ?>
		</div>
	</div>
	<div class="clear"></div>
  <div id="left" style="position:relative; z-index:1">
		<!--
		<a href="<?php print url('<front>'); ?>">
			<img src="/sites/all/themes/stella/images/logo.png" alt="" border="0" />
		</a>
		-->
    <div class="left-wrap">
      <?php print $left; ?> </div>
    <div class="newsletter">
      <div class="newsletter-inner">
              </div>
    </div>
  </div>
  <div id="center">
    <div class="center-inner">
      <?php if($is_front):?>
     
      <?php endif;?>
      <?php if($right):?>
      
      <?php endif;?>

<?php if ($end_content): ?>  
     <div class="end_content"><?php print $end_content; ?></div>
<?php endif; ?>
  
      <div class="main-content-wrap">
        <?php
      if ($breadcrumb != '') {
        print $breadcrumb;
      }

      if ($tabs != '') {
        print '<div class="tabs">'. $tabs .'</div>';
      }

      if ($messages != '') {
        print '<div id="messages">'. $messages .'</div>';
      }
      
      if ($title != '' || !$is_front) {
        print '<h2 class="page-title">'. $title .'</h2>';
      }      

      print $help; // Drupal already wraps this one in a class      

      print $content;
      print $feed_icons;
    ?>
    </div> 
	</div>
    <div id="footer">
      <?php if ($footer): ?>
      <?php print $footer; ?>
      <?php endif; ?>
      <?php if ($footer_message): ?>
      <div id="footer-message"><?php print $footer_message; ?></div>
      <?php endif; ?>
      Copyright &copy; 2010-2015 StellaCulinary.com All Rights Reserved. 
</div>
  </div>
</div>
<?php print $scripts ?> <?php print $closure; ?>
</div>
</body>
</html>

Any suggestions?

Comments

vijaythummar’s picture

Hi Jacob,

You can do following thing in node.tpl.php to achive your functionality.

Edit node.tpl.php update following code before your comments render:

<?php if (block_get_blocks_by_region('end_content')): ?>
<div id="end_content">
    <?php  print render(block_get_blocks_by_region('end_content')); ?>
</div>
<?php endif; ?>

Thanks,
Vijay Thummar