Questions tagged [6]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

551 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
6answers
2k views

How do I allow a free product into a cart, but only if cart net value is above $10?

I'm interested in running a promotion... I'd like to make a product free if the customer's cart total is $10... I was able to do that with this module http://drupal.org/project/uc_discounts_alt ...
7
votes
3answers
1k views

How to use URL parameter and page callbacks for tab menus correctly?

I'm using Drupal 6 and I'm trying to display two tab (menus) on a page that has the URL /vehicle_info. Both pages that the tabs link to should take a node's nid as parameter. My current code looks as ...
5
votes
2answers
345 views

How to create a chart for tracking Product stock over some period of time using Ubercart?

Does anybody know about a good solution for tracking Product stock in a certain timespan? It is nice to see the stock numbers of products, but I find quite handy to see product performance over time. ...
5
votes
1answer
729 views

Why does the Webform disappear after changing Submit button text in Form settings?

I have created a Webform page called "Quick Quote". It is working fine in the website. But when I change the "Submit button text" to a new value in Advance Settings >> Form Setting ...
4
votes
1answer
1k views

Additional Configuration to disable anonymous session cookies?

I am running a clean install of Pressflow 6.28. I have set the following configurations: Cache Mode: Normal; Min Cache Lifetime: 5 minutes; Page Cache Max Age: 1 day; I have installed no contributed ...
4
votes
2answers
1k views

Adding new rows on a draggable table via jquery

I have a draggable table with preloaded "new items" - sorta like the Power Edit feature of the menu_editor module. Everything works perfect. However, I want to have a button that adds a new row via ...
4
votes
1answer
680 views

What are the appropriate configurations for the Subdomain module on Window 7 running XAMPP?

I have installed the Subdomain module (v 6.1.7), and I'm configuring a subdomain for testing on localhost. I have been tearing my hair out for days now, trying to get this module to work on my PC - ...
4
votes
1answer
371 views

Append Fields to node form by ajax call

I have a node form with some fields, now I want to append some more fields to it on an ajax callback. in the ajax page I have rendered the new form elements with drupal_render function My problem is ...
4
votes
1answer
219 views

How can I implement a flag module with caches but won't affect cache the flagging nodes?

According to a post here, I have installed flag module to implement product comparison. However I found that the CPU usage is very high 80-90%, then I tried to install boost and Views content cache to ...
4
votes
1answer
424 views

Node access user reference

Main Modules: Node access user reference Node access node reference Flags Rules I'm trying to give access to a user that clicks on a Join Project flag link. I have a User Reference Field attached ...
4
votes
1answer
1k views

How to make a calendar tab for every user showing user's events?

I followed the tutorial Calendars for Organic Groups - A simple tutorial for D6, and successfully created a calendar for every group in my site showing its events. I also managed to show the calendar ...
3
votes
1answer
1k views

Why this code doesn't send an email with drupal_email()?

