I user drupal 4.6.3 and banner .module and in blocks are the banners displayed.
But if i want to use the bannercode in an article or blog-entry after #!--break--# the banner is not display.
First i used full-html and also php as filter.

Do you know how i can display a banner after the *break* in an article or blog-entry?

greetings from germany, holger

---
www.stnetwork.de
www.ebec.net

Comments

holger’s picture

Do nobody have an idea for this problem?
I have searched in forums here but didn't found any answer :-/

greetings from germany, holger

http://www.ebec.net . . .
http://www.stnetwork.de . . .

holger’s picture

I try to use a code like this in node.module but there comes an error message, do you know what my mistake is and how to fix it?

function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) {
  $node = array2object($node);
if (module_exist('banner')) { $banner= $banner_display(2); }
  // Remove the delimiter (if any) that separates the teaser from the body.
  // TODO: this strips legitimate uses of '<!—break—>' also.
  $node->body = str_replace('<!—break—>', '', $banner, $node->body);

The error message is: Fatal error: Call to undefined function: () in /www/htdocs/stnx/modules/node.module on line 485

greetings from germany, holger

http://www.ebec.net . . .
http://www.stnetwork.de . . .