drupal

CCK in input form, but not in node structure

I have a content type (Witl) that the user creates. On the creation form, the user selects an option out of a list of nodes that's generated from a view (VOut). Right now I store that option as a node reference on Witl. I need to restructure things around, so that this node reference isn't stored on Witl itself, instead eventually stor...

How does one make a Custom user profile on a per role basis ?

How would you get about assigning a custom profile to a particular role in Drupal 6? For example if the user belongs to a role "TEAM1" and we want them to have a different profile than the rest of the users, how would you get about doing that? The profile must have basic information they can edit however it should also have some fixed fi...

Can I empty accesslog table ?

Can I empty the table 'accesslog' in Drupal ? Does it contain only logs ? It is giving me issues in importing a database into a new mysql server: Error at the line 66: INSERT INTO accesslog (aid, sid, title, path, url, hostname, uid, timer, timestamp) VALUES(5686, 'bgp2qr643sg0aoreq7p524ii96', 'Modules', 'admin/build/modules...

register_globals is enabled. Drupal requires this configuration directive to be disabled.

hi, I've just moved my drupal to a new server and I get the following warning: register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register gl...

How to usually .htaccess file when it is hidden in ftp

I usually cannot see .htaccess file because it is hidden, when I login to remote servers with ftp access. Since I don't have shell access, I usually perform the following steps to edit the file: I change the settings on my mac (from terminal) to see invisible files I open .htaccess file on a standard drupal installation and I edit it I...

Error: Content type X has Drupal core comment comment type, but is a comment type itself for the following content types

I'm using Node Comments module and I get a strange error in Status Report: Node Comments Content type Answer has Drupal core comment comment type, but is a comment type itself for the following content types: Forum topic However, in the content type settings of 'Answer', this setting is disabled: http://dl.dropbox.com/u/72686/CommentSe...

django and drupal

Hi, Is there way to work with drupal beautiful themes and display django content? I have site written with Django, and I now needs to build templates and some design site to display it.. How can I use drupal for this target? Thanks.. ...

remove a logic operator(unlocked) of a exposed filter

I have a view where I am exposing a filter which is the Price of a product. I want the user to be able to choose the price(filter based on price), So I exposed the filter, then unlocked the operator and all of them are unlocked(operators). Is there a way where I can unlock only a few operators such as "Is less than", "In Between", "Is Gr...

Expand Primary Links

How do you get children of primary links to output in the HTML? Only my parent-level primary links are generating LI's. I have a very very simple two-level primary links menu. There are 5 pages on the site: three parents, and the third parent has two children. In the administrative menu settings I have the parents' and childen's 'expand...

Drupal Serial Number

I'm new to drupal, had a good start with basic functionality but I need to do some specific tasks and I'm starting to struggle. I want a form with a drop down list, that selects a string. I also want to create a serial number thats unique, and append it to the string. I was thinking that I'd create a document type "index", then as as d...

How do I generate Drupal Taxonomy Breadcrumbs from two vocabularies?

I have discovered the magic of Taxonomy Breadcrumb ( http://drupal.org/project/taxonomy_breadcrumb ). I have two dimensions in which I would like to classify my content: Season Fall 2010 Winter 2010 Spring 2011 Type Letter Article Biography I would like to set Taxonomy Breadcrumb to set up a trail like so: Home > [season] > [ty...

Solr query for items with field:value or no value for field at all

I'm trying to query Solr for entries that either have a certain value in a field OR no value for the field. The negated field value works when used by itself but causes the query to return no results when combined with anything else. Below is a response with debugQuery enabled. The config file I use can be found here. <?xml version="1.0...

Users are able to access old profile along with new one?

I have used Content Profile Module to make a content type of profile. I have then gone to my User management menu -> Permissions menu and given access to the "testuser" role to be able to create the new content type profile. Now when the user with the role logs on and clicks on "My profile" that has a path of sitename/user/username, he/s...

Securing Drupal?

This is my first time using Drupal and I am loving it, but there are a lot of configurations to go through (which I love) and I am afraid there is something I need to enable/disable to make Drupal production ready. I did see that printing errors to the screen is enabled by default so that is why I am asking if there is anything else. ...

Drupal exposed view

is there a way to not display any results initially until the form has been submitted? Also, I cant see where I can override the exposed form ...

Extracting value from Form Date Element on Submit

I'm writing a Drupal module and have run into what should be a trivial problem; Consider a 'Person' type node which includes a 'Date of Birth' property. I've configured the database table to use an int field to store the date in UNIX format (same as Drupal Core) but of course I need to provide a method for the user to specify the value ...

Drupal: Catcing userId in hook_init();

I have the following code in a custom module as well as I have firePHP installed (dfb($userId) is supposed to be written in the console). At every page pageload I want to catch and print the current users ID and I think the following should work but it isn't - can anyone tell me why? function live_update_test_init() { global $user; ...

Using Image module to create an Image Gallery and view them using lightbox

The new version of the Image module has some components, one of them being image_gallery.module which creates some views and taxonomy for you to use. Now I want that when the user clicks on an image uploaded into a gallery, it is displayed using lightbox. This was easily done when creating a content-type and setting the view to lightbo...

drupal cck date field question

Hi, I've added CCK Date field to my node type using the Textfield with Date Popup wiget. The granularity is set to include Hours and Minutes. The display show two textareas, one for the date and the other for time. How do I override the time field to be a drop down? I can't see how I can do this via form_alter hook as my date field ...

Loading latest nodes in Drupal sidebar via Ajax (facebook-like)

I would like to have a facebook-like dynamic latest nodes loader in Drupal sidebar working in JQuery. Each time new node is created, the users would be able to see it in a list (similar to facebook) without refreshing the page. Any advice, tutorial links, etc. will be appreciated. ...