Hi all
Just installed Drupal and its great! also have installed the banner mod and configured it, can see banners in the admin area but they are not showing on the pages, any ideas

many thanks

Comments

robclay’s picture

You may want to go and check the
administer -> users -> configure -> permissions and check "show banners" for everyone.

wizzie’s picture

I've selected show to all but still does not work

grohk’s picture

Did you edit your theme as described in the readme.txt section called "Displaying banners and text ads from your theme:"?

---
Code Orange: Drink Your Juice

wizzie’s picture

I have no knowledge of php, so how do I edit the theme?
Have found a patch in the downloaded banner mod, but how do I apply it?

Thanks

dstockmann’s picture

I didn't modify the template to get my banner mod working. just read the installation document on how to add a block. it works great for me.

kbahey’s picture

A block will always work, whether you modifed the theme files or not, just like dstockman said.

However, in order to have banner ads at the top of the page, you need to modify the theme.

There is a contrib directory in the banner tar.gz file. In it you will find a diff file that you can use to patch the themes to display banners.

Apply that and it should work.

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

wizzie’s picture

Thanks, I've found the patch, but how do I apply it?

Many Thanks

kbahey’s picture

If you are using Linux, then you do:

patch -p0 < patch-file-name

I do not specific instructions on how to do it under Windows though.

However, the patch is simple enough for you to apply manually to your theme. All you need is the following in the theme file, and corresponding :

<div id="banner">{banner}</div>

If you are using 4.5.0 Drupal, AND you use either pushbutton or bluemarin, then you can get the patched themes from a a web page that I set up specifically for that.

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

Patrick Nelson’s picture

Does this patch work with themes like Slash which rely on the PHPTemplateEngine?

If not, is there one anywhere that does?

Regards

Patrick

kbahey’s picture

This patch was for xtemplate based themes.

For phptemplate themes, you can do the following in your page.tpl.php:

<?php if (module_exist('banner')) : ?>
 <div id="banner"><?php print banner_display() ?></div>
<?php endif; ?>

You do not need to change the engine or any other file.
--
Consulting: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

jklondon’s picture

Can someone give me a hand with this – its driving me nuts – tried everything but cant see the banners. I am

- using blocks
- inserted the correct php code in the block (no errors)
- created a banner – image – its approved and enabled.
- No errors for seeing banner_db / banner_file

Help please – really want to get this working :(

Thanks

Sam