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
1 answer
711 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 ...
Satya's user avatar
  • 924
21 votes
4 answers
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?
kylex's user avatar
  • 1,389
7 votes
1 answer
783 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 ...
mpdonadio's user avatar
  • 38.1k
4 votes
1 answer
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, ...
Gnuget's user avatar
  • 1,071
2 votes
2 answers
9k 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 ...
ninjascorner's user avatar
  • 1,841
14 votes
1 answer
5k views

Programmatically create taxonomy term

How would you programmatically create taxonomy term? I wish to bulk create some in a custom module.
Lucy's user avatar
  • 1,502
10 votes
9 answers
15k 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 ...
John R's user avatar
  • 221
7 votes
2 answers
13k 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 ...
user1359's user avatar
  • 3,909
5 votes
5 answers
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 ...
Pavlos's user avatar
  • 61
4 votes
1 answer
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 ...
ulmas's user avatar
  • 173
4 votes
2 answers
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 ...
AgA's user avatar
  • 1,651
4 votes
4 answers
10k 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 ...
raghu's user avatar
  • 41
3 votes
3 answers
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/*... ...
acm's user avatar
  • 371
3 votes
1 answer
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....
enjoylife's user avatar
  • 3,788
3 votes
5 answers
7k 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 ...
silkAdmin's user avatar
  • 2,814
3 votes
1 answer
5k views

custom form submit in a new browser tab

I have a custom form in Drupal 6 and every thing works perfectly except I want the form submit to open in new window. I tried using the following code as per form api for drupal 6 but it does not ...
NewBie's user avatar
  • 161
3 votes
5 answers
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 ...
revolt's user avatar
  • 1,131
3 votes
4 answers
4k 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 ...
acrosman's user avatar
  • 2,728
3 votes
2 answers
367 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:
Sohail's user avatar
  • 1,544
2 votes
2 answers
396 views

WSOD after migrating to another site? Troubleshooting a site migration [closed]

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 ...
chrisjlee's user avatar
  • 6,550
2 votes
2 answers
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] ...
user1359's user avatar
  • 3,909
2 votes
1 answer
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. ...
Vonder's user avatar
  • 713
2 votes
5 answers
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?
Lucy's user avatar
  • 1,502
2 votes
2 answers
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 ...
Joren's user avatar
  • 2,440
2 votes
4 answers
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 ...
Ben McCloskey's user avatar
2 votes
1 answer
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 ...
kylex's user avatar
  • 1,389
2 votes
1 answer
1k views

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

I'm receiving the following warning when I use mysql_query() in my modules. mysql_query(): A link to the server could not be established on line 6 If I use db_query(), it works fine. The code is a ...
kylex's user avatar
  • 1,389
2 votes
1 answer
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/...
winchendonsprings's user avatar
1 vote
2 answers
382 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="...
ohho's user avatar
  • 649
1 vote
1 answer
259 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 ...
loparr's user avatar
  • 906
1 vote
2 answers
4k views

Sharing variables between node preprocess and page preprocess

Both of my preprocess files use the $vars array. I assigned a new element to the $vars array in page preprocess but I can't access this variable in node preprocess. I tried doing it the other way ...
Matthew Hui's user avatar
  • 1,368
1 vote
1 answer
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 ...
wonder95's user avatar
  • 1,201
1 vote
3 answers
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. ...
digital's user avatar
  • 3,243
1 vote
1 answer
299 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 ...
user24393's user avatar
1 vote
1 answer
114 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 ...
user1015214's user avatar
  • 1,811
1 vote
1 answer
561 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?
Codium's user avatar
  • 4,955
1 vote
3 answers
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 ?
Hacker's user avatar
  • 3,024
1 vote
1 answer
288 views

Redirect anonymous users to the register page

Is it possible to redirect anonymous user to user/register page? How can I do that?
Fero's user avatar
  • 1,547
1 vote
1 answer
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.) ...
Jensen's user avatar
  • 370
0 votes
2 answers
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&#...
user1015214's user avatar
  • 1,811
0 votes
3 answers
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 ...
AmirHossein's user avatar
0 votes
1 answer
427 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 ...
Immers's user avatar
  • 603
23 votes
6 answers
18k views

Correct way to change the active Drupal theme programmatically?

What is the correct way to change the active Drupal theme programmatically?
markdorison's user avatar
  • 5,604
22 votes
4 answers
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 ...
Alex Weber's user avatar
  • 5,086
20 votes
3 answers
19k views

Updating to a newer dev version of a module using Drush (ignoring point/recommended releases, without trashing version control)

[NB This question is off the back of, but separate/further to, an earlier question of mine, here.] I've been using Drush a good while, but every so often I get stumped. At the moment, I'm really not ...
NikLP's user avatar
  • 1,013
18 votes
4 answers
9k views

How to get hook_install() to run all hook_update_N()?

How can i get hook_install() to run all updates that I have for my module? I have in it mymod.install file. I have tried function mymod_install() { mymod_update_6001(); } but it does not seem to ...
Lucy's user avatar
  • 1,502
16 votes
3 answers
25k views

Load more content with ajax when clicking more link in a view

I have a custom block view. I display the last 5 node titles. If someone clicks the more link I want to load the next 5 titles underneath the current 5 node titles. No page refresh and not pager. Is ...
Lucy's user avatar
  • 1,502
16 votes
7 answers
4k views

Exporting Taxonomies to code

I'm looking for a way to export Taxonomy vocabs and their associated terms. So far I've found and tested: Taxonomy Export -- Exports to code using features but doesn't import. http://drupal.org/node/...
digital's user avatar
  • 3,243
15 votes
7 answers
51k views

Adding a new user directly in database

I've been given the files to a Drupal site so I can create a new theme. I haven't, however, been given the Drupal admin user/password date so I can't sign in to the admin area. Is there a way I can ...
Jane's user avatar
  • 1,805
12 votes
1 answer
1k views

Best way to benchmark Drupal stack performance

I recently asked a question regarding Drupal performance and got some great replies. This got me thinking, what is a reliable/meaningful way to benchmark Drupal? It's easy to say "install APC, ...
Alex Weber's user avatar
  • 5,086

1
2 3 4 5