I am developing a Drupal 6 module that should send an email after a form is submitted. So far, I wrote the following code. function mailform_mail($key, &$message, $params) { $headers = array( ...
3
votes
1answer
437 views

Why does a header set via drupal_set_header() revert to text/html?

I'm using the views_rss module in Drupal 6. Whenever I build out a View using this plugin, the following header is sent in a template_preprocess function: drupal_set_header('Content-Type: application/...
3
votes
0answers
144 views

Drupal 6, Locale Module & Language Fallbacks

I have a Drupal 6 website, with 4 different locales, but only 2 different languages. The 4 locales are setup as follows: en, site.com, (American English) en-ca, site.ca, (Canadian English) fr, ...
3
votes
1answer
273 views

Image upload broken when editing content

Sorry if I'm using incorrect terms here. What's going on is, when I edit any content, as the the types of content under 'Content Management > Content Type', there's the Image: field, which I think is ...
3
votes
1answer
174 views

Is there a way to add infinite number of Add More on webforms in Drupal 6

Simple question for all of you here dealing with Drupal 6.x... With Drupal's Add More module, is there a way to configure my webform so that there is no limit on how many of a specific fields I can ...
3
votes
1answer
291 views

Drag and drop content on user side in drupal 6

I am developing a Drupal 6 site in which I need to allow user to drag and drop blocks of content, but the arrangement of the content for each particular user should be persistent whenever they visit ...
3
votes
2answers
413 views

Date Repeat: Display only the first and last instances of a series?

I have been going crazy trying to find a way to display only the first and last dates of a series using Date Repeat, either in a view or the node itself, of repeating events. For example, there is a ...
3
votes
1answer
117 views

How to tell the filter views is using

I'm in the process of writing a custom views filter handler. In order to learn from the existing filters, I'd like to know how I can tell which filter class views is using when I'm configuring an (...
3
votes
1answer
219 views

Set multiple domain for one language

I am running a d6 website with i18n and I have multiple domain on it working very fine. Now I want to add another domain but for an existing language so what is the best solution for that. In fact, ...
2
votes
0answers
104 views

How do I create a comment programmatically in drupal 6?

I have a comment form which gets rendered below the content type on content page. I have a comment form and comments being rendered as well. Now the question is that I have a custom form that takes ...
2
votes
1answer
38 views

Print current drupal menu level

Hitting my head against the wall here. I've volunteered to print a list of the current menu items (at the same level as the currently viewed menu) print theme('links', $secondary_links, array('class' ...
2
votes
0answers
26 views

admin content overridden view not displaying

I have updated Drupal 6 using drush and all my admin views stopped working. I create a new view but when I display it the server takes too long with no response. I tried to track error log to see if ...
2
votes
0answers
59 views

Custom module data storage

In Drupal 6, I'm writing a custom module that generates several pages (as a Drupal newbie). Mainly public form pages for soliciting donations - users fill out their info (amount, frequency, etc.) and ...
2
votes
1answer
41 views

Error entries in Watchdog duplicated dozen and hundreds of times

I have seen that the table watchdog in my MySQL database is growing enormously, and after TRUNCATE, I see that for each visit to a single page, it generates hundreds of inserts, and when seeing them, ...
2
votes
0answers
197 views

How can I force Drupal to load all taxonomy terms?

On a site that heavily uses Drupal core's taxonomy, we are encountering serious problems when editing content: Already entered taxonomy terms are not properly loaded into the node editing form; fields ...
2
votes
0answers
153 views

drupal_add_js in input filter

I have a module that provides an input filter for Drupal 6 and 7. It renders some elements using a (heavy) JavaScript module that I don't want to include on every page. In Drupal 6 the input filter ...
2
votes
1answer
375 views

How do I set a product image?

When creating a product node for Ubercart, how do I set the product image? I am using the following code to create a product node. $node = new stdClass(); $node->name = "Title"; $node->title ...
2
votes
0answers
30 views

Mailchimp 6.x-2.6 module wont update user changes to Mailchimp

I am using the MailChimp module and getting a problem when updating user settings. The new settings are not synchronized with Mailchimp. The module is only working when users are created. In module ...
2
votes
0answers
45 views

Domain access: users of subdomain1 should not see users of subdomain2

I would like to restrict users and content to a certain sub domain. I am currently using Domain Access module and it's going quite well. The only problem is that I cannot figure out how to configure ...
2
votes
0answers
39 views

Inverse search with key words

What I need is a way to search with solr in drupal for everything that DOES NOT contain the given keywords. The default exclusion seems to require a base search first (ie at least one word to search ...
2
votes
0answers
147 views

Front page goes missing

I'm managing two D6 (6.29) sites that keep missing their homepage. It has been happening 2 to 3 times in a 24 hour period with regularity. I have contacted the hosting company who has been monitoring ...
2
votes
0answers
2k views

How can I change the ubercart order templates?

I have been searching around trying to find the answer to my issue, on and off for months. I'm using Drupal 6, Ubercart and Ubercart Marketplace. I'm trying to add the sellers address onto the packing ...
2
votes
0answers
102 views

Let users change their Password in Drupal 6 WITHOUT having to type email in

On Drupal 6, When a user goes to 'edit' their account, they must also enter their email to be able to change the password. Is it possible to populate the email field with their stored address to avoid ...
2
votes
0answers
34 views

What is the cleanest way to export one of the view page in D6 to D7?

What is the step by step procedure for exporting a view in d6 to d7? Views in D7 Also I have a content of type 'abc' .When creating a view I show -> content of type 'abc' Now for display format i ...
2
votes
1answer
69 views

Limit user (not role) publication of content to specific menu subtree

We have several roles. Each user is allocated to one role only. Each user has a separate menu area - e.g. user 1 - Profile - Product - Press Releases - release 1 ...
2
votes
0answers
101 views

How to test AJAX Callback with simpletest on Drupal 6

I know there is drupalPostAJAX() available on Drupal 7 to do this, but I want to use it on Drupal 6. So I found on this link : http://tiger-fish.com/blog/drupal-6-posting-ajax-callbacks-simpletest a ...
2
votes
1answer
244 views

Context reaction : Exclude specific block?

I've got a website with 3 large contexts : - internet - intranet - shop These 3 contexts are "tight" (sorry about my english, I think this is the word). My Block UI (admin/build/block) provides to ...
2
votes
0answers
460 views

What causes localized_options on a menu link to be set to (boolean) FALSE?

I'm having a problem with one of our existing Drupal 6 websites where if you go to Build > Menu > Primary Links it causes 500 error. The error message is: Fatal error: Unsupported operand types in /...
2
votes
0answers
52 views

How do auto-delete users that are blocked by access rules

How do I actually get the system to delete a user that tries to sign up with a blocked E-mail? In Drupal 6, even when an E-mail is blocked via an access rule, the user can still register with that E-...
2
votes
0answers
52 views

In D6 Rules, how do I grab a string variable from an event?

I have a D6 Rules custom event(1), that captures a string argument when invoked(2). I also have a custom condition(3) that I want to work in conjunction with this event. I need the string argument ...
2
votes
0answers
34 views

Limit available panes in the Views UI

I'm trying to configure the Views UI so that users can only see specific panes (i.e. only fields, filters and style settings panes). I tested SimpleViews and Views UI: Edit Basic Settings modules, but ...
2
votes
1answer
206 views

Drupal 6 querying multiple tables

Having some trouble with the Drupal 6 query syntax. My query works fine on its own: SELECT term_node.tid, term_data.name FROM term_node, term_data WHERE nid = 22640 Below is what I have when I ...
2
votes
1answer
162 views

How do I prevent a menu item from appearing?

I have a View with a page display. I placed the path of that page view in a menu item. I placed this link under the menu path Primary Links > Apps > Home > Admin View. In the View defaults section, I ...
2
votes
1answer
68 views

How can I print the number of the current pager in Views template?

I have a node View with pager configured Paged output, full pager, Items per page:30 So the view lists only 30 nodes per page. Now I would like to print the number of the current page and the total ...
2
votes
0answers
263 views

Export date in a different format

I'm using the Webform module to gather contact, and support information on our webpage, but we've got a serious problem. When I export the data using the download feature in the module, it exports ...
2
votes
0answers
208 views

Drupal 6 APC with domain access module not working for (sub-)domains

I've recently enabled APC in my environment and using it with cache backport and APC beta 7.x-1.0beta3 which is a backported version for D6 modules respectively in site running drupal 6.22 which uses [...
2
votes
0answers
774 views

In hook_menu `page callback` function is executing twice

In this menu My page callback function is calling two times. In get_mydata function a fetchthedata function is calling which takes long time to run. It was perfectly fine earlier. But now it is ...
2
votes
0answers
292 views

Boost and Varnish together in Presflow

One of my client drupal 6 site boost installed and working properly. Now they need to integrate varnish to the site. For that the site is upgraded to pressflow. The varnish is installed in server, and ...
2
votes
0answers
631 views

Retrieve site menus using REST API

I have a site where menus are created using Site building -> Menus -> List menus -> Primary links -> Add item option. Some of them have sub-menus under them. I want to retrieve these menus ...