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
3
votes
2answers
349 views

How to update a Drupal 6 website to latest release with drush?

I want to update my Drupal 6 website (version 6.36) to the latest realease (6.38). When i'm using the shell-command "drush update drupal", i'm getting following result: Drupal 6....
1
vote
0answers
47 views

Adding content with existing installed module

I have uploaded a Flipbook module designed for Drupal, and activated the module but can't find anywhere how I can insert that module (flipbook) content into a page. It would be a simple shortcode ...
0
votes
1answer
53 views

Cache error message

My Drupal 6 website has been working fine for many months. All of a sudden, it displays the following error messages: Warning: Can't find record in 'cache' query: SELECT data, created, headers, ...
0
votes
1answer
137 views

Drupal 6 to Drupal 7 content type migration using feature module?

We have to upgrade Drupal 6 site to Drupal 7. We know that we can use migrate module for importing Drupal 6 content. But I'd like to know if we can use Features module for importing content types, ...
1
vote
0answers
64 views

All URLs point to the front page

I've just copied a multisite installation from a production server where everything is working fine. I think I've got a configuration issue in my hands because content is present so the databases are ...
0
votes
1answer
71 views

How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc? [closed]

How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc... Is there any easy way to migrate a Drupal 6 Ubercart store to another CMS or shop system? What would ...
0
votes
1answer
142 views

login destination redirect to previous page adding #

