Questions tagged [6]

Version tags should be used 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
366 views

TinyMCE not appearing on custom form

I am creating a custom form and have run into a problem. I'm using the WYSIWYG module and for some reason the text areas on this custom form don't show as rich text editors (tinymce shows on other ...
0
votes
2answers
690 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 ...
1
vote
2answers
393 views

Where does redirect from default search to apachesolr_search occur?

We're using the apachesolr_search module on our site. (This is a site I inherited fully coded, so there's tons going on that I'm not intimately familiar with yet.) We have a search block that has been ...
4
votes
1answer
376 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 ...
22
votes
6answers
16k views

Correct way to change the active Drupal theme programmatically?

What is the correct way to change the active Drupal theme programmatically?
0
votes
1answer
395 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' =>...
0
votes
1answer
355 views

db_fetch_object returning null

This is the line: $row = db_fetch_object($result); While $result is valid but $row is getting a null value which I've checked with is_null. As per this function's @return value, it can only return ...
0
votes
1answer
543 views

Why is hook_form_alter() not setting default values in _after_build function on /node/add/myct?

I've got a validation form (id="mymodule-myct-verify-form") that retrieves data from temp_node to populate it's hidden fields. On submit, the form sends its data to /node/add/myct. (currently via $...
3
votes
1answer
450 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/...
1
vote
1answer
459 views

Get field from another content type in Views

I have two content types, 'user' content type where I have some info about user and then 'post' content type. Now I have a view that gets all 'posts' and shows them correctly but I would need to get ...
1
vote
2answers
838 views

Hide the title of a form element?

I'd like to use placeholders instead of labels for a form built with the form API. I can get placeholders working well with the Elements module, but now I want to hide the labels. If I just set ['#...
0
votes
3answers
397 views

Contextual links for node blocks

I have the Nodeblock and the Contextual links modules installed. They work fine, but I want to add the "Edit node" link in the contextual links for node blocks. For views, there is a "Edit view" link, ...
0
votes
1answer
383 views

Specify which Migrate entries need to be updated using prepareRow

I have made a Migration that i run with Cron. My highwater field is the date changed, which is present in the XML (source) document. Then I do this in my cron function: $result = $migration->...
2
votes
1answer
397 views

How to embed edit user profile page in a panel

I am trying to embed the edit user profile page (ie what appears at the url domain.com/user/27/edit) into a panel. I have searched high and low on how to do this but I can't find any info on it. Is it ...
0
votes
1answer
411 views

Average value of integer field using views

I set up a multi value cck integer field for rating purposes. It has values 1|good 2|bad 3|dont know Users voted like so: 3 votes for good 2 votes for bad 4 votes for dont know I want to make ...
0
votes
0answers
21 views

Views page menu shows up on all languages

I am working on a old website built on Drupal 6 which has two languages. There is a views on which I created a page for each language, but their menus shows up on both languages. I tried different ...
0
votes
2answers
439 views

IMCE module is not showing icons on the editor

I installed the IMCE module, but it didn't add any icon to the editor menu toolbar. It manually loads with domain.com/imce.
0
votes
1answer
415 views

Send data with post to other drupal page not working

I'm trying to send data from a html form to another drupal page. The Form (in JavaScript): var data = { // JS Object with data to send priceUnit: '131.97', priceTotal: '131....
3
votes
2answers
416 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 ...
2
votes
2answers
35 views

How can I temporarily prevent any logins?

I've a high visitor website in Drupal 6. For performance reasons I've removed Captcha on all pages. I don't want anybody to log in and we don't logout. Can I rename any Drupal file related to login-...
1
vote
1answer
591 views

Why are nodes not saving, and redirecting to edit instead?

When editing a node and attempting to saving it, the user is redirected to the edit form with no error message and the node is not updated. This situation is similar to the problem described in "Nodes ...
0
votes
1answer
482 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 ...
4
votes
1answer
429 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 ...
0
votes
1answer
488 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 ...
0
votes
1answer
634 views

Variable in html.tpl.php

This seemingly simple task proved more difficult than I imagined.. I'm trying to get a variable from themename_preprocess_html to my html.tpl.php. The code I have in my template.php file: <?php ...
1
vote
1answer
806 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 ...
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
486 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 ...
1
vote
0answers
178 views

Exclude tabs based on Tac Lite permissions

I'm currently using Tac Lite to grant editing permissions to individuals throughout the site. If a user has access to edit a particular node the edit tab appears, if they don't they won't see the tab. ...
1
vote
0answers
245 views

How to upload files in sites/all folder in a hosted website?

I want to edit some php files present in sites/all/themes/danland/ and add some css and js files in same location. I have checked by modifying in the localhost to see the affect and finally want these ...
1
vote
2answers
766 views

How do I setup Drupal with EC2 scaling?

I want to scale my Drupal site and I was wondering how to approach it with Drupal and Amazon EC2. This is a bit related to How to use Drupal in the cloud with on demand instances. With Amazon, I can ...
0
votes
1answer
774 views

Video streaming cloudfront

I am administering a drupal 6 website for a small company. We want to offer our customers restricted streaming video content on the drupal site. What I heard it is a good idea to place these type of ...
1
vote
2answers
591 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 ...
0
votes
1answer
399 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
885 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 ...
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 ...
6
votes
3answers
4k views

How can I programmatically delete a user?

I'm new to Drupal development and am way over my head on this one. My company runs a subscription-based site offering market research to corporations. A company pays for a subscription and is granted ...
1
vote
1answer
616 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
665 views

How to add multiple items to cart?

I came across this other question and wondered whether it was compatible with Drupal 6/UC 2: Add multiple items to cart I would like to create a page that shows the thumbnail and title of all ...
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
756 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 ...
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 ...
1
vote
1answer
865 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
596 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 ...
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 ...
0
votes
2answers
971 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 ...
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
568 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 ...
1
vote
2answers
394 views

Questions and answers module Drupal 6 [closed]

Are there any modules for questions and answers website in Drupal 6? I want it to have theme.
0
votes
2answers
911 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
2 3 4 5
56