drupal-6

how to customise search results of apachesolr (drupal 6)

can somebody help me how to customize the search result of a apache solr search. i was only able to access these variables [comment_count] => [created] => [id] => [name] => [nid] => [title] => [type] => [uid] => [url] => [score] => [body]. how can i access other variable like status, vote .... from the index ( i don't want to access the...

How to dynamically reconfigure Drupal's jQuery-based autocomplete at runtime?

Drupal has a very well-architected, jQuery-based autocomplete.js. Usually, you don't have to bother with it, since it's configuration and execution is handled by the Drupal form API. Now, I need a way to reconfigure it at runtime (with JavaScript, that is). I have a standard drop down select box with a text field next to it, and dependi...

ImageField not showing in CCK under Drupal 6

I'm running Drupal 6.12 and I've installed the CCK, ImageField, FileField and ImageCache modules. I've create a new content type called 'Photo' and then click on 'Manage Fields', so that I can add an ImageField to this content type. When I do this, ImageField isn't in the drop-down list. I've searched around and other people don't see...

How to make drupal 6 support Master-Slave MYSQL ?

Is there any solutions in Drupal 6 to split query READ to Slave and WRITE to Master ? ...

How to Deploy a Drupal Site on a Web Farm ?

Hi, I would like to know how I should deploy a Drupal site when I'm using three servers? Is it possible to deploy it with a Drupal module or something? If it is, how does that work? Thanks. update: I would like to know about the deployment of files and the configuration of the servers. ...

iPaper Module for Drupal

I have successfully installed the iPaper module from Scribd.com. But I could not upload files. What's happening is that the "attachment" is being uploaded to my webserver but it wouldn't go to scribd.com. Any tips on what to look for? ...

2 different layouts of the same content type in drupal 6

I have a content type called fund. The contents of this is in node-fund.tpl.php which is inside of page.tpl.php I have a requirement to recreate the content of fund but without page.tpl.php So to be clear, i need to have 2 pages 1) fund inside page template 2) the fund data but completely reformatted. The plans is to create pages th...

Complex users list in taxonomy/term/%

I need taxonomy/term/% to look like tis User Name, Second Name, latest user's node title in this term + link to it; User Name, Second Name, latest user's node title in this term + link to it; User Name, Second Name, latest user's node title in this term + link to it; ... Is it possible and how to do this using "Views 2"? Thank you :...

How do I run commands on the command line in a PHP Drupal module?

I'm writing an in-house module to generate a small LaTeX PDF. Within the module, how do I use PHP to utilize the command line? ...

RSS <link> tag not appearing in <head> of Drupal view page display output

I have a Drupal 6 site with a view that has a page and a feed display. Both the page and the feed work great. The view just shows content type Story in reverse chronological order- basic blog listing page. While the RSS look good, the page display doesn't include the tag in the header for auto-discovery. I've outputting $head in my pag...

file path from sql query in drupal

I'm wanting to get the filepath ie "/sites/default/files/myfile.pdf" for my file uploads. I'm using the below $row['node_data_field_factsheet_field_factsheet_data'] this returns "a:1:{s:11:"description";s:0:"";}" How do i get the actual path? here is my sql statement. SELECT node.nid AS nid, node_data_field_factsheet.field_factshee...

Drupal 6.10 installation problem

Hi, I m migrating my existing drupal site from one server to another . I have imported the db , copied the files and changed the settings in the settings.php file. However each time I try to run the update.php script or install.php script .. instead of showing some drupal screen the file ends up getting downloaded. Could any one please...

Does Drupal parse hooks that aren't being used?

Does Drupal parse (and/or run) hooks that are unrelated to the content being loaded by the current user? For example, say I had a module foo installed and active with the following hooks: <?php // .. stuff ... function foo_menu() { $items = array(); $items['foo/show'] = array( 'title' => t('Foo!'), 'pa...

How to solve the problem with the use of deprecated function ereg() of PHP 5.3.0 in Drupal 6.13

Anyone knows how to solve the error below ? Deprecated: Function ereg() is deprecated in C:\wamp\www\includes\file.inc on line 895 It is happening after installing Drupal 6.13 on wamp server 2.0i with PHP 5.3.0 ...

Drupal 6.13 Installation - Database Error

I'm using Wampserver 2.0i with php 5.3.0 to install Drupal 6.13. During the installation I'm receiving the message below during the "Set up database" phase Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support. (Currently using Unicode library Standard PHP) ...

Checkboxes instead of select in views filter

Hi, How do I change an exposed views filter in Drupal 6 to checkboxes instead of the default multi select? Thanks, ...

Drupal 6: Views: Listing taxonomy terms with tagged nodes underneath.

I need to create a view that lists out taxonomy terms and then list the top 3 recent(sort by node:date updated) nodes with that tag example out put: Article Article 1 Article 2 Article 3 Podcast Podcast 1 Podcast 2 Podcast 3 . . . I created a view of type "Term" and I can get the view to output all of the terms. However, I don...

Drupal: Accessing all rows in a view as an array

Apologies for the awkward wording in this question; I'm still trying to wrap my head around the beast that is Drupal and haven't quite gotten the vocabulary down yet. I'm looking to access all rows in a view as an array (so I can apply some array sorting and grouping functions before display) in a display output? The best I can tell, yo...

How Do I Style An Email Field in Drupal?

I have a list of Staff Members in Drupal6. I need to style a node such that the email field of a staff member displays as "Contact [First word of Full Name field]". Clicking it causes a mailto:// link to open. BTW, I know that's not a recommended procedure because a contact form or a captcha would be more effective, but my client desire...

Broken Image links after migrating a Drupal site from Local Machine to Live Server

Whats the simplest way to update the paths of the images after migrating the website from local machine to a live server. Most of the times I end up updating the paths manually. I m convinced that there must be a simpler way which i m missing out on. Kindly suggest. ...