drupal-6

SSL: Why does Chrome report mixed content? (Drupal 6)

早过忘川 提交于 2019-12-01 14:58:37
问题 I've just got a site running nicely with the whole site running through SSL, but Google Chrome is throwing a "This page contains some insecure elements" message, which isn't good in terms of end user trust-ability. All other browsers work fine, and give the golden padlock. The site is a Drupal 6 e-commerce site, running on apache2, and the error appears in the front end as well as the admin area. Does anyone know of any methods to find out exactly which elements are being considered insecure?

Auto-updating width/length/area using jQuery and Drupal6

社会主义新天地 提交于 2019-12-01 13:57:41
I'm using Drupal to create a measurement sheet ( Measurement sheets in Drupal 6 ) and am at a point where I have all the fields in place, I just need to write some jQuery that auto-updates the appropriate field when the user enters data. Code below: jQuery(document).ready( function ($) { $('input').change( function() { $parent = $(this).parent("td").children("div").children("div"); length = $parent.children("div[id*='field-length-0-wrapper']").children("div.container-inline").children('div[id*="field-length-0-value-wrapper"]').children('input[id*="field-length-0-value"]').val(); // get the

How can I set a different homepage per language in Drupal?

有些话、适合烂在心里 提交于 2019-12-01 11:51:29
How can I set a different homepage per language in Drupal ? I'm only using locale module (not i18.. or other translations module). thanks You can do it without path module in a very simple fashion: First of all, go to sites/default/settings.php and define the frontpage as multilingual variable: $conf['i18n_variables'] = array('site_frontpage'); After that, clear cache and go to admin > Site Information. You will see that below "Default front page" there will be: "This is a multilingual variable.": change the admin language (usually there is a block of language switcher in the sidebar) and

Drupal Views2 Exposed Form how to change

孤人 提交于 2019-12-01 11:16:24
I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible then I would like to have the button text something different than apply. I hacked it for now and change views_form in views.module but that does not seem like the right way to do it. I only have one exposed form right now, but what if I add more? Please see http://www.wiredvillage.ca/News for my example. I am poking around drupal.org and seeing others with the same problem but no solutions so far. Not sure where the best

Saving nodes with a filefield

旧城冷巷雨未停 提交于 2019-12-01 10:59:15
I'm in the progress of creating a bulk upload function for a Drupal site. Using flash I'm able to upload the files to a specific url that then handles the files. What I want to do, is not just to upload the files, but create a node of a specific type with the file saved to a filefield that has been setup with CCK. Since these are audio files, it's important that filefield handles the files, so addition meta data can be provided with the getid3 module. Now I've looked through some of the code as I wasn't able to find an API documentation, but it's not clear at all how I should handle this.

Saving nodes with a filefield

南笙酒味 提交于 2019-12-01 07:57:00
问题 I'm in the progress of creating a bulk upload function for a Drupal site. Using flash I'm able to upload the files to a specific url that then handles the files. What I want to do, is not just to upload the files, but create a node of a specific type with the file saved to a filefield that has been setup with CCK. Since these are audio files, it's important that filefield handles the files, so addition meta data can be provided with the getid3 module. Now I've looked through some of the code

JQuery FancyBox with Google Maps

爷,独闯天下 提交于 2019-12-01 07:32:46
I am able to print the map using Drupal code in a div. I would like this map to appear inside a fancybox and to be hidden on the website. I've managed to do it (fancybox works ok) however the map is not displayed correctly - there is no navigation and only grey empty area inside Map (though google logo is there). Does anyone have an idea what could be wrong here? I guess it might be the case that ID renders only one element, so it only renders the background and the rest is ignored, but to be honest I have no idea(use class instead). Any advice appreciated. Thanks My code: <script type="text

JQuery FancyBox with Google Maps

空扰寡人 提交于 2019-12-01 04:45:52
问题 I am able to print the map using Drupal code in a div. I would like this map to appear inside a fancybox and to be hidden on the website. I've managed to do it (fancybox works ok) however the map is not displayed correctly - there is no navigation and only grey empty area inside Map (though google logo is there). Does anyone have an idea what could be wrong here? I guess it might be the case that ID renders only one element, so it only renders the background and the rest is ignored, but to be

Drupal 6 Views 2: Setting Date Arguments

别说谁变了你拦得住时间么 提交于 2019-12-01 01:22:15
Passing uid as an argument works fine with this code: $bouts = views_get_view_result('Results', 'page_1', array($user->uid)); The key line in views_get_view_result that sets arguments is: $view->set_arguments($args); But what about passing date ranges? Also, if something is specified as a filter on a view, is there a way to prorammatically alter it? views_get_view_result: /** * Investigate the result of a view. * from Drupal.org. * * @param string $viewname * The name of the view to retrieve the data from. * @param string $display_id * The display id. On the edit page for the view in question,

How can I associate many existing files with drupal filefield?

喜你入骨 提交于 2019-12-01 01:20:39
I have many mp3 files stored on my server already from a static website, and we're now moving to drupal. I'm going to create a node for each audio file, but I don't want to have to upload each file again. I'd rather copy the files into the drupal files directory where I want them, and then associate the nodes with the appropriate file. Any ideas on how to accomplish that? Thanks! I am not sure if I am going to propose a different approach or if I am about to tell with different words what you already meant with your original question, but as you want the nodes to be the files, I would rather