Questions tagged [drupal-6]

Drupal 6 is the Drupal version released on February 13, 2008. Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/.

Drupal 6 is the Drupal version released on February 13, 2008.
It will be officially supported until Drupal 8 has reached its first official release. After that bugs and security issues will no be longer be fixed for Drupal 6.

See for more information about Drupal.

Requirements

  • Web server: Apache, Nginx, or Microsoft IIS
  • Database server: MySQL 4.1 or higher, PostgreSQL 7.1
  • PHP: PHP 4.4.0 or higher (5.3 recommended)

Related tags:

Resources

3646 questions
9
votes
7 answers

How to display the query executed by the Drupal view

I want to display the query that is executed in the drupal view. Currently in the view editor it shows the query however I have a need to use that query in my code to download an excel version of the view. Is there a way to get the executed query…
Mech
  • 2,904
  • 3
  • 24
  • 29
9
votes
4 answers

Hook into Drupal registration and validate user info against business logic

I want to hook into the registration module. I already have a database of 50000 users who use my old website. Now I am migrating to Drupal. I still haven't migrated the entries to drupal database. I will be checking against my old database. When a…
user266803
  • 1,088
  • 1
  • 8
  • 9
9
votes
6 answers

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

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…
jsims281
  • 2,206
  • 2
  • 30
  • 57
9
votes
4 answers

print_r to get object methods in PHP?

I'm working with Views 2 in Drupal 6, and I am having difficulty finding documentation on the methods of the View object. Is there any PHP function like print_r that outputs methods as well as fields?
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
8
votes
1 answer

Drupal 6 how to prevent automatic password recovery and reset for a specific user

I have an client website with a special user name 'guest' that allows unauthorized users to login and register for events. But lately the password has been getting changed and it appears that it is being done at the login by requesting a password…
cfusch
  • 729
  • 4
  • 7
8
votes
2 answers

Drupal node_save no longer returns $nid, so how do I get it?

I have code like this: ... setup $issue object ... $node = node_save($issue); print_r($node); The node is created successfully, and everything works fine...but nothing it returned from save_node(). Older docs indicate that it returns $nid. …
swelljoe
  • 808
  • 5
  • 17
8
votes
2 answers

Drupal Commons site has no style after install - missin js and css files at all

the very last / newest update on a quick step i did the toogle the css-aggregation - and switched it to off: see the results of this action on the site: http://campus-24.com/ i had toggled the css-aggregation to off - in the performance-section:…
zero
  • 1,003
  • 3
  • 20
  • 42
8
votes
1 answer

Drupal 6 - Custom Node Type Template in Module

I have a module which adds a new content type. For this content type I want to supply a node_contenttype.tpl.php node type template, but Drupal will not recognize this template in the module directory, only in a theme. How do I get Drupal (6) to use…
theduke
  • 3,027
  • 4
  • 29
  • 28
8
votes
5 answers

Why is drupal slow?

I have made site on drupal My site has 7500 users and approx (20 to 50 without logged in)(2 to 10 logged in) users are online (and this is not heavy traffic I think) The site is on dedicated server. I have enabled setting in performance from drupal…
karan
  • 214
  • 2
  • 7
8
votes
3 answers

Drupal print node from nid

I have a node id. In my code I want to output this node to the screen using the standard template for the node. How do I print the node to the screen?
Will
  • 1,393
  • 5
  • 14
  • 21
8
votes
4 answers

how to use like query in drupal

How to write SQL LIKE Query in drupal , SELECT title FROM { node } WHERE type='%s' i want to add the LIKE CONDITION IN THAT SELECT title FROM { node } WHERE type='%s' AND LIKE '%S%' i think i writtern wrong like query formnat, can rewrite and…
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
8
votes
2 answers

hook_preprocess_node() execution order

If I have two modules, each has implemented its preprocess_node hook. Then which one will be called first ? Is there anyway to enforce the order in which it would be called ? module1_preprocess_node(&$vars){ $vars['submitted'] =…
w00d
  • 5,416
  • 12
  • 53
  • 85
8
votes
3 answers

PURL and/or Spaces?

My site is to have a section for normal users, a section for managers, and a section for use only by anonymous visitors. Each section of the site requires changes to Drupal settings for using a different theme, changing the Primary & Secondary…
rcourtna
  • 4,589
  • 5
  • 26
  • 27
8
votes
5 answers

Drupal 6: best way to upgrade jQuery?

I want to upgrade jQuery inside my drupal installation. At the moment I have jQuery 1.2.6 and I would like to upgrade it to jQuery 1.4 I guess some Drupal modules still depends on the old jQuery version. I've tried jquery_update module to upgrade…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
8
votes
3 answers

Adding js to a drupal node form

In Drupal you can create your own nodetype in a custom module. Doing this you get to create your own form which is all very nice. However if you want to add js the form things get a bit more tricky. If you add the js in the form, the js will only be…
googletorp
  • 33,075
  • 15
  • 67
  • 82