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

menu system question

how can i get PHP variabes with mid(menu id) and pid(parent menu id) of active(<a class=active>) menu item?

hook_user() to capture registration event

Any idea why the following hook function that i have written for my affiliates module
is not writing the user id into the table affiliates_referrals but instead writes 0 ?

function affiliates_user( $type, $edit, &$user, $category = NULL) {

global $base_url;
switch ($type) {
case "register":
db_query("INSERT INTO affiliates_referrals VALUES ( %d,UNIX_TIMESTAMP(NOW()),0,0,0)",$user->uid);
break;

}
}

Taxonomy Theme Override for Visually Impaired User

I'm trying to use the Taxonomy Theme module to make a view for a particular section.

I have a visually impaired administrator that uses a special theme. After I installed Taxononmy Theme, when she goes to the Admin section now her special theme is overridden and she can't see what is on the pages.

I'd like to make it so that for particular users - or if the user has chosen a default theme - that their choice is never overridden.

Any help on this would be greatly appreciated.

Thermometer Chart Block Module

I grabbed some PHP code from http://www.arkie.net/~scripts/thermometer/ that created a thermometer chart when sent a properly written URL. I've been using it on my site by dropping the PHP file into my download directory and calling it in the HTML of a custom block, but I thought it could easily be converted into a module so that others could quickly and easily include it in their sites and hopefully inspire improvements on the code to make it look prettier and have more flexibility.

Move the IBM example module from 4.7.x to 5.x?

I have been trying for a few days now to move the IBM example module ( http://www-128.ibm.com/developerworks/ibm/library/i-osource6/ ) to drupal 5 beta 2. I was able to follow the article very well and understand how the module works, but upgrading it to 5.x is proving to be a bit more difficult. I read the article a while back about how one guy upgraded tagedelic to 5.x, but he touched on only a few of the updates that I need to move the example module to 5.x.

Pages

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