drupal-6

drupa6 node_view add fields

Hi , How to insert the form and fields in the node view, For example, i have page content type, i put the article called "How to handle laptop" , and i published that content , now i go in the home, i find that articles displayed in the home, Then i hit the article , then showed the article title and and article body , Now i want ...

Saving Data from Drupal to Local System File

I have created a drupal module which displays some reporting data. I would like to include an option that enables a user viewing the page to save data as a txt or csv file on their local system, but I am running into the following problems: How to specify local directory to save to. How to actually save the data to the directory. I'...

Changing Destination for file_save_data() function

The drupal function file_save_data() saves to sites/default/files by default. Is there anyway I can use this feature to save outside of the drupal folder. I try using a local path as the destination, but it doesn't work. ...

Drupal : How to add javascript function on click event of a cck check box ?

I have added two fields one is check box and another one is text box to a content type and now i want to toggle the text box on clicking check box .Can any one help in doing so. ...

Accessing custom user profile fields in CCK

I'm probably going about this the wrong way but... I’ve added a field to the User Profile called profile_real_name which is required by the user. Is there a way to access the details in CCK? For example in CCK when creating a new field I can access the user’s username with the ‘User reference’ Field type and setting the ‘Widget type’ t...

fusion charts drill down integration in drupal

How can i implement a drill down fusion charts in drupal. I have gont through the fusioncharts_test.module but i got no idea. My question is I want to implement fusion charts based on user logins and posts.I implemented charts for rendering userlogins and posts for year,month,week seperately. How can i implement when i click on year rend...

drupal 6 programmatically log user in

I'm trying to log in a user as part of a form submit, but why is the following not working: $user = db_fetch_object(db_query("SELECT * FROM users WHERE mail = '%s' AND pass = '%s'", $mail, md5($pass))); if ($user) { // Authenticate user and log in $params = array( 'name' => $user->name, 'pass' => trim($user->pass) ...

How can I create a comma separated list for multiple node references in Drupal 6?

I have an Author content_type that I'm switching out for username in articles. The problem is that a story can have multiple authors, and the following code in template.php will only generate the first author. How can I get this to output to be readable as "By John Smith, Jane Doe and Mary Poppins | Feb 19, 2010"? function mytheme_date(...

Problem with using lightbox and jquery-ui accordion in Drupal 6.15

Dear All, I have having problem putting jQuery-ui Accordion and Lightbox on the same page. I am using Drupal 6.15 Jquery 1.3.2 Jquery-ui 1.7.2 Lightbox2 drupal module The thing is... my lightbox works fine if I exclude the following line:- drupal_add_js('sites/all/js/jquery-1.3.2.js'); but if I exclude the above line, my accordion ...

Drupal search module has suddenly stopped working, how do I fix this problem?

Drupal 6.15 search has stopped working. how can I fix it? I've run the cron and re-indexed, but it still does nothing when searching. Any ideas? I can see the tables that the items have been indexed, but search results show a blank white page. ...

Drupal - displaying image in theme template from iids value only

Hiya, I'm trying to theme one of my content types, which has images uploaded to each instance using the image attach module. Using the developer module, I've found the iids value of the uploaded image (eg 305), but i'm having trouble finding out how I can actually display the image in my code. This line outputs the node id of the imag...

Modificate content profile form to show checkboxes in the matrix

I need to show matrix like this http://eugen.gotdns.com/test/zeitplaner.png in content profile form. I can arrange checkboxes with CSS in this way, but i need also some labels on the top and on the left. Should i work with $form array to add some labels? Can this be done with css maybe? ...

Duplicate <meta> in Drupal variable $head

Hey Everyone, I am trying to customize the $head variable in my page.tpl.php template, because there are two instances of <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> appearing, which I believe is affecting the site from being validated u...

Drupal : Drupal6 views : Filter restriction

Hi, I am a newbie to Drupal, hope somebody can answer my query. I think I am facing a weird problem in views..I have a content type of say Company and have around 3-4 pages added to it. The sequence is as 1. Company - default page 2. View company 3. Search company 4. New page The problem is when I go and add a Filter to the Search co...

Unset blank array items on the fly

Hi, I have an array which is being built using: $features_data[$i] = preg_split("/\n/", $row); The output is as follows: Array ( [0] =&gt; Array ( [0] =&gt; [1] =&gt; [2] =&gt; &lt;img src=&quot;http://example.com/sites/test/files/imagecache/feature-image/testima...

Cannot see anything from #prefix and #suffix fields

I placed some table tags in #prefix and #suffix fields of the $forms array, but i cannot see anything in rendered page, why? ...

drupal view php code parsed arguments - usage

using clean url as argument for taxonomy I encountered an issue related to my inexperience with the view concept (or maybe rtfm concept). having a peaces of url generated by pathauto, I want to use the pathauto table to get its real address, and since it should be a taxonomy term, I can, somehow use it as an argument ..? so Having a pa...

Creating a dynamic navigation menu

I have a views page at the location "mysite.com/user/1/myposts". where the contents of the page depends on the argument supplied by views... which is the user id. I simply want to create a menu entry in the navigation... which accepts arguments, to create pages for logged in users. I have also tried the drupal api and found this page ht...

Cannot enable Clean URLs on Drupal after upgrading from 6.12 to 6.15

Dear All, I have a setup with Drupal 6.12 installed on Ubuntu 9.10. It took me a while to figure out how to enable the Clean URL... but after I upgrade from 6.12 to 6.15... the radio on Clean URL was disabled and I tried so many different ways I found from google and drupal.org and was no help... Can someone please tell me is there i...

Drupal views output theming

I have a views page which tracks posts created by users. Its having a field(comment_count) to show no of comments in a node. the field is working fine except its showing blank spaces in fields with no comments. I am using the template file views-view-field--tracker--page--comment-count.tpl.php and copying the line <?php print $output;?>...