drupal

grouping items in a view

I have a content type called "convention" and a content type called "convention session". Each session has a node reference to a convention. A convention has a "from date" and a "to date", and each convention session has a simple "from date". When a user browses to the full node view of a convention, I want a block to be displayed on th...

How to open a flash SWF in ThickBox in Drupal on page load, and close it after x seconds

After working for a prolonged time on a programming problem, I start to get coding tunnel vision. It makes it harder to draw back and look at the problem from farther away. Hence my question: I am using a Drupal 6 site. When a menu option is clicked, the page opens and a Flash SWF file needs to played in a ThickBox. After 8 seconds, th...

Change the order of the 'Search this site' form in Drupal

I need to change the layout of the Search Block in Drupal. It’s currently ordered Search Button > ‘Search this site’ > Search Input but the designs I have want it to be Search Input > ‘Search this site’ > Search Button How do I go around changing the order in Drupal? I can change the search-block-form.tpl.php so the submit button i...

Best way to save extra data for user in Drupal 6

I am developing a site that is saving non visible user data upon login (e.g. external ID on another site). We are going to create/save this data as soon as the account is created. I could see us saving data using the content profile module (already in use on our side) the profile module the data column in the user table creating o...

Drupal - log in a newly created user in PHP

I have Ubercart installed. I'd like to create a Conditional Action after an anonymous user finishes checking out. The system currently creates a user automatically, but it does not log them in - I want this conditional action to log them in. The conditional action allows me to write custom PHP to perform whatever I want - and what I wan...

Drupal user_external_login_register

The documentation reads: Helper function for authentication modules. Either login in or registers the current user, based on username. Either way, the global $user object is populated based on $name. It seems to me that this function does not actually perform a login (it does not trigger the user_hook with op=login. It doe...

calling user_save from within hook_init failing on Drupal6

I have a module that implements hook_init. Within that I have a case where I try to call user_save like save user_save (''); I figure this should work since I am not setting a uid, so it should create a new one. It also says that the $array should be allowed to be empty. However, this always returns FALSE. ?? I have also tried sett...

Drupal: Views Grouping Issue

With CCK, I've added a field to the basic "Page" node type called "Resource Type". There are four possible resource types to choose from, in a dropdown, "Training, News, Research, Tools". I've created a view that should group the nodes by their resource type. I've created 8 nodes, 6 of which are of type "Training", 1 is of type "Tools" ...

Drupal/Ubercart - Ubercart Fee - Applying taxes to fees

Hi, I am using the newest Ubercart and Ubercart Fee (http://drupal.org/project/uc%5Ffee) modules. In the taxes configuration I checked the fees. On the checkout the tax is applied correctly. However if you move on with the process (to order review and/or invoice e-mail) the tax is missing. Can anyone confirm this bug or help me out? I ...

Possible pitfalls on a multilingual Drupal site?

I'm about to embark on a journey to build a multilingual Drupal site, where I will most likely have to use Views, Panels and Taxonomy pretty heaily. I am a bit worried about the new-node-for-every-language approach, especially using Panels. So far I've gotten it to work similarly to what I want by not having multilingual support for th...

Is it possible to change the content type on nodes in Drupal 6?

I have inherited a Drupal site on which (for some reason) there are two different content types for news: one for press releases and one for everything else. I would like to combine the two and use a taxonomy to categorize the press releases and other news types. Is it even possible to do this? The site is using a number of modules, inc...

Drupal - Ubercart file download link not working from e-mail.

I have Drupal 6 installed with Ubercart 2.0. When an anonymous user purchases a product from Ubercart, a new account is automatically created for them and they are emailed a link to download the file associated with the product. The link doesn't work unless they are logged in, which does not happen for them automatically. I need one o...

Drupal — Fatal error: Class 'Memcache' not found

Hello, I have installed drupal on my localhost. It worked well 2 months ago, but now something happened and I don't know why. I'll be very grateful if you can help me. Thanks in advance. The full error looks like this: Fatal error: Class 'Memcache' not found in /srv/www/htdocs/modules/memcache/dmemcache.inc on line 177 1) ph...

Drupal - General means for finding templates?

Given that I have a URL to a page and I can see the content on it as a user, is there a simple way to find out what template files are producing the page? Ideally I would like to know three things: The current template file(s) being used The filename(s) I can create in the local folder to customize them What variables are available to ...

change user_profile_form form fields order

When a user login , the user will be redirect to a user profile page, which has a My account field set. the field set has 2 fields, "Username: ", "Email address:". those 2 fields are generated by drupal. those 2 field contained in a form which has a id ("user_profile_form") . I want to change the order of those 2 fields. I have tried...

Drupal theme function not being overridden

I'm using Ubercart and I'm attempting to override the following theme function theme_address_pane() which is in uc_cart_checkout_pane.inc. So I wrote the following function in template.php: function mytheme_address_pane($form) { return "asdf"; } However, it isn't replacing anything with "asdf". What could I be doing wrong? Edit: ...

Drupal 6: Getting custom fields into the database

I needed a custom field that couldn't be provided by the core profile module (Select list populated from a SQL query). I was able to successfully add the field with proper options; however, I am unsure how to handle this new field once submitted. From what I understand, I need to write a function that handles my SQL insert, and then cal...

slideshow module for drupal

hi! i'm in need of a drupal module which gives a slideshow from the images uploaded by the user..i saw the slideshow module but can't understand where to apply the settings.. thanks for ur help.. slideshow format: current image displayed here previous_button image image image image image image image image ne...

Drupal: Modifying a User at Registration

I needed to create a custom select list for the user registration page that pulls a SQL query from nodes I need to link to users. I have successfully accomplished this task.. :) However, when I submit the value, I can't seem to control where the value is stored. In fact, I can't store the value at all. I have created a custom field for ...

Drupal: re-selecting taxonomy terms in advanced search

I'm sure I'm not the first one to try to address this, but Google isn't doing me any good. If you use the Advanced Search in Drupal to filter on taxonomy terms, the search form comes back with the term IDs in the keyword textbox like so: search phrase category:32,33 The chosen values are NOT selected again in the taxonomy select box....