This is a discussion that was started by email in the Oklahoma Drupalers group, and I'm moving it to this forum so that email replies are not distributed to our entire group.

Message #1 from rodney.rollison:

Okay, since I am still kind of new to the drupal world I hope I explain this correctly...

We had a custom theme built and it was based somewhat on the Marinella theme from Drupal (Drupal 7).
The company that did this kind of took what they needed to build our custom template and removed the Banner portion to put something else in its place.

I am wanting to put the Banner portion back into our custom theme and orient accordingly.

I have it fixed to where I can add banners via the theme on the admin side, but I cannot figure out why they are not rendering to the page.

I copied every line of code that I can see to our theme to make it work, but to no avail.

I am open to suggestions if anyone has any on how to fix this.

Thanks.
Rodney

Message #2 from couturier:

Add the Rotating Banner module to your sites>all>modules folder, activate it under the modules admin, and configure it.

Message #3 from couturier:

Follow-up to last comment, you must place the Rotating Banner as a block on the structure>blocks page.

Message #4 from rodney.rollison:

Well, this theme doesn't seem to use the Rotating Banner module. I am looking at the default Marinelli theme and I don't see that module activated and it works fine in default setup version I have locally.

Here is the code snippet I'm looking at:

<?php
if (!$usebanner): // Use drupal region 
?>

<?php
print render($page['advertise']); 
?>

<?php
elseif ($banner_image): // Use marinelli banners 
?>

<?php
print $banner_text; 
?>

<?php
print $banner_nav; 
?>

<?php
print $banner_image; 
?>

<?php
endif; 
?>

The variables here are not set, but in the template.php file in the $vars['banner_image'], etc, they are set, just not making it to the page.tpl.php page for some reason.


Message #5 from couturier:


Rodney, I do understand that you have until now approached this by trying to adjust the code, but seeing that your theme developers have deactivated the banner in code and nothing you've tried to this point has worked to reactivate it, a very simple and reliable solution is to use the Rotating Banner module. It will create the exact same effect. This module works beautifully and is supported by the developers at Drupal Gardens, with ongoing maintenance for any needed updates. You can place banners anywhere you place blocks. I have just finished working with this module myself if you would like to see a live demo, http://elitepianist.drupalgardens.com/node

Also, just as a reminder, you might get just as much help or more if you post support requests like this in the support forums where the answers will benefit everyone: http://drupal.org/forum

Thanks!

Message #6 from rodney.rollison:

I have added the rotating banner module as you suggested.

It is loading on the page initially, but on refresh the banner's stop rotating. Not sure why that is.
Also the Number or Button controls are not showing up as they should.

Any ideas?

Thanks
Rodney

Comments

couturier’s picture

It would help if I could see the site. Do you have a demo accessible? The rotating banners will start over on page refresh. You can adjust the delay between rotations in the block settings. The button controls should show up at the bottom of the rotating banner. What browser are you using? They will look different in versions of IE than they will in Chrome, for instance. Those buttons are CSS controlled in the module. If you can't allow access to your demo site, can you post a screenshot somewhere? Thanks.

Also, if you still have some old php relating to a banner in your template, I would recommend deleting it so that it does not interfere with the Rotating Banner module. Also, if after investigating the above suggestions does not help, you can search for related issues or file a new support request directly to the Rotating Banner Module Issue Queue which is monitored by the developers of the module.