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
54
votes
10answers
12k views

How do you improve Drupal performance?

Drupal is fast at develop, but the performance is so poor. It is hard to reach 50 request per second. And there are so many SQL queries in a simple web page. If you test the request time of a form ...
0
votes
1answer
699 views

How to programmatically create a node when a payment is successful

I have a content type, and with the help of the UC node checkout module, I am able to successfully add the content to cart once it is created by the user. When the user checked out and had made a ...
4
votes
1answer
4k views

Remove features without lose functionality

I'm working on a project where in the past was added a lot of features and was did in a way where right now a lot of them has a lot of circular dependencies and conflicts. I want to start again, ...
23
votes
4answers
6k views

Drupal 6 end of life

Is there a documented date, or a believed date for the end of life of Drupal 6? In other words, when will official development stop on Drupal 6?
5
votes
3answers
1k views

Add custom class to a particular menu

I need to know how to add extra class to a perticular menu.For example i have custom menu "menu-header-let",This menu is rendering like below, <ul class="menu"><li class="leaf first"><...
3
votes
2answers
7k views

Rewrite URL not working

In Drupal 6 I used the following snippet of code in my .htaccess file to extract information from a non-existent URL and pass it to an existing URL in a GET form. However, it isn't rewriting the URL ...
2
votes
2answers
7k views

How can I remove Javascript files?

I wanted to remove some JavaScript files, since they conflict with my custom JavaScript on my mobile theme. I tried with the following code, but it is not working in hook_preprocess_page(), which I ...
5
votes
5answers
7k views

How to translate a panel page title and a pane title

I want to ask if there is a way to translate the title of a panel and also its panes titles whatever content they are. I use panels to override user/%user page and there i putted as panel title the ...
3
votes
5answers
2k views

Does having too many content types negatively affect site speed and performance?

I building a site that could potentially utilize 20 different content types. The content types are very similar, but may only utilize one or two fields that are unique to that content type, and they ...
10
votes
9answers
14k views

How to delete 1600 users and 2500 posts?

A couple years ago I configured a site with Drupal 6.9, and then I forgot about it. I have 160 pages of users that are all spammers and I need to delete all but 3. Doing this one page at a time is ...
6
votes
6answers
1k views

Should I choose Drupal 6 or Drupal 7?

I want to use Drupal as a Framework for my application. Apart some modules, such as Image, Imagecache, Views, and Panels, I will make custom modules. I need the best performance and result. What ...
4
votes
1answer
3k views

How to display messages from a block separately from $messages in page.tpl.php

I have a webform which works as a newsletter subscription form: it displays a textfield for an email and a button. When the button is clicked, a notification message is displayed on top of the page ...
4
votes
2answers
4k views

Storing permanent value in Form while in validation handler

We can store a permanent value in $form_state in the submission handler, which will be retained against form errors, but I want to know how we can do it while in the validation handler, where I show ...
3
votes
2answers
3k views

How to programmatically determine if the cron is running

Is there any way programatically to determine when the cron is running (and if possible, what tasks are being run)? I've explored some options online that are bound to drupal_cron_run(), but no ...
2
votes
2answers
387 views

WSOD after migrating to another site? Troubleshooting a site migration

I'm in the process of migrating from one URL to another, and I've got a WSOD. What I had done is to import the new database from the production server. I've copied all the files from another server ...
0
votes
3answers
6k views

How do I use Webform fields in a view?

I use the Webform module to get user information, and I want to use some Webform fields in a view; for example, I want to show only some of the fields (e.g. name and e-mail), and expose a filter for ...
13
votes
1answer
4k views

Programmatically create taxonomy term

How would you programmatically create taxonomy term? I wish to bulk create some in a custom module.
4
votes
2answers
1k views

Views RSS post date removal

What is the best way to remove the post date from a views created RSS feed? I have a calendar that I have created a feed for, but it is being sorted by a cck date value, making the post date not ...
3
votes
4answers
5k views

Node access by role or user, what module(s) should I use? [closed]

I'm trying to limit the access to certain nodes in certain content types by role. So far I wasn't able to find any suitable module that would do just that. Please take into consideration that ...
2
votes
5answers
3k views

Embed vimeo video into the body field

How do I embed a vimeo video into the body field. The iframe is being removed in my input format. How do I add it?
2
votes
2answers
3k views

Form #redirect not working?

I'm trying to make the user creation form redirect back to the home page when you submit it. I'm using Content Profiles so it is two forms sharing a submit button. Even if I set #redirect = '/' on ...
2
votes
1answer
1k views

Using hook_menu() and hook_permission() to control access

How does one limit "what" can access a page. I understand how to use hook_permission() to set user permission based on a role to control access to hook_menu() items. However, what if I have a ...
2
votes
1answer
1k views

mysql_query doesn't work but db_query does on a simple SELECT query

I'm receiving the following warnings when I use mysql_query() in my modules: mysql_query(): A link to the server could not be established in ...... on line 6 If I use db_query() instead, it works ...
2
votes
4answers
1k views

Is Drupal Commerce ready for the real world?

I'm trying to make a decision between Drupal 6 + Ubercart and Drupal7 + Drupal Commerce... I'd much rather develop in 7 and am excited about Drupal Commerce but, as it is relatively young, have some ...
2
votes
4answers
3k views

How can I build a view that shows other nodes that reference the same node the current node references?

