Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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;
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.
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.
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.