Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [6]

Version tag to tag issues specifically related to Drupal 6.x. Please note that 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
1
vote
0answers
18 views

How to order Alpha Pager by custom field?

I'm working on a D6 installation and I am trying to correct an alpha pager. If you visit vets-hall.org/stories/alphabetical you'll see I have a list of stories that have three custom fields: ...
2
votes
2answers
636 views

Reset password in Drupal 6?

My site is on localhost and I have access to database too. This is the structure of "users" table: The password field is of type "varchar(32)" having collection "utf8_general_ci". I tried to decrypt ...
0
votes
1answer
34 views

saving any view clears all cache

I am working in drupal 6. I know that saving any node clears cache but is the same with views? I am experiencing this issue. I would like to know how to prevent it. Thank you.
1
vote
1answer
351 views

How to add custom html inside form

I need to put some custom html tags and code inside the form elements am creating using form api . I defined a fieldset and need to come the html under this fieldset , code sample : $...
0
votes
2answers
299 views

What version of PHP/MySQL?

I just retrieve maintenance (archive FTP/SQL) of a website running Drupal 6.22… But… I have an Debian 8 server with Apache 2.4, PHP 5.6 and MySQL 5.5... :) ==> So my question is : what is the upper ...
0
votes
1answer
19 views

How to convert Drupal 6 profile taxonomy value to array? [closed]

In Drupal 6, Profile module stores taxonomy values for users with this format: a:3:{s:17:"Local Development";s:17:"Local Development";s:35:"Environmental Policy and Management";s:35:"Environmental ...
0
votes
3answers
47 views

How to filter articles that have image

In Views block, how do I display the articles that only have image? How to filter it? Update question: 1) Under Filters, add Content: Image (field_image) - list. 2) Choose False option. 3) ...
0
votes
1answer
48 views

check current path in using comtext php [closed]

I use Context PHP module to write a simple condition: $curr_uri = check_plain(request_uri()); if($curr_uri == '/mypath?123'){ return TRUE; } else{ return FALSE; } While this works perfectly ...
0
votes
1answer
258 views

context - url wirh parameter

I'm using Drupal 6 and context. It seems that context does not react on path like this mypath?123 Is there any way to check such path with context?
1
vote
0answers
53 views

Upgrading from D6 to D7 Stuck

I am upgrading a site from Drupal 6 to Drupal 7, following the instructions here: https://www.drupal.org/node/570162 When running update.php it gets stuck on the first step 'Updating user module' at ...
1
vote
1answer
25 views

Core updates and module updates: Does order matter?

I inherited a badly out-of-date Drupal 6 multi-site instance. There is only the production instance. (yeah, that gives me a warm-fuzzy!) Many modules are several versions behind and the core is ...
1
vote
0answers
318 views

reCAPTCHA module not working for subdomains in Drupal 6

I am using Google reCAPTCHA https://www.google.com/recaptcha/intro/index.html for pointing to domains and subdomains, with reCAPTCHA drupal module. Now, personally i dont really think that it matters ...
2
votes
0answers
106 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 ...
0
votes
1answer
76 views

Drupal 6 - Core Search Module Not Indexing Node Titles

Search is working fine on my site if the search includes text that is in the body of a node, but it appears that node titles are not being indexed. I'm just using the core search module. Is this by ...
0
votes
1answer
20 views

ubercart 2 views - filter by order total weight

I use Ubercart 2 with Ubercart Views. I'd like to filter orders based on total weight. It's possible to add total weight as a field, however it is not possible to add this field as a filter. I tried ...
0
votes
0answers
25 views

Email receive after one day in drupal 6

I am using SMTP module to send mail. Email sends but receives after one day. I am unable to identify what is the issue. Please suggest me how to resolve this issue? Thank :)
-2
votes
1answer
64 views

Form submission redirect to white page

I've created a simple form: /** * Implements hook_menu(). */ function test_menu() { $items['admin/config/test'] = array( 'title' => 'Test form submission', 'page callback' =&...
1
vote
1answer
124 views

