Banner Mod not working

wizzie - January 19, 2005 - 20:19

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

You may want to go and check

robclay - January 19, 2005 - 20:57

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

Done that

wizzie - January 20, 2005 - 09:04

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

Did you edit your theme?

grohk - January 20, 2005 - 11:00

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

How do I edit the theme?

wizzie - January 20, 2005 - 12:06

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

add a block for your ad

dstockmann - January 20, 2005 - 14:51

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.

Block vs. top of page

kbahey - January 20, 2005 - 15:20

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.

Applying Patch

wizzie - January 21, 2005 - 13:09

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

Many Thanks

If you are using Linux

kbahey - January 22, 2005 - 18:32

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.

Re: the patch you posted on baheyeldin

UnderDesign - May 11, 2005 - 15:22

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

If not, is there one anywhere that does?

Regards

Patrick

No

kbahey - May 11, 2005 - 15:48

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

just cant this to work - help required

jklondon - August 15, 2005 - 16:28

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

 
 

Drupal is a registered trademark of Dries Buytaert.