Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By holger on
I am looking for a possibility to display a banner code from banner.module or also the google adsense code automatic after every treaser !--break-- in articles and blog-entrys.
example:
some text some text some text some text
!--break--
banner or adsense-code (automatic displayed)
more text more text more text more text
more text more text more text more text
How can i realize that?
greetings from germany, holger
Comments
Here's a simple patch for
Here's a simple patch for HEAD which adds some dummy text. More work needed for adsense etc. integration.
Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org
error
Thank you, I did the changes like
but i get this error :
Parse error: parse error, unexpected T_STRING in /www/htdocs/stnx/modules/node.module on line 487
The Banner group 1 exists.
I use Drupal 4.6.3 updated from 4.6.2
How can i fix the error?
greetings from germany, holger
http://www.ebec.net . . .
http://www.stnetwork.de . . .
The Solution
Micha from www.langmi.de have made the final the solution :
danke an Uwe und Micha :-)
http://www.ebec.net . . .
http://www.stnetwork.de . . .
Another thesolution?
Im very happy to see a solution for this problem. I can see what this code is doing but im just starting to understand it.
My question..
Is there a way to use this script without the banner module and just put a script in for openads?
The script i want to use is something like this:
I hope someone can helps me with formulating the script.
Thanks in advance,
Ralf
openads code after break
Ok,
I almost did it but... i managed to get an openads code to look for a banner after the break.
The strange thing is when i add this code my search function and log in function doesnt work anymore.
There must be a way to insert this script but my knowledge of code is not enough to get it working.
I really hope someone can help me with this. I m using openads to put in google adsense or a banner when available. The advantage of working with openads is that i can manage all my advertising for all my drupal sites from 1 place.
This is what i did to get the banner after the break:
// $Id: node.module,v 1.776.2.19 2007/07/26 19:16:46 drumm Exp $
Why is this giving troubles to the login and search function?
Pls help :)