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

Show/hide content depending on the url of the page that visitor came from

Hi,

I have an idea for the module but since I don't know PHP, it make a proposal here ;) Maybe someone finds it interesting...

Many people come from search engines clicking on search results. And in the URLs of the pages with search results we can often see the keywords people look for.

It could be interesting to have a module that looks for this keywords in the URLs of pages the visitor came from, and displays some content (a node or a block) to the visitor depending on the found keywords.

warning: Cannot add header information --Instant help needed

Hi all

I have developed a new module in drupal for my site .It works fine untill any user login or logout of the site.
On any login or logout the screen went blank n jus shows this warning:

warning: Cannot add header information - headers already sent by (output started at /var/www/html/drupal/modules/user_statistics.module:206) in /var/www/html/drupal/includes/common.inc on line 155.

by the way user_statistics is the name of my new module.
I think there is some problem in redirection .I dunno how to solve it Please help me.I need urgetnt help.

Problem in adding new module

Hi all

I have developed a new module in drupal for my site .It works fine untill any user login or logout of the site.
On any login or logout the screen went blank n jus shows this warning:

warning: Cannot add header information - headers already sent by (output started at /var/www/html/drupal/modules/user_statistics.module:206) in /var/www/html/drupal/includes/common.inc on line 155.

I think there is some problem in redirection .I dunno how to solve it Please help me.I need urgetnt help.

Thanx in advance :)

Problems with Image module from head

I'm having several problems with the image module from head.

1. Going to admin/settings/image gives a blank page
2. When I create an image node, there's no place to enter a title or description.
3. The actual image never appears unless I have it listed and click on the name in the listing when I view the node.

Why does taxonomy_select_nodes lack 'from' and 'count' parameters?

Does anyone have a straight answer for why the 'taxonomy_select_nodes' function is limited to using a persistent variable as its means for deciding how many nodes to return? I have a cron process that needs to examine the nodes specific term, and while I don't need to examine ALL the nodes each time, I do need to examine a good chunk of them. If I let cron set the persistent 'feed_default_items' variable (in Drupal HEAD) or if I modify the persistent 'default_nodes_main' variable (in Drupal HEAD/4.6), then there's the potential for my users to occasionally wind up getting hit with a page that has WAY too many nodes on it.

So, since modifying the persistent variables even temporarily is a REALLY BAD solution, I only have two other options. I either have to manually query against the taxonomy tables, or I have to patch the 'taxonomy_select_nodes' function. I really don't like the former option. As for patching, I don't want to apply a patch unless the patch is planned for inclusion in the next official release.

Could we possibly see the addition of "from" and "count" parameters to this function? I really don't want to have to re-patch this function again and again anytime I update my site to a newer version of Drupal. Unless someone has a good reason NOT to put "from" and "count" parameters into the function, this is a change I would really like to see happen in the

Pages

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