The following code works for me to redirect the user back to the previous current page after he/she logs in. <?php print l(t('Please Log in'),'/user/login', array( 'attributes' => ...
0
votes
1answer
86 views

How can I check if the current user is accessing his/her own user page?

I would like to print something in page-user.tpl.php only when the current user is accessing his own user page. (any URL starting with /user/%uid/ but when %uid/ is the user id of the current logged ...
1
vote
1answer
565 views

You must include at least one positive keyword with 3 characters or more

Drupal 6.20 according to the changelog file. We took over a site from another company who built the site in Drupal, and we'll be converting it over to Wordpress eventually but we need to resolve the ...
0
votes
0answers
27 views

Not having the permission to update menu path

I was trying to modify the path of the navigation menu link already created via admin/build/menu-customize/navigation. I am getting the following error When i try to create the new menu also i am ...
0
votes
1answer
14 views

node_object_prepare causes profile page for non-admin users

When I'm calling node_object_prepare in a module to create a user profile type node Drupal 6 kicks the user out unless they have admin permissions. How can I make node_object_prepare run regardless ...
1
vote
1answer
3k views

how to add multiple style values in attribute in drupal form

I have form element like as follows : $form['precio'] = array( '#type' => 'textfield', '#title' => t('Price'), '#default_value' => $precio, '#size' => 20, '#attributes' => ...
4
votes
2answers
87 views

After updating from drupal 6 to 7: No content types under node/add

I am updating a Drupal/Tripal site on a test system. When I try to add content after migrating core using /#overlay=node/add or /node/add I get: You have not created any content types yet. Go to the ...
3
votes
2answers
898 views

Where are permissions stored in DB?

I'm looking at the DB but can't find where the permissions are stored. On the Admin page the permissions can be saved at /admin/user/permissions But where this data is saved in the DB?
1
vote
1answer
26 views

copy content-profile elements to another page

In my content profile page, I have a set of three elements: a search field, a set of checkboxes with data, a text area that shows the chosen options. I also have a number of onclick and keyup ...
1
vote
2answers
771 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
0answers
153 views

Send email to all users of a role except certain users?

I'd like to send an email to a users of a certain role. I've already did it with Rules module, but now I want to expand my rule and send email to only certain role's but to a specific users of that ...
0
votes
1answer
38 views

What does the computed code do for a computed field in content type

I have content type field called 'field_p_bo' and it have the computed code as follows it causes some problem since it affect the saving of this content type , This code is there for some other ...
1
vote
0answers
40 views

Drupal 6 Views Autocomplete Filters : not working anymore with taxonomy

This does not work anymore - seems to relate to Views 2.18 last update. I tried to roll Views back to 2.16, but this is impossible, so I cannot confirm. 1) I have an autocomplete filter for terms of ...
0
votes
1answer
38 views

how to set cron correctly on a shared server

I set the following command for cron on a shared server. /usr/bin/php5.3 home/public_html/cron.php (All the Drupal files are under /public_html) This commend seems to be working but I get the ...
1
vote
0answers
64 views

How to change a content´s workflow state from an url

I have a server installed with apache2 and drupal 6. In my server, users can make some type of new contents. When they make a new content, they receive an e-mail with creation confirmation. I´d like ...
1
vote
0answers
52 views

How to change search results theme?

I have a website that I need to add search functionality to. First though, we are running Drupal 6 with multiple sites each with its own theme. Content goes to its respective site by URL and the ...
0
votes
1answer
52 views

Content type select field is not listing in front end

I created a content type field called which have widget type select list But its not displaying the field in frontend. When I changed the widget type to the text field it displays the field in ...
0
votes
2answers
21 views

Know field type usage

I need to know if a field type is used on a website in a content type. How can I know that with Drush or Drupal BO?
0
votes
0answers
41 views

Cloning the request when taking preview of a node

I have a weird issue in Drupal 6 that when taking the preview of a node, it's cloning and make another node type with exact same details. Any idea why this happens? I guess the below code is working ...
0
votes
2answers
63 views

What does drupal_clone($node) do

What does drupal_clone($node) do in Drupal? Will it clone a node? I know the node will be saved only if node_save($clone) is rendered. So what will happen when drupal_clone($node) is rendered ? /** ...
0
votes
1answer
14 views

How to debug what module/process is requesting a file?

I moved my drupal 6 site to server with php 5.5 and the site started to throw not found error - sites/all/libraries/jquery.ui/themes/base/jquery-ui.css on every page. I have not installed any new ...
5
votes
1answer
2k views

How do I pass a variable via drupal_goto()?

So I have a function having http://link/to/$id as destination link. It works when I use <a href="?q=mymodule/option/$id">Targeted</a>. But I need to change it to submit form because I ...
0
votes
1answer
154 views

How to change block visibility/pages in hook_block in my module?

I implement mymodule_block and for case 'list' I have blocks like: $blocks[CN_BLOCK_RHM_BUTTONS] = array( 'info' => t("Block name"), 'status' => 1, // on by default '...
1
vote
0answers
23 views

Adding SUM per node ID to Views in Drupal 6

I have a list of IDs, and these IDs have several amounts associated with them. I need to sum the amounts per ID, and spit that out as the amount. Here's my query alter: function ...
1
vote
1answer
100 views

creating “live search” from database text field in Profile Content field Drupal 6

I'm new to Drupal development. I have inherited a Drupal 6 site. I would like to add to the content-profile fields a "live search" text field that will give the user options from a database based on ...
0
votes
2answers
38 views

Possible to change cron link?

I use D6. Cron run often by some bots visiting example.com/cron.php Is it possible to change it somehow? Or restrict? I would like to prevent anonymous users to hit the script.I want to be able to run ...
0
votes
2answers
220 views

How to theme views fields template to display a gallery?

My question is generic because the solution will allow me to use various jquery gallery as bxslider, galleria or flexslider. My need is about creating a gallery with thumbnail nav, for that I need to ...
0
votes
1answer
391 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 ...
0
votes
1answer
62 views

How to style a webform like a spreadsheet? [closed]

I've been asked to develop a webform to look like a spreadsheet. Unfortunately, the site is written in D6 and I've only really developed in D7. Can anyone recommend a module / method to achieve this?
0
votes
1answer
36 views

How drupal keeps revisions for some content types only

In Drupal 6 for some content types when editing a node its replicated and keeps revisions for that content type by keeping vid (version id) for that in the table, But for some other content types it ...
0
votes
1answer
2k views

How variable_get and variable_set works in drupal [duplicate]

How do variables work? Is it as simple as using variable_set('myvar', 'my_value'); to set, and variable_get('myvar'); to retrieve? Additionally, where are these variables stored, and do they have ...
0
votes
3answers
316 views

Passing global variables to alter hooks

The problem I have is that it seems that I can use global variable created inside another module, only if I use it inside callback function. I successfully tested it by inserting code inside existing ...
0
votes
1answer
75 views

Theming Site off-line page

Is there any way to theme or override the Site off-line page? The page with below massage: The site is currently not available due to technical problems. Please try again later. Thank you for your ...
1
vote
2answers
1k views

Will upgrading PHP version affect my current site that running Drupal 6?

I am going to test Drupal 8 RC, unfortunately my PHP version is too old. It's asking for upgrade the version higher than PHP 5.5.9. If I upgrade it to PHP 5.5.9 or latest version PHP 5.6.14, will it ...
0
votes
0answers
36 views

Create a dynamic view for years

I need to create a view which provide a list of past years, where I could define the past time duration, like display the past 10 years. Which kind of field do I use?
1
vote
0answers
90 views

Drupal 6 tableselect - Retain checkbox values across pagination

In Drupal 6, I am using tableselect theme with PagerSelect to generate table with checkboxes and pagination. Any thoughts on how to retain checkbox values on pagination? Because in the first page , i ...
0
votes
1answer
24 views

Is it possible to redirect users when page caching is enabled?

I use simple redirect user inside template.php with the following code: if ( isset($_GET['abc']) && $_GET['abc'] == 1 ) { drupal_goto('mypage'); } Is it possible to redirect to the page ...
0
votes
1answer
28 views

Which kind of views style to use JS image effect?

I wonder which kind of views style do I choose to make a page like it can be done with masonry. Actually I use Susy 2, and the example present items in div, actually I get items in a ul via views. ...
0
votes
2answers
268 views

what action can trigger clearing of caches?

I have a site that is cached for anonymous users. However it seems that something clears caches every now and then (many times daily.) And it is not result of admins activity. I found about it only by ...
1
vote
1answer
763 views

SQL query to display a particular content type?

I want to create a view which displays a list of a particular content type. I only have access to the database and I need to figure out the list of content type through view; therefore, I am thinking ...
1
vote
0answers
18 views

How to order Alpha Pager by custom field?

I'm working on a D6 installation and I am trying to correct an alpha pager. If you visit vets-hall.org/stories/alphabetical you'll see I have a list of stories that have three custom fields: ...
2
votes
2answers
687 views

Reset password in Drupal 6?

My site is on localhost and I have access to database too. This is the structure of "users" table: The password field is of type "varchar(32)" having collection "utf8_general_ci". I tried to decrypt ...
0
votes
1answer
35 views

saving any view clears all cache

I am working in drupal 6. I know that saving any node clears cache but is the same with views? I am experiencing this issue. I would like to know how to prevent it. Thank you.
1
vote
1answer
359 views

How to add custom html inside form

I need to put some custom html tags and code inside the form elements am creating using form api . I defined a fieldset and need to come the html under this fieldset , code sample : $...

1 2
3
4 5
56