This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Modifying node->body in a module?

I'm working with the best way to place adsense advertising.

I've written a module to do it the way I want, and now I'm getting this error.

Cannot modify header information - headers already sent by (output started at /usr/www/users/davidh/modules/adsense_inline/adsense_inline.module:52) in /usr/www/users/davidh/includes/common.inc on line 224.

Another line reported is at common.inc line 192. I am using drupal 4.6.2 (so that you know where the line#'s point).

In both cases the header() function is being called.

Can someone help me understand how to avoid this error? The code for my module and some discussion follows.

How do i add Bidvertiser ads

Yeah i have bidvertiser ads, now how would i add them.. they are in javascript

Module Developer Wanted

Hi,

I'm looking for an experienced module developer to write something for www.threadwatch.org

Rough Spec:

Collecting time spent viewing a page / node

For a custom module I am developing, I am trying to find a way to capture the time a user spends viewing a node/page in real time. In this quest, I have been tinkering with the _init and _exit hooks - but that does not seem to be accomplishing the goal. Any ideas on how to accomplish this are greatly appreciated!

Regards,

Radi Shourbaji
http://www.profconnect.org/radi-shourbaji

/admin/module doesn't show up

Whether I use the menu link or go to the direct url /admin/modules doesn't show up. When I could get the page I have a new module that won't show up on the list so that I can enable it. It's _node_name, all function names begin with, and the name of the file is insurance. I'm stumped. Thoughts? Suggestions?

arg(1) and arg(2) empty, contrary to URL

Even though the URL param reads "?q=cases/details/26", arg(0) equals "cases" but arg(1) and arg(2) are empty.

What could be the problem?

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions