drupal

Drupal - How to display N nodes of a type X?

How to display N nodes of a type X? ...

Drupal module for complex hours of operation / office hours

Background: I am building a website in Drupal that links together a wide variety of social service providers for the purposes of discovery, collaboration, and all that good stuff. The goal is to make a website that is simple to browse for consumers of these services and simple to update for providers of these services. The beta has been...

Drupal on IIS - Cannot connect to the database

hi, I've hard time to make Drupal work on IIS Microsoft server. I've succesfully run Joomla on the same server so I'm pretty sure the following information are correct: host: localhost user: user pass: pass databaseName = servername_databasename I've set the following line in settings.php file: $db_url = 'mysql://user:password@local...

Prevent users editing node titles

Is it possible to prevent a user from editing the title of a node on the node edit screen? One of the things I really detest about Drupal is the rigidity of the title & body field in each node. ...

Managing several custom content types from one module(drupal)

Is it possible to declare and manage several custom content types inside one module? I'm creating a site that needs four custom content types and I'd like to manage them from one module instead of creating module for every content type. After some testing, I found out that it seems impossible. Because, unless hook_form and content type s...

drupal jQuery 1.4 on specific pages

I'm looking for a way to force drupal to use 1.4 on specific pages. This is the same as this old question: http://stackoverflow.com/questions/2842792/drupal-jquery-1-4-on-specific-pages It look me a while to try the answer which I marked correct. But because I'm new to module dev overall I couldn't figure it out based on the answer. T...

drupal using node.save with XMLRPC call to another site. "Access Denied" message

I have a piece of code on 1 drupal site to create a node another drupal site in a multi-site setup. It looks like I'm getting the sessionid and logging in just fine, but when trying to create a "page" node, I get "Access denied". Under Services -> Settings I have "Key Authentication", "Use keys" is unchecked, and "Use sessid" is checked....

Drupal Translate in Admin not working

I have the View/Edit/Translate links in the admin section when editing an article. However, when I click on translate, the link admin/node/65/translate just takes me to the homepage, while admin/node/65/edit lets me edit the article. Is there a Pathauto setting I'm missing to allow me to translate the page? ...

making clean page via page.tpl.php

I have a Drupal module creating a page via hook_menu(). I am trying to make it so the page has no extraneous html output, only what I want. You can view the page here, http://www.thomashansen.me/chat/thomas. If you look at the source, you can see a strange script tag at the end. My page-chat.tpl.php looks like this, <?php // $Id$ ?> <...

Taxonomy terms are not translated in an exposed filters block

Hi, in my view's exposed filters block the taxonomy terms are showed only in the original language version (in English). Vocabulary is set to Localize terms. The terms are translated via Translation Table. All the other content (Views, nodes, translated strings etc.) is showed correctly (in German). I'd expect them to appear in cur...

Drupal 6: print all body field content to node template file.

I tried to display body content with: <?php print $node->content['body']['#value']; ?> However, it doesn't display all body content, it just display first paragraph of body content, sometimes 2 paragraph if it is short :/ I need to print all body. how can I do that? Thanks a lot! Appreciate helps! ...

jQuery issue - #<an Object> has no method

I've tried a veriety of jQuery plugins recently and I keep getting this error … … regardless of what plugin I try to use. I've checked the links to the JS files which are all there and working fine. I'm using Drupal if that makes any difference. I've run the plugins away from the main site to demonstrate that they are working and th...

drupal module, check if node type

As a more specific take on this question: http://stackoverflow.com/questions/2985518/drupal-jquery-1-4-on-specific-pages How do I check, inside a module, whether or not a node is a certain type to be able to do certain things to the node. Thanks The context: I'm trying to adapt this code so that rather than working on 'my_page' it w...

Drupal Error After Logging In

Hello everyone. I'm kinda new to using drupal and i'm just wondering why I kind of get this error on my new site. See i have this website under WampServer running drupal6-16. Everytime I log in with my pre-created admin account 'admin01' pass: 'admin01' i get redirected to the WampServer localhost which appears to be unusual since the h...

Drupal hook_user stop execution

Hello, I need to use Drupal 6's "hook_user" to update a 3rd party API whenever a user updates their profile. Therefore I use the 'update' operation. The problem I am facing is that I just cannot see how I can stop execution if the 3rd party API update fails. I.e. the user updates their username, but if the API fails, prevent Drupal ...

drupal - default select box - normal or ajax auto-suggest

In Drupal 6 - Our default select box is the "Ajax - autosuggest" variation. This shows up in Location and Views modules amoung other places. Is there a place where we can set this to the regular select-dropdown type of select box? ...

Imagecache for non image CCKs?

I'm creating a view with images, videos, audio and documents (books) and I like to shown a picture of each of them in a carousel. Everything works nicely with images and videos as far as we added a image-thumbnail (image filefield) to their CCK but we like to show a default image for audio and documents without changing the original CCK...

How to list CCK fields by content type in Drupal

To get a list of a content type's cck fields, I was hoping to use: drupal_get_schema('content_type_mycontenttype'); but that leaves out fields with multiple values. Is there a simple call to use to get such a list? ...

[Drupal Forms API] form_set_error on taxonomy fields?

Hi everyone, While form_set_error('field_firstname', t('message')); works fine, how can I do the same for one of several taxonomy fields? e.g. form_set_error('taxonomy[5]', t('message')); (which doesn't work). Can anyone help? ...

Drupal, Views.. how to display views list + complete node, interactively ?

hi, I'm using Views in Drupal to show node teasers. I would like now to show the complete node on the left side of my page, nearby the Views, and update it when the user click on a different teaser (better using AJAX). what's the best method to implement it. I was considering to use a lightbox, but it a bit complex (a lot of complicati...