This tag is for questions regarding Drupal 6 specifically. Version tags should be used only when strictly necessary, and not used just to report "I am using Drupal 6 in my site."
2
votes
2answers
23 views
How to add filter on node list in a custom module?
I am developing a module. In that module I have a page to list all the nodes of a specific type to user.
I need to:
1- show the nodes each on a row with ' Edit | Delete ' link in each row.
2- I ...
-1
votes
2answers
32 views
Features_extra: after enabling fe_block, no Machine Name field appears on block edit form
I installed and enabled fe_block 6.x-1.x-dev, but when I reload one of my blocks' edit form, no machine name field appears. I tried clearing the cache; no dice.
What's missing? Thanks.
1
vote
1answer
15 views
D6 - limit user (not role) publication of content to specific menu subtree
Drupal 6. We have several roles. Each user is allocated to one role only.
Each user has a separate menu area - e.g.
user 1 - Profile
- Product
- Press Releases - release 1
...
0
votes
2answers
22 views
get to previous page with destination d6
For example i have a button which has onclick event (redirecting to a user login page). When a user clicks on that button browser redirects him to page user/login, but when he's successfully logined ...
1
vote
1answer
18 views
User login through token in URL in drupal 6
I have a drupal 6 website and I would like to implement the functionality to allow user of a particular user role to login into site using the token value in the url.
I have user role "SAP" in the ...
0
votes
1answer
20 views
Drupal 6: using template based on browser version
Is it possible to serve up a specific page template based on browser version? If I can satisfy my IE 7 requirements with a special template, I'd prefer that rather than loading a bunch of extra css ...
2
votes
2answers
22 views
Does Drupal modify folder permissions during runtime?
Does Drupal modify the permissions on folder within the sites folder? Is there an edge case where this is possible outside of install?
I've been seeing an issue where a sites folder whether it be ...
0
votes
0answers
9 views
force step sequence in multistep form in Drupal 6
I am using multi step form with ctools in my site.
How can I force the order of steps ? I mean if the user access step2 url the page redirect to step1. User can access to next step only when he ...
0
votes
2answers
35 views
Adding html to t() in Drupal 6 template.php?
Hi I am trying to add html to the "t('Older Posts')" and "t('Newer Posts')" Is this possible ? I can figure it out ????
I am in a Drupal 6 template.php file.
This is the code I am trying to add as ...
1
vote
0answers
10 views
persistent language i18n module
When a user selects french they are redirected to /fr, using the Drupal translation module. Is there anyway to make this selection persistent or "sticky", so when they return to the page it is the ...
1
vote
1answer
28 views
Drupal 6 Site Duplication - Looks Like My Theme is Broken
My goal is to duplicate a Drupal 6 site to a new host, but I am having some problems.
New host - 198.20.226.199/~paul8226/ -- No name resolution setup yet.
Old host - www.egcasting.com/
I ...
0
votes
1answer
18 views
unable to set dateboosting in apachesolr with D6
I'm using Drupal 6.22 with apache solr module for search functionality, specifically using 6.x-1.6 version of solr. I had a date field for my node added to the solr indexing named as ds_myDate in ...
0
votes
1answer
14 views
restrict profile field to module and admin in drupal 6
I am using profile for storing some more information for users. but I want one field of profile be only editable by administrator and my own module code and viewable by own user and administrator.
I ...
3
votes
0answers
26 views
Can I use the Twig template engine in Drupal 6/7?
I do a lot of Django development and I like their templating language.
Twig, the new templating engine in Drupal 8, looks very much like it.
How can I use Twig in Drupal 7 or even Drupal 6?
0
votes
1answer
48 views
Files security - files folder hacked
For the second time in a short while my files/ folder has been hacked. Permissions are set as 755 all accross the folder.
I tried to set it up as 750, 754 but it breaks the website.
What happens is ...
0
votes
1answer
20 views
How do I display a summary page after finishing a multistep form?
I have a multi step form in Drupal 6, and I want to show a summary page based on entered information in the steps after finishing the steps and user click finish button.
I am using the ctools wizard ...
0
votes
1answer
32 views
how to delete a node programitically in drupal 6?
I want to add delete permission for a specific node id programitically. I try calling 'node_delete' but it doesn't work.
how can I do it ?
3
votes
1answer
46 views
$form_state['redirect'] vs drupal_goto() in Drupal 6
What is different between $form_state['redirect'] and drupal_goto() to redirect user to a step in multi step forms in Drupal 6 ? I used $form_state['redirect'] but no redirection happend so I use ...
0
votes
0answers
28 views
node_access() returns FALSE but I can view the node
I got a view which gets rendered to a variable which then gets mailed to the user. A few days ago, I noticed that this functionality is broken (empty mails) and that for the administrator users ...
2
votes
0answers
22 views
How to test AJAX Callback with simpletest on Drupal 6
I know there is drupalPostAJAX() available on Drupal 7 to do this, but I want to use it on Drupal 6.
So I found on this link : http://tiger-fish.com/blog/drupal-6-posting-ajax-callbacks-simpletest a ...
1
vote
1answer
19 views
$views->render() does not display node_path
So I made a view and Im trying to pull the results into an array (which I am json encoding and sending to javascript but thats neither here nor there) but some of the node information isnt being ...
0
votes
1answer
19 views
How to bypass required fields in form validation function of a module?
I have a form with two radios and two forms related to each of them. These forms have some required fields. user can just check one radio and then fill in one form. but then clicks on submit button ...
0
votes
1answer
25 views
How to add some javascript in a form using form API?
I need to output some javascript codes as well as form fields.
I am using Drupal 6 and form API to build the form. How can I output those javascript codes? Is there a 'javascript' type like ...
1
vote
1answer
13 views
After adding a column to a module's schema, should the new column also be placed inside hook_schema?
I have my own module which implements its own schema. I now want to add a column to the table provided by the schema, which I plan on accomplishing via hook_update_N() and db_add_field().
My question ...
1
vote
0answers
13 views
Port back to d6 $instance
I have this code that I am trying to get back to d6
$field_name = variable_get('blogger_importer_node_tag_field', '');
$instance = ...
0
votes
1answer
27 views
Removing access by role restriction
I have a View with a Page display that only allows the returned data to be linked if the user is authenticated/logged in. I'm not using any extra modules that I can see (inherited site) that would ...
1
vote
0answers
10 views
Find the total dollar amount spent by shopper in Ubercart, using Views?
I'd like to run a report that will show info about each shopper, as well as the total dollar amount they have spent on my site. I know that the "Customer Orders" page (for instance, ...
1
vote
1answer
12 views
How to add a custom widget to a node creation form Drupal 6
This may be a dumb question, but nothing I could find really told me what I was looking for. Without furthur ado:
I need to add a custom widget that will edit node reference fields on CCK content ...
1
vote
1answer
23 views
Context reaction : Exclude specific block?
I've got a website with 3 large contexts :
- internet
- intranet
- shop
These 3 contexts are "tight" (sorry about my english, I think this is the word).
My Block UI (admin/build/block) provides to ...
0
votes
1answer
26 views
How to add a confirmation form after the user clicks “Save” on a node edit form?
On a site I'm building, a user can edit certain fields on a node that cause a chain reaction to happen (which I've implemented using hook_nodeapi's "update" op).
Since this chain reaction potentially ...
0
votes
0answers
21 views
How to display and validate all elements of the user registration form on the front page
I'm working with D6, using several contrib modules and my own theme. The theme has two separate files to differentiate between the front page and any other page: page-front.tpl.php and page.tpl.php, ...
-1
votes
0answers
24 views
Increase memory_limit of subdomains in the plesk panel [closed]
I increased memory_limit to 512M in the plesk panel, then i ran phpinfo() and tested this two addresses:
fanap.ir/phpinfo.php ----> memory_limit=512M
test.fanap.ir/phpinfo.php ----> ...
0
votes
1answer
43 views
open node reference links in lightbox/ popup
I want in my node view pages, node reference links open in popup window or lightbox window.
Does anyone have a solution?
1
vote
1answer
31 views
How to pull content from drupal views into an array
I hav a strange task where I need to pull the content from a (well some) drupal view into an array so I can use that data later. I dont want to display contents right away, but I'll need to access it ...
0
votes
1answer
36 views
drupal is welcoming other user after login
I have website built on drupal 6.26.
Now i am facing a trouble that sometimes when the user logs in, the website is showing him Welcome message to another user!! for example if you login using user X, ...
1
vote
1answer
36 views
Alter Views exposed filter form
I'm trying to add more elements to the exposed views filter form but am running into an odd problem that is confusing the heck out of me.
I'm using a hook_form_alter call in a custom module to add ...
2
votes
3answers
62 views
On the 404 page, look for an XML file and read it in. If it doesn't exist, display 404 message
I am wondered if the following is possible: I need to display some XML data on the fly; these should only be created temporarily (ie not nodes or entries in a database and therefore not readable by ...
0
votes
0answers
12 views
Ubercart Invoice notifications, who they're sent to and how they're configured
I'm using Drupal 6 and Ubercart 2 and I'm trying to figure exactly what I need to do to send a copy of an order invoice, on order completion to the customer as well as my admin email.
These ...
2
votes
0answers
21 views
New Relic: “Application Code (in /theme)”
I have several Drupal sites with which I'm using New Relic to help monitor and debug performance issues.
I've been finding that when viewing the "Web Transactions" section under "Monitoring", that a ...
1
vote
1answer
22 views
%post[key] value in webforms not rendering correctly D6
I am trying to use "Special Tokens" in the webform module (6.x-3.18) on Drupal6. I'd like the data to populate a hidden field I've created with the email field on the same form.
Under default value ...
0
votes
3answers
32 views
Is there a central document store in Drupal 6 or a module that does?
I have a content type in Drupal 6 that consists of 3 main fields, each allows for the upload of unlimited files, which I have restricted to being PDF or DOC based formats. Lets say there will 100 ...
0
votes
1answer
19 views
How to hide some fields from user in add content page?
I have a content type with some fields created using cck module in Drupal 6 . I want user just fill in some of them in create content page and doesn't see others which will fill later by admin.
How ...
1
vote
1answer
32 views
How to not index comments in search_index?
I'm using drupal search, the core module.
I want to not index the comments in the search_index
In the node.module, the "function _node_index_node($node)" loads and renders the node. Comment content ...
0
votes
2answers
42 views
How to set default role in Drupal 6
I have created some user roles in my drupal 6 website.
Have can set one of them as default role when users register in the site?
0
votes
0answers
23 views
supply values to a cck text field on node edit then use those values to populate a select list
I have a d6 system that predates the webform module and has code that creates a mailed response using php and the drupal 6 cms. The outword facing form is basically is an email form. I am looking to ...
0
votes
0answers
22 views
Captcha doesn't validate
I'm displaying a custom form in a block. I'm adding a captcha to my custom form like so:
function requestform(){
$form['firstName'] = array(
'#type' => 'textfield',
'#title' => '',
...
0
votes
0answers
16 views
How to put two cck fields in add content page in drupal 6
0 down vote favorite
I have created a content type in Drupal 6.
I want to add an input field to a number and a select(dropdown) field to get Year/months. They should be next to each other in add ...
0
votes
0answers
35 views
Google Custom Search Block Not Displaying In Drupal 6 But OK In D7
probably a total noob issue. I got started with Drupal on D7 and this is a D6 site.
I want to implement this Google Custom Search on a D6 site: http://drupal.org/node/1887016
We're signed up for GCS ...
0
votes
0answers
22 views
adding select option to e commerce product
i am selling t shirts on a drupal 6 site I need an option for the users size (s,m,l) and pass it trough with the order preferably or alternatively add a field to the billing address where the user can ...
0
votes
0answers
23 views
Drupal Quiz Question Browser
I have quiz module installed on a website, when you create a quiz, in next step it asks you to add some questions to it, while you can add your previous questions along the new ones, it provides some ...


