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.

Filter by
Sorted by
Tagged with
0
votes
1answer
467 views

Hide the “view exposed filter” form or reload the page after submit the form?

I am using view exposed filter on a view display as "block". The block is added to dashboard. I added a second function to "Apply" button using hook_form_alter. I want to hide the expose form of view ...
0
votes
1answer
12 views

Different shipping $ for west coast

Let me just preface this by saying I know nothing of Drupal. I am a wordpress developer but my company just inherited 2 drupal sites from a company we recently purchased. I am using Drupal 6.25. I ...
0
votes
1answer
474 views

how to use hook_webform_submission_presave on a site with multiple webforms

I've got a question on the use of the hook_webform_submission_presave function for D6/webform 6.x-3.4 I've got a multi-lingual D6 site that has one webform for each language, I'm trying to create a ...
1
vote
1answer
482 views

Override theme function for menu callback

What I am looking for: I have a custom node link which, when clicked, displays a custom HTML content (option selections) in a lightbox. I need to pass an argument to the HTML content to generate the ...
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( ...
1
vote
1answer
632 views

Change ID of webform hidden element

How can I change the ID of a hidden element (created with the Drupal 6 webform module) using hook_form_alter()? The ID that it outputs is something like '#edit-submitted-component-name'. I need the ...
1
vote
2answers
557 views

Programmatically embed fields of one content type in the create/edit form of another content type and store all

I have drupal 6.x. How to programmatically (with a custom module) embed fields of one content type (content type X) in the create/edit form of another content type (content type Y) and store all ...
1
vote
1answer
2k views

“b.handleError is not a function” on image remove/upload

I was not able to upload/remove CCK field images from the UI; when I looked at the console in Firebug, it said, "b.handleError is not a function." When I look for this error on Internet, I keep ...
2
votes
2answers
859 views

Programmatically set the number of Multiple Value CCK fields in node edit form

I have a filefield multi-value CCK field and I want to be able to set the number of values that can be added based on some condition when the user is editing the existing node. Is there a way to ...
0
votes
2answers
1k views

Fatal error: Maximum execution time of 240 seconds exceeded in sites/all/modules/memcache/memcache.inc on line 353

I am using multidomain site . After adding a new domain record, I was asked as follows: Content access permission needs to be rebuilt on this page. When I clicked on Rebuild Permissions button, the ...
1
vote
1answer
641 views

Mail not going from drupal smtp

I have configured the smtp for drupal , as said in this link https://www.drupal.org/project/smtp and my smtp module folder lies in /sites/all/modules/smtp and phpmailer library lies in /sites/all/...
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 ...
1
vote
1answer
613 views

Menu Block won't display when a page has a View Block on it

I have Menu Block installed to provide some contextual menus for certain areas of a site. These generally work great. But I have a few pages where I'm adding a Views generated block to the bottom of ...
1
vote
1answer
719 views

Get Order Object on Checkout Complete Page

I'm trying to develop a new module but just can't get the correct solution, I hope you can help me. On the checkout complete page i need the order object with all information of the just created ...
0
votes
0answers
10 views

block-header.tpl.php just print only one block

I create block-header.tpl.php file just <?php print $block->content; but it only show one block in drupal 6. In drupal 6 header block have 2 blocks.
1
vote
1answer
818 views

how to validate minimum age in webform

I've got a question about webform and webform validation. I'm in D6.19 with webform 6.x-3.4 and webform validation 6.x-1.3 I'm adding a date field to capture age, and I need to validate that the age ...
0
votes
1answer
360 views

How do I load external JavaScript before local JavaScript?

I try to load JavaScript with drupal_add_js(), but it's not easy, and after fixing the loading of external JavaScript, I faced off a loading order issue: My external JavaScript is loaded after my ...
2
votes
2answers
577 views

Assign a node to an organic group

Programmatically assign a node to an organic group is following my previous question which I have found the solution for Drupal 7, but I am now looking for the same issue in Drupal 6. How can I ...
0
votes
2answers
816 views

How to set body content using preprocess_node?

I need to alter the body html for a specific content type which will be processed by the Pagination module. I think preprocess_node will work, but I'm having trouble figuring out how to change the ...
0
votes
1answer
590 views

How to make Ubercart Ajax Attribute Calculations work with Fusion theme?

I have a website set up with the Fusion theme, and Ubercart Ajax Attribute Calculations is not working as expected. I switched my theme momentarily to Garland and it did work then, so it's definitely ...
1
vote
1answer
2k views

Adding the video field to a content type

We've been using an SWF player for a while. I added the Video module without adding a new content type, just to see if the HTML5 tag worked. It does. However, that obviously doesn't give us an SWF ...
0
votes
1answer
567 views

CCK checkbox or dropdown widget as a field?

I am trying to setup a new CCK field for a content type to display as a checkbox but I see I don't have that option in the widgets type. Shouldn't that be included in the default CCK? I am using the ...
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 ...
1
vote
2answers
2k views

print field in views row template

I try to make a custom view using templates. I need to print one certain field at the last row, after all other fields have been printed like so: --1st row field1 field2 --2nd row field1a field2a --...
0
votes
2answers
811 views

Adding CCK field to solr index

We have a cck field called "keywords". We need to add this field to the solr index so we can search on it from outside of drupal. How are CCK fields managed in the solr index? UPDATE: I created a ...
0
votes
2answers
902 views

Creating Primary Sub menu's programmatically

I want to display the latest 10 nodes of node type 'ABC' as a sub menu link under my primary menu. Are there any modules for Drupal 6 to help me achieve it. I have created a view which gives me a ...
1
vote
2answers
1k views

Convert special characters to normal characters

? and = will be used as parts in my url. In generating the url, I use <?php echo l('node/'. $someID .'/delete?destination=chapter/'. $anotherID);?>. When I check on Firebug, the href attribute ...
3
votes
1answer
1k views

Authentication for iCal feeds

I have a calendar feed (using the Drupal Calendar module) on a site and I'd like to add this calendar to Google Calendar. I have this working for a publicly accessible calendar and it works fine. The ...
0
votes
1answer
465 views

How to create an iCal feed of non-Nodes?

It looks like the Calendar/Dates modules don't add Views Display types directly. Instead you're apparently supposed to copy one of the default views that come with Calendar to access the additional ...
2
votes
2answers
941 views

Is it possible to create an iCal stream from Open Atrium's calendar feature? If so, how?

I'm getting mixed signals around whether or not its possible to create an iCal feed from the Open Atrium Calendar Feature. When I try creating a new view or adding a feed to an existing view, I don't ...
0
votes
2answers
927 views

Module that will display certain facebook content?

I realize there are quite a bit of facebook possibilities main having to do with facebook account connections. What I'm interested though, is content (especially videos!) that is being put up in a ...
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 - ...
1
vote
2answers
774 views

How to add a confirmation form after the user clicks “Save” on a node edit form?

On a site I'm building, a user can edit certain fields on a node that cause a chain reaction to happen (which I've implemented using hook_nodeapi's "update" op). Since this chain reaction potentially ...
3
votes
2answers
363 views

How can I add a caption to my navigation menu?

How can I add a caption to a navigation menu in Drupal 6? I am trying to achieve this effect:
5
votes
1answer
731 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 ...
0
votes
1answer
352 views

Webform 'Save draft' to send a mail with $sid

I am having a webform and I display the 'Save Draft' buttoan on the form. Once I click on the Save draft I need to save all the values in the DB (as it does on Submit event) and should send an e-mail ...
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
3answers
834 views

How to use curly braces in schema default value?

I have a long varchar field that I'm using to save serialised data with drupal_write_record. I'd like to set the default value of the column to "a:0:{}" (which is serialize(array())). However, when ...
0
votes
1answer
448 views

How can I increase the 128 character limit of a menu path?

I know there are patches to core, but they were never backported to Drupal 6 from what I can tell. Increasing path length to 255 chars Menu path length is limited by the UI to 128 characters How ...
1
vote
1answer
720 views

How do i add Meta Tags on panels page?

I want to generate meta tags on panels node pages. I am adding Meta tags using nodewords module, it works fine on other node pages except panels generated layout. Any workaround for this?
2
votes
1answer
818 views

Strange sorting in one facet of Apache Solr Search results

We're using the Apache Solr Search module to allow users to filter search results; for example, if a user searches for Pepsi, they get all results, but along the left of our screen they get facets ...
1
vote
3answers
395 views

Add additional values to a view result

I try to accomplish following task: I have a view with all products that were ordered during certain period of time (based on invoice creation time). (view is of type of order) I am using sql ...
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 ...
0
votes
1answer
373 views

How do I display a summary page after finishing a multistep form?

I have a multi step form in Drupal 6, and I want to show a summary page based on entered information in the steps after finishing the steps and user click finish button. I am using the ctools wizard ...
0
votes
2answers
683 views

Always show next page link in pager

function mythemename_pager_next($text, $limit, $element = 0, $interval = 1, $parameters = array()) { global $pager_page_array, $pager_total; $output = ''; // If we are anywhere but the last ...
3
votes
2answers
2k views

How can nested subdirectories and symbolic links be used without conflict with a multi-site Drupal installation?

My question is basically a reflection of the question found here (which unfortunately does not have a clear answer): http://groups.drupal.org/node/20604 Please note that this is not a question about ...
5
votes
4answers
3k views

How do Pressflow Drupal sites handle user Cookies?

Is this something handled by Drupal? What PHP, Apache, Varnish settings affect cookies? Additionally, what's the difference in cookie handling between plain-vanilla Drupal and Pressflow? I was ...
0
votes
1answer
936 views

Can I rename index.php?

I am going to replace the front page of a Drupal 6 site with a new index.php. How can I rename the Drupal 6 index.php (say, to drupal.php) and keep the Drupal site functions working? For example, I'd ...