Let's say I have homes and neighborhoods (homes reference the neighborhood they're in via a node reference field). On the home detail page I want to show other homes in the same neighborhood. Seems ...
1
vote
3answers
2k views

Making a field sortable in Views

What makes a field sortable in views? I have 5 fields output in a table and only two (Node Title and an int) are sortable the rest (mixture of content taxonomy and node reference) are not sortable. ...
1
vote
1answer
2k views

Best approach to inject variable data into JavaScript files?

I'm looking for a good approach to manipulate some JS code from within a module call. (Using Drupal 6.) I have a set of JavaScript functions I need to add to a page. (Regular JavaScript, no jQuery.) ...
1
vote
1answer
3k views

Handling custom parsing and importing with Feeds

I've been wading through the Feeds module and documentation, and for whatever reason have been unable to figure the best way to do this, so I'm hoping someone will be able to point me in the right ...
8
votes
2answers
12k views

Multiple forms on single page?

Is it possible to put multiple forms on a single page? I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field ...
6
votes
1answer
759 views

When can uid 1 get an access denied page?

I am having a very strange problem that I can't track down. We have been working on a custom site for a client now for several months. Theme is a Zen subtheme. I can't remember the last time I ...
3
votes
5answers
6k views

Rebuild all paths for a content type

I want to change all paths for a given content type. For example is would change all node of type "image" that are currently at /[some_token]/[nid] to /photo/[nid] I am using path auto and I ...
3
votes
1answer
2k views

Cached “Page not found” for anonymous users

My site's drupal version is 6.19. There are always logs like the following. the recent log entries shows type: page not found location:http://www.example.com/display.html referrer: message: 500....
3
votes
4answers
7k views

How can I clear the Varnish cache?

We have installed node queue module on Pressflow 6 + Varnish. For clearing the varnish cache for node queues, we developed rules using the Rules, and Cache action modules. Whenever we update the ...
3
votes
3answers
3k views

WSOD on administration pages

Here are the facts: Made a clean install of Drupal 6.20 Installed and enabled Admin Menu module From this point on I can't access any admin/* page however I can access to both node/* and user/*... ...
3
votes
4answers
3k views

What can cause Drupal to crash Apache?

In my local development environment, Drupal keeps crashing Apache when I try to load admin pages. The user pages all load fine, but any admin page causes apache to reset itself. In the apache error ...
3
votes
2answers
363 views

How can I add a caption to my navigation menu?

How can I add a caption to a navigation menu in Drupal 6? I am trying to achieve this effect:
2
votes
1answer
2k views

Join a custom table on a View

I need to join a custom table custom_table on a View my_view. I have a module created called join_table The nid is the referential id (the nid is what ties the two table to the view). Then, I need ...
2
votes
1answer
8k views

How to add script to <head>?

I want to add a call for 2 external scripts in the page.tpl.php. The scripts are: <script type="text/javascript" src="http://use.typekit.com/12345.js"></script> <script type="text/...
2
votes
1answer
2k views

Images instead of radio buttons or dropdown list?

I would like the user to choose the category when he creates a new node content. However, instead of radio buttons or dropdown list I would like to have selectable images, with exactly the same logic. ...
2
votes
2answers
3k views

How do I get the display id of a view in Drupal 6?

I'm trying to use the views_data_export module to get the content of a Drupal 6 view in xml format. On the module's page, it says to use this command: drush views-data-export [view-name] [display-id] ...
1
vote
1answer
249 views

Using Ubercart with https protocol

I just installed rapidssl certificate and I want to serve my cart pages using https protocol. I put all files inside apache2/ssl folder, edited default-ssl inside apache2/sites-available. The ...
1
vote
1answer
278 views

Redirect anonymous users to the register page

Is it possible to redirect anonymous user to user/register page? How can I do that?
1
vote
1answer
108 views

What operation should I use to write node's information in an email when the node is saved?

I am using hook_nodeapi() to display the node's information in an email when the user clicks on the "Save" button. I tried writing code for the "presave" operation, but that didn't work the way I ...
1
vote
1answer
477 views

How to remove comma between taxonomy terms?

I style my taxonomy terms as boxes, so I don't need comma between them. Could somebody give me any advice?
1
vote
1answer
263 views

Create Nodes for multiple languages in webform?

I have a default Node for English, which will be translated when user logs in based on the user locale. Beside I need to create a separate node for ja(Japanese) like (mydomain.com/node/7). I created ...
1
vote
3answers
1k views

Show only login page to guests

When ever user comes to my website he should be greeted by a pop up or normal login page only. When he logs in whole website should open up to him. SO how do i do this ?
1
vote
2answers
375 views

How to print $banner; without <div>?

After moving some animation code from page-front.tpl.php to a block, the paging animation is broken. Good: Broken: The slide code is: <div id="banner" class="clearfix"> <div class="...
0
votes
1answer
424 views

Where to start looking up if there's something wrong with cck field variables?

in short: Something in my zen-based custom theme is keeping a couple of cck fields from being display on my page. Basically my question is where to get access to the variables that are supposed to ...
0
votes
2answers
1k views

post-save case in node api?

Is there such thing as a post-save type of case in the node_api function or any other type of function? This question is in reference to a question I posted What operation should I use to write node&#...
22
votes
4answers
6k views

Best way to optimize for authenticated user performance?

The keyword here is authenticated! Currently (as far as I know) the de-facto ways to optimize for anonymous access are through static page caches (varnish/squid/boost). However, as far as I know ...