drupal-module

programmatically change "to" email field for the webform module

drupal 6 web form module allows a user to specify a "to" email address. but how can i change that "to" email adress programmatically. for example: i have some nodes in the drupal 6 system, each node has an email address, when a person accesses that node (page), programm put that node's email address in a session variable, then when the...

drupal's hook_preprocess_page not working as expected

i am having an issue where hook_preprocess_page 's changes to &$variables is not being rendered, even though it is the last item under $theme_registry['page']['preprocess functions']. logging contents of $variables to a file show the contents changed, but contents appear unchanged on the site. flushed all cache on drupal, flushed all bro...

Tags of Tagadelic Module are not working

Hi All, I have recently upgraded my website to Drupal 6 to Drupal 5 and everything is up n running except Tagadelic Module. I have enabled the updated version of tagadelic module and the tags cloud comes up fine however none of the tags take me to the designated link/page on clicked on it. I am not sure if its an issue with the mo...

Drupal + LightBox2 component = use body as title (caption) for lightbox

Hi there I am using the LightBox2 component on my website to display the gallery images in a grouped lightbox. I add images to the website by using the Image component and adding all the images to the Photos book. However, images can still be viewed separately on a page, if I so choose. The url would then look something like this: www.m...

How to add javascript to page on login and logout in Drupal 6

I'm working on a module and am trying to add some javascript to the next page a user sees after logging in or out. Calling drupal_add_js() on hook_user (op == login) doesn't seem to work; I'm assuming this is because drupal_goto is called after the login is completed and a fresh page request is initiated. I've considered using hook_use...

Crucial Drupal Modules for Dynamic Site Development

I have spent the last few days playing around with Drupal for the first time, and I really like it. Especially after building dynamic sites from scratch. Being that there are thousands of modules, I would like to know what modules SO users cant live (or develop) without. What modules do you always (or always with specific requirements)...

Node titles as menu items in drupal

hi! i've a node type "Gallery" and a menu title "Gallery" which shows all the available galleries with the help of views. Now, when the user creates a new gallery, i want the name(title) of that gallery to add as a child element to the "Gallery" menu item.. is there any module for that? thankx.. ...

Drupal Multi-Module Combinations for Cool Effects

I am looking for a better understanding what truely can be done with Drupal modules. Specifically, module combinations that do something practical, specific to a need, and very cool. Links to sites implementing these are appreciated. +1 for creative and practical uses ...

Drupal Displaying the Vote up down widget 2.x

I'm using the drupal vote up down module and a module which overrides the node display, leading me to have to put the vote up down into a block (as opposed to having it be automatically rendered). Here is an issue with a snippit on how to do this in 1.x http://drupal.org/node/544354 Unfortunately 2.x is totally different. Does anyone ...

Include OpenId in drupal

hi! i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job? EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro.. it's simple..i've openID enabled in my drupal 6. When i t...

Drupal Best Practice for Settings on Content Type Edit Forms?

I've been curious what is the best practice to add custom settings to the admin/content/types (drupal 6.x) Update: Jeremy has suggested (unsurprisingly) to use hook_form_alter(). I'll try it out and report back. ...

Drupal: customizing user registration workflow for communicating with another webapp

Hi all, I'm new to Drupal6 and spent long time searching how to implement the following feature without success: I use Drupal as front-end/doc board for a web-app. I want to mirror all user account creation, update and deletion on this web-app, i.e. send user name and password. I started coding a little module implementing hook_user (h...

drupal how to get fetch multple rows

how to fetch multiple rows in drupal and store the desired row in variable . while ($fields = db_fetch_array($result)) { echo ""; foreach($fields as $key => $value) { echo "$key = $value\n"; } it works it displays the results but i want to get the value of one row and store in another varaible like $fields['some column na...

Drupal: how to see the query when the node is created or any content type is created

I want to know the insert query when the content is created or any node is created. What is a simple example for that? The main purpose of doing this is I want to log the entries when the node is created. So I have created a history content. When the user creates certain type of content, I have inserted his/her details in to the table...

drupal what does vid mean in drupal

i m completly newbie to drupal i have designed a view and when i see the query in preview section SELECT node.nid AS nid, node_data_field_crm_history_brokerid.field_crm_history_brokerid_value AS node_data_field_crm_history_brokerid_field_crm_history_brokerid_value, node.language AS node_language, node.type AS node_type, node.vid AS...

drupal 6 can any one tell me how to write a query to insert into the content type

i have created a content type named history when ever users want to opens specific page the content history should be inserted with new row. i m using rules but stucked with query can any one help me please very urgent guys. i have written a simple query to insert the data it even works but the problem wheni fetch the data in view it ...

How can I programmatically store an image in a publicly accessible location on my Drupal site?

Hi, I am writing a Drupal module where users send down content (formatted as HTML). The content will almost always include <img> tags. Those tags will reference the user's server. But, I don't want to hit the user's server every time that content is requested; I want to serve up a version on my server. So, I have written a function ...

problem with Search module in drupal

hi! I've problem with the search module in drupal. When I do a seach, it return 0 results even-though there are patterns matching. I ran the cron manually and flushed the cache. Now, the search module works fine. I wanna know whether I should do this procedure regularly for the search module to work? thanks. ...

drupal custom created actions doesn't show up in the rules list

my actions doesn't show in the Triggered rules list i have to flush the cache or restart the system most annoying when i try to create a 'execute custom php script' action next time when i open to make few changes it shows a blank script where i have written some code. my task is to save the selected nodes in the cck field i have g...

drupal how to pass parameters from panels to views

i have to design a page with multiple views, so thought of using panels is there is any other way to use views in views in panels how can we pass token parameters to the views and the final one what is variants(in panels) all about ... urgent guys help me please..... ...