drupal

How do you name a function in template.php to get picked up by theme() calls in page.tpl.php?

I have a Drupal 6 site with a simple theme I'm creating called NPT. In page.tpl I have this: <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?> That successfully calls this function in template.php: npt_links() However, I also have this in page.tpl.php: <?php print theme('clinks', $secondary_lin...

Update Drupal views argument via AJAX

Hello, I have a request concerning Drupal 6.x I'd like to have this behaviour: imagine to have 2 columns, on the left a list of nodes (only titles for example) and on the right a view showing just one of the contents on the left. My idea would be to achieve this with an AJAX-fashion: clicking a link in the list on the left updates the v...

Problem with include on my Drupal

Hello again! I have a problem with 3rd-party-system integration in my drupal site. Sorry for my english, i'm from russia, but i will try to explain my problem well. Integration idea: 2 .php files 2 php-script lines (include function's) The problem is: this scripts call to outside perl (.pl) script. Perl script read the paramet...

Drupal Conent as a Menu

In Drupal I have the page content type. I have created a vocublary and the terms in it make a heirachy as below: Bird Mammal Dog Poodle bulldog Cat Tiger Rabbit Reptile Lizard I select the term when I create a content type. I wish to display all the pages that have have this conent type in a menu (unordered list) maintating t...

How to create new theme in drupal 7

Can anyone please help me in creating new theme using drupal 7. I wanted to know the steps to create it. If the is any document for creating new theme then it would be gr8. It would be great if anyone says want all we need to write in the files in .info, .tpl.php files and also in .css & .js files ...

Drupal: Complex filtering/sorting using Views Fast Search module

I'm working on a Drupal 5.x book-selling site and using the Views Fast Search module. In the search results, the client wants the user to be able to choose (from a select box) from a variety of displays, e.g.: sort by bestselling book, sort by word count, sort by most recently added, etc. Some of these are straightforward but others ...

Drupal - Remove RSS

Hi I have just set up a new Drupal site, community based. there are some forums which contain 'sensitive' info, yet incredibly, Drupal auto generates RSS feeds for taxonomy terms, which is what the forum is based on. There's no built in way to turn it off! Or a module to control what feeds are generated... this is a big problem. Using...

Drupal combined user+content search

Hi, for my current project I need to implement a search functionality, that combines both the content search and the user search. This raises several issues, for example relevance. Nodes have a relevance when searched, and users do not. Now, I was thinking how to tackle this the best way. To my knowledge, I have several options : h...

Drupal Development on a Thumb Drive

I mostly a .NET developer but need to do some new work in Drupal. So I guess I need a portable - Apache - PHP - MySQL - phpMyAdmin - Drupal codebase What is the best way to work with the environment on a portable / thumb drive? I'm on Windows. I want to go portable because I work on 3 to 4 different machines throughout the week. Is...

Displayed layout width doesn't match coded width (drupal site)

I'm working on a drupal website with a fixed-width div layout. Everything lines up and etc., but for some reason the whole thing is about 15px wider than it should be. The width should be 900px but shows up as something like 915px. It's even stretching the background image of the header div. This happens in Firefox, not IE (for who knows...

Export Drupal Content?

I want to know what is the easiest way to export ALL content of a specific user in Drupal, by only making use of the database. Is this even possible? Reason being, I moved a site, and now clients created content on the old server, unknowingly, and I need to move it to the new server. Unfortunately, the site can't be accessed anymore (du...

How can i configure my mail server in open atrium?

Hi, i have just succesfully installed open atrium, but i can't find the configuration of the mailserver... i currently cant send any mails because there is no SMTP Server defined, an without mails being send, no new users can be registered, because they recieve their pasword via mail... i hope that somebody can help me :) ...

Drupal mimemail problem

My drupal mimemail always adds a x- to our http:// on our images, thus killing them. I cannot figure out why this happens. Any suggestions? ...

Drupal $tabs not including edit / revisions / workflow

I inherited a Drupal5 site and have been tasked with making some changes, but I'm unable to figure out where to start looking. On many pages there is a menu available to administrators that allows you do do certain actions: Overview Specialists Resources and Tools In the Field News Events Courses Multimedia Edit Track Workflow Setting...

Querying Drupal Organic Groups user list by role

I'm trying to develop a quick Drupal Organic Groups script. I'm having trouble navigating the database of my Drupal 5 install What would the basic MySQL look like for querying a list of users in an organic group by the role assigned to them? ie, pull a list of all users in the OG named X with the role Y ...

Drupal MultiSite, Multiple Sites or Organic Groups

I am using Drupal for a project but am not sure on the best way to implement the following. I have one main site with it's own look and feel. I want another site with certain members of the main site in it. It should have it's own look and feel. It should have both public and private conent. What out of the folling would you do. Use ...

Drupal 6 increase user login time.

How can I increase time for keeping user logged in. Even after comming back after few days. I don't want users to login each time they open a browser. ...

drupal persistent login, why use?

Why do i have to use some persistent-login module to make my users login into Drupal 6 for longer period of time. Why changing php.ini or settings.php doesnt works ? from a "webtools" I see my cookies being expired in next day, but after few hours it happend to log me out. This is like spontagenious action, no pattern to follow / predi...

Drupal views: selecting nodes with no children matching a condition

I would like to find all nodes of type A which don't have a child of type B matching a certain condition. For example, imagine I have a department node and an employee node. A department has an employees field which lists all the employees. Each employee has a type, let's say manager or peon. I would like to find all departments that...

Un-Published items showing in Drupal search results (google search appliacne)

I inherited a Drupal 5 site recently and have a series of enhancements to make. Several of then revolve around search results. Unpublished pages showing up in search engine results. Some of these are old pages, others are recently unpublished. All are correctly marked as unpublished in the CMS and are still showing up. Outdated pages...