drupal

Trying to program a Drupal calendar input blacklist

I'm creating a Drupal form with a datetime-based javascript popup calendar input that allows users to set a date for when they want to pick something up or drop it off. However, I can't find a way to limit what dates are selectable as input. For example, if we're only open Monday-Wednesday-Friday, I don't want people to be able to use th...

Drupal Computed Field - Calculating Time

I am using a popular module called "Computed Field" in Drupal. I have used this field to make on the fly computations for several quote systems. I'm trying to use it to calculate the difference in time for a timesheet type of application. So a user enter in two times into CCK date fields (using PHP custom input g:i - ie 10:20 - year adde...

Drupal session help needed...

Hi! I am working on a drupal based website. I am creating a shipping solution to be added to the drupal app. we want to use a common login for both shipping solution and drupal . how can we manage the session of drupal with the shipping ? regards sd ...

Drupal import Tweets from Twitter as Nodes

I want to be able to import my tweets from twitter into Drupal as Nodes. I want to be able to link @names and #tags back to the correct pages. I also dont myTweeterName to appear at the start of the tweet. How would you go about doing this. The twitter module does not create nodes but store data in it's own table. The feed module can re...

html making table borders invisible

I use Drupal 6 with theme summertime. Also I use FCKeditor. In order to align content I wanted to create a table with invisible borders. First I tried FCKEditor table properties and I gave 0 to border size in order to make borders invisible. But it did not work. I looked up the source and non working code was like below (Why giving borde...

Expanding mySQL query to include more content

I have a MySQL query that selects content created by friends of the current user and lists that content in reverse chronological order. SELECT node.nid AS nid, node.created AS node_created FROM node node LEFT JOIN user_relationships user_relationships ON node.uid = user_relationships.requestee_id LEFT JOIN users users_user_re...

Drupal 6: Modifying uid of a submitted node

I have a situation where I want a set of users (employees) to be able to create a node, but to replace the uid (user ID) with that of the users profile currently displayed. In other words, I have a block that that calls a form for a content type. If an employee (uid = 20) goes to a clients page (uid =105), and fills out the form, I want...

Problem with WAMP server and Drupal on eeePC

Hello I just installed WAMP on my new eeePC and I am trying to install Drupal, I unzipped the drupal file in the www directory and went to localhost/drupal-x.xx I get the following error for a couple hundred lines : Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.15\includes\file.inc on line 902 then the regular dru...

Drupal6: Load a field, like one would load a node?

Is there a field_load() function equivalent to node_load()? I want to get information about the type of a field and other validation constraints without going to the database myself. Better yet, is there any function that will validate it for me, like is_valid_for_field(field_name, input), that would take a field name and a potential in...

Drupal: Grabbing the node reference nid

On a node I have a cck reference to another node. What do I have to do to get nid of the referenced node. Is it something like: $node->field_name... uh something. Anyone knows? Thanks. ...

Drupal openlayers form

Hi, I'm using Drupal 6; I created a module for a custom content type and implemented all necessary hooks (hook_form, hook_load, etc.) What I'd like to do is add a field representing a point on a map and letting user input it with an Openlayers map. I know how to do it with cck, but I'd really like to implement it directly in my code. A...

How do you modify the fields output in Drupal's RSS Feeds

Trying to modify the RSS feeds created by Views module in Drupal. Since there are no 'theme_' hooks for the RSS feeds (rightfully as XML is theme-less), I need an alternate way to modify the fields that are output into the RSS, preferably using template.php if possible. http://api.drupal.org/api/function/format_rss_item/6 looks promis...

Drupal6: Trying to get errors from node_validate()

I'm trying to validate a set of nodes before saving them to the database: foreach ($nodes_to_save as $node) { if (! (node_validate($node, $form))) { form_set_error('', t('Node %title did not validate. No nodes were saved.', array('%title' => $node->title))); $success = FALSE; break; } } The documentatio...

Drupal | How do you integrate a module into views?

I'm using the decisions module for drupal and it currently has no views integration. I'm looking for a way to use some simple filters based on this module in views. How do you integrated a module with views? All of the available documentation is extremely vague. ...

Assigning specific menu administration rights for roles in drupal

Hello folks. I'm trying to give one of my roles the administrative rights to add/remove content in a specific menu (but not all menus). I think I found a module that should enable something like this, http://drupalmodules.com/module/delegate-menu-administration I've followed the instructions, added the role to my user, checked the "adm...

Drupal 5 FileField not attaching files

I recently inherited a Drupal 5 site, and I'm having some trouble with the FileField module. I click Browse, find my file, then click upload. The file is an .mp3, which is a valid file extension, and is about 5MB. It looks like it's uploading it, but then it finishes and nothing is there. Here are the things I checked: * I checked my ...

Drupal Photo Gallery Tutorial

Can someone point me to a good Drupal Photo Gallery tutorial or book. I am trying to create a photo gallery in a grid view. However, I do not want the titles, etc. to be displayed with the photos. Also, I want to place a border around the photos to make them stand out a bit. I am not that well versed in PHP so I want the solution t...

Suggestions for building a clothing exchange site with Joomla/virtuemart

Hello guys, I want to build a website to allow users exchange clothes with each other.The website will be similar to an online auction site and a book exchange. This will be a point-based exchange community. The website allows users to 1) register for a private account 2) list items based on a specific, yet simple form that they ...

Java with Drupal-6/PHP

I really dislike PHP, but am pretty comfortable in Java. I have a stable Drupal installation that has been deployed to an Apache/Linux server. I don't know if the server currently supports Java. (What does it take to do that? I have programming in desktop apps for Java but never online before.) For developing new modules for my site, is...

Where is my Drupal View pager?

Hi, I have a Drupal 6 site where I've created a view that shows a list of nodes. Nothing complicated -- except that when I choose "use pager" --> "yes" (and choose the "full pager" option), the pager doesn't show up on the page. The first page of nodes shows up, but there's no way to get to other pages. Through googling, I saw that som...