This tag is for questions regarding Drupal 6 specifically. Version tags should be used only when strictly necessary, for questions that apply to Drupal 6 only, and not to merely say "I am using Drupal 6 in my site."

learn more… | top users | synonyms (1)

0
votes
1answer
11 views

How to print the HTML content of the text field in Drupal 6 programmatically

I am printing the $node->field_abc[0]['value'] in php code where node is node content and field_abc is text field . How can I print the html format of the field in Drupal 6
0
votes
0answers
22 views

How to customize a front page variant with CSS

I need to do some customization on a page variant front page of a section of a website. What is the best way to do this? I am working on Drupal 6 if that helps.
-1
votes
0answers
14 views

Is it working if i place field.tpl.php file inside module folder?

When i place custom field.tpl.php file in theme folder it's working fine. I just wants to put my custom field.tpl.php file inside custom module folder. which is created by using ...
0
votes
0answers
15 views

Users without “administer nodes” see a limited view

I'm attempting to create a view showing all the nodes that a user is referenced in (via a CCK user reference field in a multigroup). Because they are multigroups, a user may be referenced multiple ...
1
vote
1answer
57 views
+50

add additional values to views 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 ...
0
votes
1answer
7 views

Error: include_once(): Failed opening './includes/unicode.entities.inc'

I am working on a D6 site and I have created some fields programatically, and it looked like it worked fine (code below). The fields show up in the database and on the UI screen. However, I found that ...
0
votes
0answers
20 views

Is there a way to generate thumbnail for a .doc file in Drupal 6?

I am using file upload module to upload multiple .doc and .pdf files. I just want to display the the uploaded file as thumbnail. Can you suggest any possibilities?
0
votes
0answers
5 views

Open node by version id in drupal 6

I am basically looking to view a node by it's version id (vid). I am not looking to load the node programmatically. For ex. Node id is "xyz" which can be loaded by /node/nid. I need something like ...
0
votes
1answer
12 views

How to delete a cck field base in Drupal 6

