drupal

user specific persistent cck types in drupal

Is there a way to do the following. We need to have a few basic cck types that will allow users to track their chosen parameters over a length of time. For example, one cck type may be called "numeric tracker" It would have a field for labeling the type and a field for entering a number. User A might label one numeric tracker "miles ...

Working with version control on a Drupal/CMS project

I was wondering how teams that develop sites using Drupal (or any other CMS) integrate version control, subversion, git or similar, into their workflow. You'd obviously want your custom code and theme files under version control but when you use a CMS such as Drupal a lot of the work consists of configuring modules and settings all of wh...

Drupal : how to emulate the public/private attribute available in WordPress

Hi, Basically, I'm looking for an easy way (module) to add a private/public option to any kind of content I may published in Drupal (blog entry, image, etc.). So that when I'm logged in, I can see everything. But when an anonymous user visit the site, he will only see the public stuff. It's way to manage a kind of front window/back-stor...

Howto: Block visible only if node X is published?

With this code I show node in block: print check_markup(node_load(777, NULL, TRUE) -> body); Problem: block displayed even node 777 is unpublished. Thank you in advance! ...

Drupal - Show user menu

Hello, I have box in my theme which shows either some text (probably block, not solved yet) or user menu ("navigation") if user is logged in. However, I can't google how to get only user navigation and spit it out in my theme (I don't want to use '$left'. I want just the navigation) Thank you ...

drupal + i18n - how to send the currently selected locale to javascript?

I've got a multi-lingual Drupal 6 installation. The multi-language is provided by the i18n module. I'm displaying some date pickers using jquery ui's datepicker. I'd like to localize those datepickers too (so when the page being shown is English, they show 'mon tue wed ...' but when the page is in Spanish they show 'lun mar mi ...'). M...

Drupal - special css file if JS is turned off?

I'm building a Drupal theme up and want to know if there is a Drupalish way to add a css file only if the user has js turned off. This would ideally go in the theme.info file to keep it neat! Something like this would be ideal: conditional-stylesheets[if no javascript][all][] = nojs.css If this isn't possible then I'm going to keep ...

How can I theme custom form(drupal 6.x)

DRUPAL 6.X I have this custom form constructor inside my custom module which is invoke through ajax request. I’m attempting to theme this form with the template file reside in my theme directory. For that matter, I’ve registered my theme inside template.php file which reside in my theme folder. Here’s how this file looks – function my_t...

messages stuck permanently in session

I am getting Drupal messages stuck permanently in session, so that after being displayed they are not cleared. The unsetting code in function drupal_get_messages in bootstrap.inc is firing - It's as if the session is sleeping (i.e. serializing to disk) before the messages array is cleared. Have you witnessed such a thing? ...

HTTP Error 0 js/upload in drupal when attaching a file

I am trying to attach an 8M .wav file to a "story" in drupal. I can attach similar smaller files, but when i try this one and larger sizes i get in HTTP Error 0 message after a minute or to. I have checked all my max upload, Max Mem sizes they are set at well over 8M at 64M and 256M. Anyone else have this issue uploading files ever? ...

WordPress equivalent of Drupal's url()

Is there any WordPress equivalent function for Drupal's url()? ...

How to embed a node on homepage in Drupal 6?

How can I embed a node on the front page in Drupal 6. The node basically has the image upload field along with title and description. I want it to some how appear on the homepage alongwith a "views" which shows the uploaded images at the bottom. What I want is to give the users an ability to create content which is right now available a...

Drupal 6 - Including a module form in a view

I'm making use of the Favorites module, in order to allow my users to favorite nodes they like. Currently, I know that there is a block available for listing out the favorites, along with the 'Add to favorites' button at the top of this list. What I'd like to do is generate the form which includes the button, and include it within ea...

Drupal Feeds showing encoded HTML markup

Can't figure out why this is happening, but my RSS feeds are showing HTML encoding in the description field that I need to get rid of: For example: <description>&lt;div class=&quot;field field-type-text field-field-location&quot;&gt; I just can't figure out why this would be happening. ...

Use date operations on a computed field filter in a view

I'd like to expose a filter in Views based on a Computed Field. This field should utilize the date operation "less than". Apparently, a date type is not available to computed field (varchar is). However, using varchar results in views treating the field as a string rather than as a date, without the operation I'm looking for. So I tried...

Is this a possible way to get Drupal AD SSO?

I'm currently building a Drupal website in an Active Directory environment. One of the site's requirements is Single Sign On, which to date seems to be impossible because there is no Kerberos SPNEGO/GSSAPI auth module for drupal. I've come up with an idea on how SSO could be attempted on IIS. Since IIS has the option to require Kerberos ...

Editing content-types in Drupal at development mode takes for ever

While the site is in development mode, it takes for ever to edit content types and do various similar administrative tasks. Is there a way to speed this up? What kind of hardware would I need? Any specific MySQL optimization maybe? ...

Why would a Drupal form not be cached in cache_form?

My form, lets call it organize_issue, is a form in a custom module being called from the menu using the page callback drupal_get_form function. The form works perfectly well. I'm trying to implement some AHAH type functionality now, and need to get the page from cache using form_get_cache($form_build_id, $form_state) but, oddly enough, ...

Where is Ubercart USPS Shipping module

I can't seem to find the Ubercart 2.x version of USPS Shipping module! This is the closest I could come, but I feel like I shouldn't be constructing the module from a source view. http://api.ubercart.org/api/file/ubercart/shipping/uc_usps/uc_usps.module/2/source There was a zip available here of a spin-off module... http://www.ubercart...

Drupal - Organic Groups event type/terms

I installed the OG Calendar module and I see dropdown select boxes with "event types" and "event terms". I checked Taxonomy but don't see reference to them there. Where do these come from & how do I maintained them? ...