drupal-6

how to replace "Remove" checkboxes in Ubercart

I'm using Ubercart and I'm customizing the shopping cart. I would like to replace the check box to select which items to remove with a link "X Remove" which dynamically removes the items (ajax reqeust I guexx) by fading them out: From this: http://www.designer-daily.com/wp-content/uploads/2009/11/ubercart.jpg to this: http://dl.dropbo...

optional CCK field automatically replacing another field in a View

I have a content type with 2 CCK text area fields. The first field is always filled. The second fields is optional. Now: I have 2 Views. In the first View the first field is always displayed. In the second View the first 2 lines of the first field are displayed. However if the second field is filled, the first field should be ignored...

exclude CKEditor from pages of a specific Content Type

What's the syntax to exclude CKEditor from a specific content type text areas ? I know where to add the line to specify to not use it, but I don't know how to specify a specific content type. ...

What is the best way to add a content/view to a node

I am developing a module to display video. I have created a view so-called navigation for the user to select a video from a list. Now I want o add this navigation to every node with type = 'video'. I don't know whether I should create a template for it ( then I have to put the template file in theme folder which is not so good ) or use ...

Double description for images CCK field

I've noticed the images in the products content type in ubercart shop have 2 description fields: http://dl.dropbox.com/u/72686/doubleDescription.png I was wondering if I can do this only with programming or there is some module to do it. Also, it would be nice to have a text area instead of a single line text field for the description....

recognizing Drupal from website code

Can I make impossible for people to recognize I'm using Drupal framework behind my website ? In other terms, can somebody easily see I'm using Drupal from the generated html code ? I would to know all the strategies to detect it. thanks ...

Views broken when username contains special characters

Hi, I've created a couple views showing e.g. the latest news and events. However, when the username contains "special characters" (but still common in Finland), for example 'ä' or 'ö', the view shows the empty text instead of the real data. For example my events view has two fields (node title and time of the event) and three filters (...

How to remove the <!--break--> in a RSS feed?

The teaser divider <!--break--> shows up in my full text RSS feed. How can I remove it? ...

Optional CCK fields

Is there a module in Drupal to enable or not a text field or more in general a CCK field? For example a check box option: when this is checked a textfield appears below, otherwise it is not visible. Is there a module to switch between 2 CCK fields? For example I have 2 text areas, and I can only fill one (the others should be automatica...

View to list all nodes

In my drupal installation I have created two type of nodes. Free access (non - registered users) Only member access (registered users) I used a content access module to set permissions. Now I have created a list of these nodes using views, the problem is that when free user sees that list, they are not shown the list of nodes access...

Menu router question

My question is related to a performance issue I'm experiencing using the context module with a large number of menus. The performance issue may be a result of a module I created to import a menu structure from a different CMS into Drupal. I programatically created the menu items using menu_link_save(), passing in the menu_name, link_path...

What is wrong with my Update Query in Drupal 6.x?

There is mixed documentation that I am seeing and thus am confused. db_query( 'UPDATE {db} SET principlename="%s", schoolname="%s", address1="%s", address2="%s", city="%s", computerserialno="%s", state="%s", zipcode="%s", terminalid="%s", admin_first_name="%s", admin_last_name="%s", admin_email="%s", admin_phone="%s" WHERE userid=...

Why is my form not updating as it should?

The submit handler gets the same form values no matter what I put in the form. Why??????? function edit_schoolinfo_form() { global $user; $result = db_query("SELECT * FROM {db} where userid=%d", $user->uid); $sas_school_info = db_fetch_array($result); $form = array(); $form['school'] = array('#type' => 'fieldset', '#...

hook_menu() - an unexpected behaviour (longer path issue)

I am initializing a number of items via hook_menu (Drupal 6) ... $items['webtv/block/%/playlist/edit/%'] = array( ... 'page arguments' => array('webtv_playlist_form', 2, 5), ... ); $items['webtv/block/%/playlist/edit/%/filter/new'] = array( ... 'page arguments' => array('webtv_playlist_param_form', 2, 5), ... ); $items['w...

Difference between hook_node_type() and hook_nodeapi()

I'm trying to understand the difference between hook_node_type and hook_nodeapi I've tried to use hook_node_type with the story node and a simple dsm but got nothing. function mymod_node_story($op, $info){ dsm($info); } ...

How to get a excerpt content of a node?

I am having a node reference.How can i get its excerpt content? For getting title or body we use:- print $entry->title; print $entry->body; How i can get the excerpt of that node.(i am using excerpt module) ...

Multiple Content Creation on a single page in Drupal

I want to allow the user to create 10 content nodes on a single page instead of clicking on "add a new node each" time. This is just to save the users time when he/she wants to create 80 nodes at one time. Is there any such module which supports this functionality or will I need to write a module for my own? Nitin ...

Drupal strategy related question

Hi, i've a Drupal theory/strategy related question. First i want to say that i'm very new to the drupalling world, so this question can be quiet stupid. I'm trying to develop/make a part of a site that has the following structure: (level one) virtual_exhibitions: shows an overview of exhibition categories. (level two) themes, places, p...

Form submit handlers with additional arguments

For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit handler as $additional_args = array(); $form['#submit'][] = 'my_submit_handler' I expect to submit handler as function my_submit_handler($form, &$form_state, $additional_args){ ...

[Drupal] Manipulating database data from front-end

Let's say a content-type user has a CCK field called friends. From the back-end (as admin) you can easily multiselect the friends of that user. But how can i change the value of this field by a button 'Add as friend' on the detailpage of this user on the front-end. Summary: How can i manipulate node data from the front of the webpage?...