I have programatically created some cck fields with this function: content_field_instance_create($field) and I tried to delete them with this: content_field_instance_delete($field_name, 'product', ...
1
vote
1answer
22 views

Possible to use PDO inside a custom module in Drupal 6?

I'm about to build some new functionality on an old Drupal 6 site which will be upgraded to D7 or D8 within a year or so. This new module is heavy on the SQL and I'm building many complex SQL queries. ...
0
votes
0answers
28 views

How to set the body field as required?

I want to create a forum module. Im using Drupal 6.0 and I want to set body field as required field programmatically. $form['body']['#required'] = TRUE; $form['body'][LANGUAGE_NONE][0]['#required'] ...
0
votes
1answer
46 views

form rendering through tpl file

I want to render drupal 6 form through tpl file. for that 1. I have written mytheme_theme in template.php file and there I have define my template forms arguments and path for tpl file. I have ...
0
votes
0answers
17 views

Slow SQL query in Views relationship from Content Profile module

I have a slow SQL query in a view using a relationship from the Content Profile module (D6). My problem is more on the SQL side. Once I have the proper query I should be able to change it. The query ...
1
vote
0answers
9 views

Polls seeing multiple users as one user (D6)

For the polls core module, I am coming across an issue where if multiple users of the same role type try to vote, only the first person who did so can. It is almost as if it thinks that all the users ...
0
votes
0answers
18 views

D6 blog post archive with year and month with Views

I would need to show my blog post as year/month archive with Views. This way: 2014 -July (2) -June (12) ...so on 2013 December (21) November (11) ...so on All months are links to page which shows ...
0
votes
2answers
19 views

List all nodequeues a node belongs to

Given I have a node, how to programmatically find out all the nodequeues it belongs to? Is there any ready functionality in Drupal 6 or do I just have query this from the DB myself?
0
votes
0answers
17 views

Organic group Teaser D6

I'm using organic group for Drupal 6. Is it possible to allow anonymous users to view the teaser of a node even if it the node is set private? Anonymous shouldn't be able access the full node.
1
vote
1answer
13 views

Drupal 6 - Get 5 newest nodes of a certain type

I have a content type called "announcements". They each have a title and field for the announcement. I'd like to be able to, in my .module, get the last five announcements and print out their contents ...
0
votes
1answer
9 views

Database error after transferring Drupal 6 site

I just moved a Drupal 6 site from one server to another and have just started getting an error. Warning: Table 'mydatabase.watchdog' doesn't exist. The table does exist in the database and it does ...
0
votes
0answers
24 views

Two different relationships and one view

I would need to combine two content types into one view. Well this is easy but where it gets more tricky is that other content type would need to user relationship that connects to another (third) ...
0
votes
0answers
16 views

use “no cache” but input filter seems to be cached in Drupal 6

I am trying to display a add to cart button and it only rarely works. It seems to work when the cache is cleared and then not work. I have added the no cache option but this doesn't seem to do ...
0
votes
0answers
6 views

Modifying the content in a view

This is in Drupal 6, so Views 2.x I'm trying to modify the output of a view - there's a field that should be set in some situations, but not in others, but for some reason it is defaulting to "Please ...
0
votes
2answers
27 views

How can I create a content type in a custom module?

I would like to create a content type called announcements for a module that I'm creating, but haven't found much to make this work. I tried this: function srl_dash_install() { ...
0
votes
1answer
31 views

Can the jQuery global $ be protected from external Javascript?

I'm working on a Drupal 6 site that uses the Regpacks signup form service, and apparently the iFrame it creates includes Javascript that redefines the $ global as a function. So any Javascript on the ...
0
votes
1answer
26 views

Replacement module for Image FUpload

Last week the Image FUpload module got the "no longer supported" status because "its dependencies swfupload are not maintained and not safe anymore". Are there any Drupal 6 modules that can replace ...
0
votes
0answers
12 views

Move email form to different page and confirm password

Im trying to move the change email form to a separate page just like the chgpwd module does with passwords. However the form doesn't actually seem to do anything when submitted. I also want to make ...
0
votes
1answer
10 views

Administrator role can't edit html source in tinymce

I have created and administrator role that has full HTML editing capabilities when creating a node. The issue I am having is that when they click on the button to edit html source button (in tinymce) ...
0
votes
0answers
26 views

Two separate node types with different relationship/arguments and views

I have two different kind of node types. Another is just typical content type ( content type name: blog_post). Other one is used for feeds. For this I'm using Feeds import module (content type name ...
0
votes
1answer
22 views

Views API - how to replace PHP fields

So a client that I inherited has multiple PHP fields in each of their views. I'd like to replace them. They're using PHP Code module as well as Views Customfield. Would I have to write a custom ...
0
votes
1answer
8 views

6: Ubercart 2 with Mimemail still strips html

I'm having an issue where confirmation emails from ubercart seem to have content html removed. In my setup somehow the html in the ubercart email template is being stripped when it reaches the ...
0
votes
1answer
13 views

Exporting Site Configuration Settings into Features

This is on a Drupal 6 site, and we want to export several settings (like CSS aggregation) into features, however it doesn't appear like there's anyway to do this. Do we need to write a custom feature ...
0
votes
1answer
15 views

Writing a field formatter for D6

So I'm almost embarrassed to ask this, but it's been so long since I've touched Drupal 6. We've been asked for something which requires another Field Formatter for a File field. Form the code below, ...
0
votes
0answers
11 views

Trouble creating ckk fields programatically

I have followed this tutorial http://www.calebthorne.com/module-development/2013/Jul/create-cck-field-programatically-drupal-6 to create a ckk fields programatically. (I also did a printout of ...
0
votes
1answer
44 views

Apachesolr searching is not working with cck field

I am working in Drupal 6 website with apachesolr. I have added a cck field (text field) in a content type. When I am searching the value of textfield, apachesolr showing empty result. The field is ...
1
vote
3answers
122 views

Migrate: What's the difference between prepare() and prepareRow()?

Using the Migrate module: I understand that prepareRow() runs a filter on the row and should return TRUE or FALSE based on some conditions, which allows a row to be migrated or not, but could someone ...
0
votes
2answers
32 views

Drupal 6 on php 5.5 compatibility

Did someone tried Drupal 6 on php 5.5? I have running 20+ drupal 6 sites on php 5.4 without large issues, but what about php 5.5?
0
votes
1answer
22 views

Programmatically render an imagefield in Drupal 6 as defined in content-field.tpl.php

What sounds like simple task in the first place, has taken me hours without getting a solution: All I want is to render single values of an imagefield just as in the normal node, i.e. as defined in ...
0
votes
0answers
67 views

How to reduce first byte time on a Pressflow (D6) site

The problem: A medium-sized Pressflow site performs OK, when content is delivered through Varnish; content from the backend takes inacceptable long to reach the users browser, and there's too much ...
0
votes
2answers
32 views

Can a content type have default input in fields

Is there a way for a user to add new content and have some of the fields already pre populated with default text/input. That way the user can amend what changes are required for a node without having ...
0
votes
1answer
16 views

Get list of node dependencies

in Drupal 6, is there a way to list by programmation (function or SQL code) the dependancies of a node ? For exemple, I have videos that are nodes. Thoses videos are refered in other nodes. Before ...
0
votes
0answers
18 views

first_child Menu not working after rebuild the permissions d6

After rebuild the permission, menus are disappeared. Every link has given a problem. I checked db logs, drupal logs, also compare server files but i have not found any changes. I could not ...
0
votes
1answer
31 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 ...
0
votes
1answer
19 views

Integer field radio buttons doen't save

I have integer field with 3 radio button options. When I select one of the option try to save new content it doesn't save the integer value. Field is not required and options are like this: car|Car ...
0
votes
1answer
27 views

Views SQL-query slow with big dataset and exposed filters

I have a problem with a Drupal 6 site working with many nodes. This is the SQL given by Views: https://gist.github.com/ranbogmord/79bfa50e40db1322c9e0 The query takes 5-10s to run through and the ...
0
votes
1answer
32 views

How to get different size image on views

I have view that fetch content and I show it on a block. My view shows 16 nodes and each node has title, date and image. For images I use imagecache to get correct size image. I have set this image to ...
0
votes
1answer
54 views

D 6 Grab a particular menu item within the primary links

Let's say we have a menu inside the primary links, in my case the Misc menu. As it seems under Misc menu it can be any Content Type (of course and on every other menu) The question is how can I ...
0
votes
0answers
27 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 ...
0
votes
0answers
91 views

PHP Fatal Error: Class 'Facebook' not found in

I put the Facebook SDK file in the same directory as my module file. sites/ all/ modules/ rock/ rock.module --> My custom module file facebook.php --> The ...
1
vote
2answers
54 views

Implementing LDAP with exsisting user base

We are in the experimental stages of implementing LDAP in our Drupal 6 environment, using the LDAP integration module. LDAP is installed and working in our dev environment and now we are looking at ...
1
vote
3answers
96 views

Redirect “edit” tab on single node view

I created custom node edit pages and I want the edit tab to redirect from node/2545/edit to topic/2545/edit or node/2549/edit to arts/2545/edit depending on the content type This is not an ...