Posted by wizzie on January 19, 2005 at 8:19pm
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
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
You may want to go and check
You may want to go and check the
administer -> users -> configure -> permissions and check "show banners" for everyone.
Done that
I've selected show to all but still does not work
Did you edit your theme?
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
---
Code0range: Drink Your Juice
How do I edit the theme?
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
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
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, development, customization and consulting: 2bits.com, Inc.
Personal blog: Baheyeldin.com.
Applying Patch
Thanks, I've found the patch, but how do I apply it?
Many Thanks
If you are using Linux
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, development, customization and consulting: 2bits.com, Inc.
Personal blog: Baheyeldin.com.
Re: the patch you posted on baheyeldin
Does this patch work with themes like Slash which rely on the PHPTemplateEngine?
If not, is there one anywhere that does?
Regards
Patrick
Regards
Patrick Nelson
UK Nottingham Web Designers: The Webmaster Centre
Follow me on Twitter
No
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, development, customization and consulting: 2bits.com, Inc.
Personal blog: Baheyeldin.com.
just cant this to work - help required
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