drupal

.htaccess rewrite rule to add a string in the middle of the URL

Using a .htaccess rewrite rule, I need to add "?q=" before the path on any URL's containing the word "imagecache" Therefore, if the URL is: http://mysite.com/sites/default/files/imagecache/myimage.jpg ...then it will really try: http://mysite.com/?q=sites/default/files/imagecache/myimage.jpg But that will ONLY happen if the URL c...

How to manually register a user in Drupal 6.x?

The website has a normal registration form which allows users to register and the likes. I have created a new custom form in which I am capturing the username/password etc. How do I manually register the user in Drupal system? Thank You ...

Simplest way do get started debugging PHP (Drupal)

What is the simplest way to get started with debugging and hit a specific line in a Drupal install? Generally? With Eclipse? (how difficult?) On Windows, knowing and having access to Visual Studio (How Difficult with Visual Studio?) (No Pay: Free or trial) Locally on Windows I am using the Acquia Drupal WAMP-stack. On the server Ub...

Adding nodes to drupal from remote site using ajax and post

I'm trying to add nodes to my drupal site, from a campaignsite using AJAX request. I have set up a menu_callback item in my hook_menu, that checks if any $_POSTs are coming in, and it works if i make a form that has the action='http://mysite.com/menucallback/url', but i get nothing in response if i make the same request with ajax. I h...

Drupal: png is not allowed extension (but it is!)

hi, I'm running Drupal on IIS server 6. I'm having an interesting error to upload images into my node. I get "png" is not a known file. See image: http://dl.dropbox.com/u/72686/pngError.png But I've added png (default settings) to the allow image files list, and indeed you can see in the same image, that png is an allowed extension....

How to use hook alter form in module to register a user and also save some data in another table?

have a general idea on how to use hook alter to modify the feel of the registration form . However the challenge I have is to not only have the user register, but to save some extra data into another table and then redirect user to a new page. How would I get about doing that? Please help ...

drupal how to show custom profile field

i added a profile field to registration form. how to show in edit registration (account) form . i wrote a module for edit account in that $form [function editregistration_form_user_profile_form_alter(&$form, &$form_state) ] doesn't contain the values of custom profile fields. ...

Options for displaying OG groups a node is published for on node page?

What I want I have several OG groups in which content can be published. I would like to display which OG groups a node has been published for when viewing the node page. Like in "This page is published for: Department A, Department B." The code snipped below shows the data I have in the $node object in node.tpl.php. This data is gener...

How to add a Drupal CCK Custom Field which supports unique identification of multiple values

I need to create a custom field that supports multiple values which can be uniquely identified (beyond the delta field which changes when the values are re-ordered). I have created a module for the field and specified the two database columns that I would like CCK to use (one for the value and one for the ID) but I am not sure where the...

Drupal Views: find the term created by a NAT association

I use NAT (Node Auto Term) to associate a content type with a vocabulary. Then I'm using that generated and sync'd vocabulary to create relationships with other content types. Within the Views UI, is there a method for finding that generated Term for any given Node? I've tried the "NAT: Nid" relationship, but that doesn't seem to return ...

Drupal. Use AJAX to update view's content

Hi, I've created a view in Drupal that retrieves a list of nodes. The display of this view is a page and it works perfectly well. It does even allow me to filter its content by argument. See the current's view configuration (click to enlarge): I want to use AJAX to use the filter (by parameter) functionality without reloading the pa...

Drupal Studs help me with my form_alter hook ( I am almost there)

So I think I am almost there conceptually but need some missing pointers. Objective is to add a few more fields to the normal user registration form, style it a little, then submit it with storing the extra fields in a table. This is what I have so far. Can someone give me the final nudge and get me going. Please help me. Also how do I...

How to extracting individual dimensions from $node->content['dimensions'] in Drupal's Ubercart?

On my Ubercart node-product.tpl.php page, I am trying to extract the individual product dimensions (height, weight, length) from the more generic: print $node->content['dimensions'] ['#value']; which returns "Dimensions: 72in. × 42in. × 30in." Using var_dump(get_defined_vars()); I'm able to see that the dimensions are being outputted in...

Drupal and Exchange Server Calendar

Is there a module, or other way to integrate Drupal/Drupal Calendar and Exchange Server Calendar? ...

Why am I getting a "skipping broken view error" ?

This is Drupal 6.x and am having a nightmare of a time to modify a simple drupal form. This is a module file. function modulename_menu() { $items = array(); $items['school/registration'] = array( 'title' => 'Registration Form', 'page callback' =>'drupal_get_form', 'type' => MENU_CALLBACK ); return $items; }...

Can someone explain "access arguments" in Drupal?

Trust me I have tried Googling it but I am just not getting a clear grasp. Thank You. ...

What is the trick to have 2 separate user registration formin Drupal using different templates ?

I have a default user registration form that cannot change. However my boss wants a second registration form that is laid out differently than the first. I am new to Drupal so some explanation would be great. Thank you in advance ...

drupal combine account and profile

Can any one suggest simple code snippet for combining account and profile tabs in drupal 6. i'm using onepageprofile module it works fine but any other simple solution ? ...

Multiple Prices for a product in ubercart?

Hi, My product is a book. Each books will be sold in 3 formats. 1) Print 2) Online 3) Print + Online All the three prices for each book will be different. If i add the book as different product. I have to add all the content like Index, Author details etc. 3 times for each book. Is there any way where i can allow admin to add 3 pric...

Dates search in Drupal (greater than, less than) using CCK / views / facelet?

I'm working in a site that manage events (like parties). Each event could have several fields, including date, that the user could add thanks to CCK module. Now, the problem is when I have to search using those fields. I could not find how to search for events between a range of dates. I discover the facelet module, which is pretty good,...