Why does file_create_url() not work for theme images?

With the latest Drupal 6 update, file_create_url() stopped working for all the files other than public or private files. I think the assumption is that a file must be either in the public files or in ...
0
votes
1answer
63 views

Custom module permission option not available [closed]

I developed a custom module and enabled it from admin panel https://site/administer/modules/list . But at permissions page https://site/admin/user/permissions there is no option for the administer or ...
0
votes
1answer
375 views

Enable ck editor for textarea

I have a custom form and a textarea in it as follows : $form['fieldset']['email_template'] = array('#type' => 'textarea', '#title' => t('E-mail template content'), '#default_value' =>...
1
vote
1answer
43 views

Internationalization and pay.nl does not seem to work properly together, any idea how to fix that one?

I am working on a website with four languages. We use Ubercart with external payment facilities. We have Paypal and the following specific to Netherlands: eBanking, iDEAL, MisterCash. That works fine....
1
vote
0answers
28 views

fuzzysearch and google analytics

I am using fuzzysearch module on Drupal 6, and his integration with Google Analytics. Regular google analytics query is working if I put query such search/node. I've tried query like fuzzysearch/...
0
votes
1answer
784 views

How I do configure bigbluebutton module in drupal

I have installed bigbluebutton setup on my server, its demo code are working fine and also I have enable bbb module and put server base url and Security Salt key in drupal. But problem is that How to ...
2
votes
1answer
666 views

How do I enable recording option in the BigBlueButton module?

I am using the BigBlueButton module for conference in Drupal 6. I also installed the server. The demo code (http://demo.bigbluebutton.org/demo/demo10.jsp) is properly executed. I passed record=true ...
0
votes
1answer
4k views

Drupal.settings.basePath is not giving the base_url in js

When I alerted the Drupal.settings.basePath it's just giving me a /. I have a full $base_url in settings.php. which I'm expecting to see instead of /. How can I get the correct value of the base URL ...
0
votes
1answer
25 views

How to add the js files to specfic modules only

I am having a module and am adding the js files which is using on the top of the module file as follows : drupal_add_js(drupal_get_path("module", "notification") . "/js/jquery.js"); But the problem ...
1
vote
1answer
109 views

Update Drupal Core from 6.26 to 6.36 using update.php gave no errors, but Drupal still reports that it is on version 6.26

I've followed all of the steps on https://www.drupal.org/upgrade/running-update-php to upgrade my Drupal Core. I put the site into maintenance mode. I disabled all modules except the core required ...
-1
votes
2answers
74 views

How to blocks visible only in specific pages?

I am setting the links as a block in the left panel as follows : function notification_block($op = 'list', $delta = 0, $edit = array()) { if ($op == 'list') { $blocks[0] = array( 'info' =&...
0
votes
2answers
158 views

How to show the data returned via hook_views_data() in a page?

I have hook_views_api as follows : function hook_views_api() { return array( 'api' => 2, 'path' => drupal_get_path('module', 'faq') . '/views', ); } and i have the hook_views_data()...
2
votes
0answers
78 views

Hook into scheduler to delete node from nodequeue on unpublish [closed]

I'm working on Drupal 6 site and trying to solve the following issue. If scheduler unpublished a node, it should be deleted from all nodequeues it's in. Currently, I'm looking for hooking into the ...
1
vote
2answers
494 views

How to programmatically set the color scheme for a theme?

Is there a way to programmatically change the color scheme, set by the color module, for a certain theme in Drupal 6 (in PHP or using drush)? For example, I can change Garland's color scheme from the ...
1
vote
1answer
46 views

How can I create a custom view other than content types?

How can I create a view that's based on a custom table from a custom module. Actually in creating views path I can see options of view types as: View type: Node: Nodes are a Drupal site's ...
0
votes
0answers
11 views

Is it possible to translate contents of a block with Drupal 6?

I am working on a project to translate the contents of a block I created. From what I have seen I might have to use hook_menu instead of hook_block. Is this true?
0
votes
1answer
71 views

Using the t() function in Drupal 6

So I have used the t function correctly e.g. t('hello world') But I am not sure what else to do to get these strings translated. I tried looking at the hook_locale documentation, but I wasn't sure ...
0
votes
1answer
163 views

How to display block using hook_block on specific pages only

I am creating the block using the following code , but i need to dsiplay this block only in specific pages only . How can i achieve this ? function mailusers_block($op = 'list', $delta = 0, $edit = ...
1
vote
2answers
317 views

How do I resize image directly while uploading the image?

How do I resize image directly while uploading the image? Select image from Computer > Upload > Resize directly to dimension that I want.
0
votes
2answers
3k views

How to render a static html from a drupal module

I need to call a static html page and display the content of it when calling it from the module function , i tried to call from the form api but its just rendering the full markup ,please help here ...
2
votes
3answers
197 views

how can I change the site name [closed]

For some reason, I'm not able to change the name of this site. I try to change the name to 'Test Name', as shown in this screenprint: But after I save the page, the name is repopulated with the ...
0
votes
1answer
219 views

How to give confirmation for deletion through link?

I have tabular format data and each row I have an edit and delete links , on clicking on the delete link it should ask for a confirmation to delete and if press delete only I need to delete. Now its ...
1
vote
0answers
56 views

View of most recent nodes, one per taxonomy term selected

Drupal 6 Views 2.x I am looking to create a view that lists the most recent node from a selected list of taxonomy terms. However, I only want it to display the most recent item from EACH term. So ...
0
votes
1answer
40 views

How can i load a table on changing a select option using AHAH callback

I have drop down in a form as follows and i want to load a table of data using the drop down value , here is i have tried , function list_user_form(){ $form['howmany'] = array( '#title' =&...
-1
votes
2answers
588 views

504 Gateway Time-out error in batch process [closed]

I have submit the custom form using batch process in which process I have upload big xml file(min 200MB) and read xml file and inserted xml data in database but after 30~35 minits batch process ...
1
vote
0answers
55 views

How do I add files to the solr index in Drupal 6?

I'm using Drupal 6, Solr 4.9.0 and Apache Solr module v 6.x-3.x. I'm trying to use Solr to index files attached to nodes, but it's not working. I'm using the Solr Attachments module but I know it's ...
-1
votes
1answer
77 views

how to uninstall custom database table in drupal 6

I want to create custom table for my custom module "custom_module_table" /** * Implements hook_install(). */ function custom_module_install() { drupal_install_schema('custom_module'); } ...
1
vote
2answers
1k views

Set the width of the select box in Drupal form

Currently I have a select box in a form as follows : $form['fieldset']['event_trigger'] = array('#type' => 'select', '#title' => t('E-mail event trigger'), //'#default_value' => $...
0
votes
1answer
263 views

How to rewrite field with php in views?

I need to do a string replacment with php on a title field in views 3 / drupal 6.So i would to know the best way because after research i found these: use Views PHP module use Computed fields module ...
0
votes
2answers
76 views

Select options not loading when using callback function

I am creating the select box form element as following $form['select-user-group'] = array( '#type' => 'select', '#title' => t('Select a group'), '#options' => ...
2
votes
1answer
511 views

How can I dynamically load options into a select list?

I'm creating form using drupal_get_form and I'm using the following code for creating a select list: $form['select-user-group'] = array( '#type' => 'select', '#title' => t('Select a group'),...
1
vote
1answer
61 views

What is the first parameter of this db_query call for?

I've inherited some code. It works, but I'm wondering what the "5" does in this db_query statement. $result = db_query(5, "SELECT * FROM {foo} WHERE bar = '%d'", $bar_val);
3
votes
3answers
2k views

Select option values loaded with AJAX call, shows error illegal choice has been detected

I have a select field in my form named country. on change country i need to load values in state. I already placed the field for listing state, only want to load the values from ajax. In same way I ...