Hello, I am wondering two things:
1. Why does Banner replace advertise? It seems the banner rotators is custom so it doesn't actually replace 'advertise' block since that is just a placeholder (I am new so may be wrong).
2. I tried to include both banner rotators and allowing to enable advertise block, but can't get anything to output in advertise block.

Here is what I did so far:
1. updated the page template:
page.tpl.php:
if ((!$usebanner && $page['advertise']) || ($usebanner && $banner_image)):
.....
endif;

print render($page['advertise']);

2. Update template so not to overwrite advertise section:
template.php:
// Set $page['advertise'] to hide advertise space (if not used).
// ##: commented out the logic to hide advertisement: Using both banners and adverts
// $vars['page']['advertise'] = $vars['usebanner'] ? FALSE : $vars['page']['advertise'];

I tried everything and nothing is written to advertise block.

Comments

komal.savla’s picture

Hi,

I have tried to Keep the advertise Block always available (also with the banner rotators). I have done the following :

I have commented out the following line from the template.php

 // Set $page['advertise'] to hide advertise space (if not used).
  //$vars['page']['advertise'] = $vars['usebanner'] ? FALSE : $vars['page']['advertise'];

And In page.tpl.php i have printed the advertise region in a different div outside the

<div id="advertise">
    <?php print render($page['advertise']); ?>
  </div>
  
  <div id="header-images" <?php print ($usebanner == 0) ? 'class="unlimited"' : ""; ?>>
    <?php if (!$usebanner): // Use drupal region ?>
        <?php elseif ($banner_image): // Use marinelli banners ?>
          <?php print $banner_text; ?>
          <?php print $banner_nav; ?>
          <?php print $banner_image; ?>
	  
        <?php endif; ?>
      </div>
      <!--end advertise-->
    <?php endif; ?>

And also added the following css

#advertise {
  background: #054B81;
  color:#FFFFFF;
  float: left;
  width: 100%;
}

Thanks,
Komal